Code:
sub EVENT_SAY {
if($text=~/Hail/i){
quest::emote("holds a cracked monocle up to his squinty eye. 'I say!! A talking bear!! Squire Fuzzmin, come and take a gander at this rare find. The wonders never cease in the land of Kunark!!' ");
quest::unique_spawn(84312,0,0,1985,-2243,-75); # Spawn Squire_Fuzzmin for Wurmslayer quest
quest::delglobal("hobble");
quest::setglobal("hobble",$npc->GetID(),"3","F"); # Set global $hobble with Sir_Hobble's NPC ID so Squire_Fuzzmin can follow
$hobble=undef;
}
}
and
Code:
sub EVENT_SPAWN {
quest::follow($hobble);
}
Only complaint I have about follow is that in some instances it is too close and I couldn't figure a way to control the distance... (POM My Finger/Not Yours for example and it will repeat again on Derakor)