View Single Post
  #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