Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-22-2008, 05:33 AM
thothramerkaba
Fire Beetle
 
Join Date: Feb 2008
Posts: 10
Default NPC Quest respawns on anything.

This is my first custom quest and I think the problem is in the NPC itself. Whenever the NPC is hailed or given items he just respawns without giving the reward, well I am almost certain he is respawning since I can see him drop about half a food out of the air like a respawn.
Here is the quest:
Code:
#$item1 - The object in the first give slot of the give window. 
#$item2 - The object in the second give slot of the give window. 
#$item3 - The object in the third give slot of the give window. 
#$item4 - The object in the fourth give slot of the give window. 
sub EVENT_SAY
{
	if ($text =~/hail/i)
	{
		quest::say("I can make ye a weapon that is bound to be the bane of these orcs! Just hand me a certain [bronze weapon] and three [rotting orc teeth]. When ya give these to me make sure you give me the weapon first and the three teeth in a seperate stack.");
	}
	if ($text =~/bronze weapon/i)
	{
		quest::say("The bronze weapons I know how to alter are: Mace, Spear, Long Sword, Axe, and Dagger.");
	}
	if ($text =~/rotting orc teeth/i)
	{
		quest::say("Aye, you find those in the orcs mouth!");
	}
}
sub EVENT_ITEM
{
    if ($item2== 27536   &&  $item3== 27536  &&  $item4== 27536)  
	{ 
		if ($item1== 6019)
		{
			quest::say("Here is your Mace of Orc Bane!"); 
			quest::summonitem("1118");
		}
		elsif ($item== 7014)
		{
			quest::say("Here is your Spear of Orc Bane!"); 
			quest::summonitem("1119");
		}
		elsif ($item== 5027)
		{
			quest::say("Here is your Long Sword of Orc Bane!"); 
			quest::summonitem("1261");
		}
		elsif ($item== 5032)
		{
			quest::say("Here is your Axe of Orc Bane!"); 
			quest::summonitem("1264");
		}
		elsif ($item== 7012)
		{
			quest::say("Here is your Dagger of Orc Bane!"); 
			quest::summonitem("1265");
		}
		else
		{ 
			plugin::return_items(\%itemcount);
			quest::say("This ain't what I asked for and it ain't the way I wanted it! Take yer garbage elsewhere!");
		}
	}
	else
	{ 
		plugin::return_items(\%itemcount);
		quest::say("This ain't what I asked for and it ain't the way I wanted it! Take yer garbage elsewhere!");
	}
}
If anyone has had this problem please feel free to help me solve it.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:43 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3