Is there way to make something like this.. But I want it so no one can get the first message once someone has hailed him.
sub EVENT_SAY
{
if($text=~/hail/i && $var1 = 1)
{
quest::say("HI 2 u.");
quest::setglobal("var1",1,2,"H25");
}
if($text=~/hail/i && $var1 = 0)
}
quest::say("I wont talk to u now!");
}
}
sub EVENT_SPAWN
{
quest::delglobal("var1");
}
##this is so the npc can be hailed once he respawns.
Last edited by Richardo; 01-25-2009 at 11:37 PM..
|