The only way you can talk to a shop npc is through client packets, for e.g. if you start a quest , it will start walking to a npc, once you are around that npc, it will send a 10010 packet, with the npc's ID. Then you just answer to that packet with npc dialog packets.
And for opening the shop use a proxy to get the packet.
-> Direction(Entity.X, Entity.Y, NPC.X, NPC.Y);
-> Walk into direction =
{
if (Distance(Entity.X, NPC.X, Entity.Y, NPC.Y) <= 2)
NPC.Interact();
}
As I don't know the definitions in your source, you can figure it out on your own.
That's not what I was trying to do but that's really helpful so thanks!
=]
What I'm trying to do is have it so that you can open the Armor shop after talking to him... here, i'll get some pictures- hold on.
Like this:
and then "I need to buy some equipment" = control 2 which goes to this window:
If you guys help me with this then I'll release the Starter Quest.
I admit that I'm not the best coder and i'm not ashamed of it since it's impossible to know everything about coding in 1 month. Please give me some help you guys, I'd really like to learn how to do this.
4 is the id, 40 is the npc-mesh id, 1 means shop, 0 means non-pkable, and then location.
So if I change it to dialog (2) then... i have to figure out how to link it to the shop...
That would require re-spawning the npc everytime someone interacts with it.
It seems more like its a newer addition to the latest clients, i experimented with this exact thing a while back around 5100 and found that the only npcs i could make it work with without sending respawn packets and what not, are npcs which make a an NPCinteraction request (like requesting a dialog), and then the server responds with a 1010 dialog display.
Prime example would be the warehouse men, you can easily have a massive conversation and then display the warehouse, because its the same NPC type, if you wanted to do it with shops you would require 2 NPC definitions, one a shop, the other a text dialog npc, then spawn the second one when you click the second dialog, however the client displays the shop itself, and the server is never involved in that, so you would still need to click the npc again afterwards anyway.
So all in all, yes in much later clients, no in anything pre 5200 probably.
That would require re-spawning the npc everytime someone interacts with it.
It seems more like its a newer addition to the latest clients, i experimented with this exact thing a while back around 5100 and found that the only npcs i could make it work with without sending respawn packets and what not, are npcs which make a an NPCinteraction request (like requesting a dialog), and then the server responds with a 1010 dialog display.
Prime example would be the warehouse men, you can easily have a massive conversation and then display the warehouse, because its the same NPC type, if you wanted to do it with shops you would require 2 NPC definitions, one a shop, the other a text dialog npc, then spawn the second one when you click the second dialog, however the client displays the shop itself, and the server is never involved in that, so you would still need to click the npc again afterwards anyway.
So all in all, yes in much later clients, no in anything pre 5200 probably.
What about this? What does this code do exactly?
Does it just buy an item... or could this possibly be used to make a shop appear?
[Request] Request all 5165 sources/npc dialog 02/28/2010 - CO2 Private Server - 0 Replies so i want to do a good source like every1 right ? so i stay some time and i got a idea to take lot of 5165 and take what's not bugged and essentialy :mofo: i will release it :D
[REQUEST]5165 Client Request Help/ Question 12/18/2009 - CO2 Private Server - 5 Replies hey yall its me TheLeGend Im Back in CO for a while but i gots a question
ok so i have a 5165 Client im editing for a server but the only problem is that stupid-ass popup page that comes up the Conquer Online - Official Site - co.91.com one well i was just wondering how can i edit that site orrr how can i make it not popup anymore???
Thanks so Much,
TheLeGend209
[No Request/Question section!]What should I talk about in this section? 04/14/2009 - CO2 Weapon, Armor, Effects & Interface edits - 0 Replies Hello everyone!
Welcome to the CO2 Weapon, Armor, Effects & Interface edits section. In this section it is okay to talk about:
Any form of Client edit with/with out downloads(visual)
Tools related to graphical modification