PDA

View Full Version : Quest problems


Shadow-Wolf
04-05-2004, 12:06 AM
I am working on a quest beggar npc in kelethin(like the one in wtfcomics) but ive ran into problems with perl.

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?

Monrezz
04-05-2004, 11:16 PM
Remove the () from the end of the sub block. Try enclosing the values in double quotes (""), ie quest::faction("2351","50");