EQEmulator Forums

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

Richardo 04-18-2004 02:27 AM

Quest Problem
 
My npc's arnt responding nor are the responding to when the item is given to them, tell me if you see anything wrong with my pl...


Quote:

sub EVENT_SAY
{
if ($text~= /Hail/i){quest::say("Hoyos! What brings you here $name? This is the lands of the Uruk-Hai, they are merciless and will kill you without a thought, I am here to return what was once my peoples, the breastplate of the uruk-hai was stolen from us and was used for its intense healing abilities.Perhaps you can [help]?");}
if ($text~= /help/i){quest::say("Great! Assemble a group and slay the evil overlord of the uruk-hai and return to me his breastplate, I will assure you the power of a true berserker!");}
}
sub EVENT_ITEM
{
if ($itemcount{27188} == 4){quest::say("PRAISE THE TRIBUNAL! Justice is ours! Here take this! Take it to Okinawa Boquestu in Halas, he shall aid you on creating the ultimate weapon for a berserker! Good luck, $race.");
quest::exp(12555);
quest::spawnitem(10);}
}
The items are correct, the item numbers that is...

Dave987 04-18-2004 03:01 AM

Woops - I didn't read the post carefully enough ... ignore this

Dave987 04-18-2004 03:18 AM

Code:

sub EVENT_ITEM
{
if ($itemcount{27188} == 4){quest::say("PRAISE THE TRIBUNAL! Justice is ours! Here take this! Take it to Okinawa Boquestu in Halas, he shall aid you on creating the ultimate weapon for a berserker! Good luck, $race.");
quest::exp(12555);
quest::spawnitem(10);}
}

Ok, this isn't the most ideal way, but if you just want to get it working, try this:

Code:

sub EVENT_ITEM
{
if (($item1 ==  27118) && ($item2 == 27118) && ($item3 == 27118) && ($item4 == 27118))
{
quest::say("PRAISE THE TRIBUNAL! Justice is ours! Here take this! Take it to Okinawa Boquestu in Halas, he shall aid you on creating the ultimate weapon for a berserker! Good luck, $race.");}
quest::exp(12555);
quest::spawnitem(19);}
}


smogo 04-19-2004 06:37 AM

spawnitem ?

is it new version of summonitem ?

Dave987 04-19-2004 11:29 AM

Not sure - I saw Lexen had used spawnitem so I decided to copy... the NPC wasn't responding at all, thats all I replied to..

Gunna go play around and see if spawnitem does anything :)

Monrezz 04-20-2004 03:16 AM

Quote:

quest::(spawnitem(19);}
You have an extra "(" there you shouldn't have, should be:

Code:

quest::spawnitem(19);}

Dave987 04-21-2004 06:02 AM

Woops.. nobodys perfect eh?
Did that work Lexen ?


Another thing you could try is changing
if ($itemcount{27188} == 4)

to

if (($itemcount{27188} == 4))
Sometimes doing the calculations (== , != , <= , etc.) help if done in double brackets.. -shrug-


All times are GMT -4. The time now is 05:27 PM.

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