View Single Post
  #3  
Old 11-08-2011, 08:22 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I didn't test this, but it should work:

Code:
sub EVENT_ITEM {

	if(plugin::check_handin(\%itemcount, 12321 => 1, 12320 => 1))
	{
		quest::summonitem(3190);
	}

	if ($gold >= 2000 && plugin::check_handin(\%itemcount, 12305 => 1, 12306 => 1))
	{
		quest::say("Here are your boots.");
		quest::summonitem(3192);

	}
	else
	{
		if($gold)
		{
			$client->AddMoneyToPP(0, 0, $gold, 0, 1);
			quest::say("That is not the required amount!");
			$gold = undef;
		}
	}

	if (plugin::check_handin(\%itemcount, 10059 => 1, 12328 => 1))
	{
		quest::say("Here are your leggings.");
		quest::summonitem(3191);
	}

	plugin::return_items(\%itemcount);

}
Your main issue is that $gold >= 2000 can not be passed into the check_handin plugin.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote