HI there~!
well im kinda new one in codeing and stuff!
can someone give me a code for simple npc?
im useing hadeset source... i need easy code like npc say: "Hi" just for example to code my own npcs =\ and in witch file to code them =S
Printable View
HI there~!
well im kinda new one in codeing and stuff!
can someone give me a code for simple npc?
im useing hadeset source... i need easy code like npc say: "Hi" just for example to code my own npcs =\ and in witch file to code them =S
NpcSays("Hi");
:)
depends on the npc structures =)
-.-
That was just an example of what an npc structure for saying Hi could look like, ive not written mine but it wont look anything like that i can assure you....
But in that example i suppose would be more or less like the coemu version where by NpcSays would send an npctalk packet informing the client of the npc saying that as its message you could then incorporate
NpcOption("Hello",1);
NpcFinsh(1);
NpcOption contains the string for the option and the type of option it is, and NpcFinsh contains the value of the npcs avatar and would finsh the dialog
Making Npcs say stuff is pretty simple, having them perform actions is where it gets interesting