View Single Post
  #7  
Old 06-18-2008, 05:59 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

well i gave it a try and i cant get it to fire the events so i tried setting a proximity around it for enter and exit to see if it triggered when it was summoned but its itehr not working or i don't know how the event works becuase im getting noting only thing that works is hailing it and it just say the line it should say when hailed no event triggering other then the say.

here is the code i got named it the same as the npc in the zone im testing in.
spawning with the #npctypespawn command

Code:
sub EVENT_SAY
{
if ($text =~/Hail/i)
 {
quest::say ("Hello $name. im testing.");
quest::set_proximity(0,5,0,5,0,5);
 }
}

sub EVENT_SPAWN 
{ 
quest::set_proximity(0,5,0,5,0,5); 
} 

sub EVENT_ENTER 
{ 
quest::summonitem("1388"); 
quest::say ("entering proximity");
}
Reply With Quote