EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Quests (https://www.eqemulator.org/forums/forumdisplay.php?f=624)
-   -   Quest problems (https://www.eqemulator.org/forums/showthread.php?t=12860)

Shadow-Wolf 04-05-2004 12:06 AM

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?

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");


All times are GMT -4. The time now is 07:21 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.