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?