ID:169607
 
Code:


Problem description: can someone tell me how to make an npc? ive tried looking in the demos, librarie, forums, and dm guide but cant figure it out =\.

mob
npc
MrT
icon = 'youriconhere.dmi'
icon_state = "iconstateifyouwantone"
DblClick()
if(src in oview(1))
usr << "<b>[src.name]:</b> I pity the foo who makes me talk!"
else
return
In response to Swarmy
if you want your npc to move like in most games add.
New()
walk_rand(src,10)
replace 10 with whatever speed you want
Your question really isn't specific enough. What exactly do you want this NPC to do?

For future reference, by the way, posts only belong in "Code Problems" if you have a specific already-made snippet of code that you need help with. This one belongs in Developer How-To because you're asking how to do something. =P
In response to Wizkidd0123
sorry, didnt know XD. and i want an npc that heals a person, and one that sells items. one that also displays text imformation, and one that allows you to re-make your character at a cost of money (my game will allow only one char per key). I would also like to remind that i also didnt know that this was snippets only, and would like to add that people in the developer-how-to would rather critisize, hurt, and make fun of, then provide a simple answere . thank you to those who answered me kindly :D