sub EVENT_SAY{
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}
the problem is that you have started an event but have not set a trigger to the emote. for this to work properly you would need to use this:
---
sub EVENT_SAY {
if($text=~/hail/i){
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}
}
---
however, say you would like for him to emote if you walk within a certain proximity of him you would use this:
---
sub EVENT_SPAWN {
$x = $npc->GetX();
$y = $npc->GetY();
#Set proximity
quest::set_proximity($x-50,$x+50,$y-50,$y+50);
}
sub EVENT_ENTER {
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}
}
---
you could also if needed target specific whatever's to trigger the EVENT_ENTER like so:
---
sub EVENT_ENTER {
if($class eq "Warrior") && ($level <= 50){
quest::emote("hisses at you, its sharp teeth gnashing for your flesh!");
}
}
---
just gave example above of how you could customize other quests to be triggered by specific whatever's.
---
hope this helps.
|