Thread: Quest problems
View Single Post
  #1  
Old 04-05-2004, 12:06 AM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default Quest problems

I am working on a quest beggar npc in kelethin(like the one in wtfcomics) but ive ran into problems with perl.

Code:
sub EVENT_SAY
{
if ($text=~/Hail/i)
  {
  quest::say("Hi $name, do you have any spare loot?");
  }
}

sub EVENT_WAYPOINT
{
quest::say("Hail, Could you spare a poor gnome some coin or items?");
}

sub EVENT_ATTACK()
{
quest::shout("Guards! Guards! Help!");
}

sub EVENT_DEATH()
{
quest::say("My brothers will get you!");
quest::faction(2351,50);
}
Firest of all im having a problem with waypoints, once the gnome reaches a waypoint he wont say anything, and i believe it also causes him to stop moving.
I also have a problem with his death, he says the "my brothers will get you!" part but i dont see any positive faction changes. Could anyone please tell me what is wrong?
Reply With Quote