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 08-20-2010, 01:17 PM
Bellos
Hill Giant
 
Join Date: Jul 2007
Posts: 111
Default I need some help Armor quest eats items

I dont mean to be such a PITA, i really hope im not pissing you guys off, just trying to relearn some stuff. Ok i have a quest but when i turn in the items he just eats them. Here is a basic block of the quest

It could be the $class == 1 but i believe thats how I did it before 1 being warrior. Or i could be not using the plugin check hand in correctly. I havent messed with it recently. So if anyone can help me out id appreciate it.


K i think it is the class part, imma check quick


Ok now he doesnt eat them, but he hands em back to me.

Code:
sub EVENT_ITEM {

	if ($class == 1) {
		#Helm
		if (plugin::check_handin(\%itemcount, 1658 == 1) && plugin::check_handin(\%itemcount, 1659 == 1) && plugin::check_handin(\%itemcount, 1733 == 1) && plugin::check_handin(\%itemcount, 1660 == 1)) {
		quest::say("Here is your Mithril Helm");
		quest::summonitem(68850,0);
		}

		else {
			plugin::return_items(\%itemcount);
			quest::say("I have no use for this item, $name.  Take it back.");
		} 
	
		#breastplate
		if (plugin::check_handin(\%itemcount, 1658 == 1) && plugin::check_handin(\%itemcount, 1659 == 1) && plugin::check_handin(\%itemcount, 1733 == 1) && plugin::check_handin(\%itemcount, 1661 == 1)) {
		quest::say("Here is your Mithril Breastplate");
		quest::summonitem(68960,0);
		}

		else {
			plugin::return_items(\%itemcount);
			quest::say("I have no use for this item, $name.  Take it back.");
		} 
		
		#Vambrace
		if (plugin::check_handin(\%itemcount, 1658 == 1) && plugin::check_handin(\%itemcount, 1659 == 1) && plugin::check_handin(\%itemcount, 1733 == 1) && plugin::check_handin(\%itemcount, 1662 == 1)) {
		quest::say("Here are your Mithril Vambraces");
	    quest::summonitem(68851,0);
		}

		else {
			plugin::return_items(\%itemcount);
			quest::say("I have no use for this item, $name.  Take it back.");
		} 
		
			#Bracer
		if (plugin::check_handin(\%itemcount, 1658 == 1) && plugin::check_handin(\%itemcount, 1659 == 1) && plugin::check_handin(\%itemcount, 1733 == 1) && plugin::check_handin(\%itemcount, 1663 == 1)) {
		quest::say("Here is your Mithril Bracer");
		quest::summonitem(68854,0);
		}

		else {
			plugin::return_items(\%itemcount);
			quest::say("I have no use for this item, $name.  Take it back.");
		} 
		
			#Greaves
		if (plugin::check_handin(\%itemcount, 1658 == 1) && plugin::check_handin(\%itemcount, 1659 == 1) && plugin::check_handin(\%itemcount, 1733 == 1) && plugin::check_handin(\%itemcount, 1664 == 1)) {
		quest::say("Here are you Mithril Greaves");
		quest::summonitem(68961,0);
		}

		else {
			plugin::return_items(\%itemcount);
			quest::say("I have no use for this item, $name.  Take it back.");
		} 
		
			#Boots
		if (plugin::check_handin(\%itemcount, 1658 == 1) && plugin::check_handin(\%itemcount, 1659 == 1) && plugin::check_handin(\%itemcount, 1733 == 1) && plugin::check_handin(\%itemcount, 1716 == 1)) {
		quest::say("Here are your Mithril Boots");
		quest::summonitem(68853,0);
		}

		else {
			plugin::return_items(\%itemcount);
			quest::say("I have no use for this item, $name.  Take it back.");
		} 
		
			#Gauntlets
		if (plugin::check_handin(\%itemcount, 1658 == 1) && plugin::check_handin(\%itemcount, 1659 == 1) && plugin::check_handin(\%itemcount, 1733 == 1) && plugin::check_handin(\%itemcount, 1732 == 1)) {
		quest::say("Here are your Mithril Gauntlets");
		quest::summonitem(68852,0);
		}

		else {
			plugin::return_items(\%itemcount);
			quest::say("I have no use for this item, $name.  Take it back.");
		} 
	}
}
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 07:58 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