mob
npc
Civilan
icon = 'npcs.dmi'
if(findtextEx([player.msg],"Hello, Civilian.")==1)
usr << "Hello, [player]."
ID:154694
Jan 16 2012, 5:21 pm (Edited on Jan 16 2012, 5:44 pm)
|
|
I'm looking for a resource that shows me how to require players to use the say command to talk to a nearby NPC. The NPC then uses the findtext proc (I think it was findtext) to find "Hi There, ." or another greeting in the player's message. If the message contains it the NPC responds back to the player. I've searched the resources section up and down, but if you happen to stumble upon please link to it. Otherwise could you help me recreate it?
|
As for your say proc, I would personally do it somewhat like this: