View Single Post
  #7  
Old 05-23-2015, 09:08 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Very weird.

I added the following code to my

C:\EQEmuServer\quests\felwithea\Exterminator_Valer n.pl

Code:
	if (plugin::check_handin(\%itemcount, 1001 => 1))
	{
		if (plugin::check_hasitem($client, 1002)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1002);
		}
		elsif (plugin::check_hasitem($client, 1003)){
			plugin::Whisper("As promised! Here is your new item!");
			my %epic1 = ("Monk" => 1003, "Ranger" => 1003, "Cleric" => 1003);
			quest::summonitem($epic1{$class});
		}
		elsif (plugin::check_hasitem($client, 1004)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1004);
		}
		elsif (plugin::check_hasitem($client, 1005)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1005);
		}
		elsif (plugin::check_hasitem($client, 1006)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1006);
		}
		elsif (plugin::check_hasitem($client, 1007)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1007);
		}
		elsif (plugin::check_hasitem($client, 1008)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1008);
		}
		elsif (plugin::check_hasitem($client, 1009)){
			plugin::Whisper("As promised! Here is your new item!");
			my %epic2 = ("Warrior" => 1009, "Rogue" => 1009, "Monk" => 1009, "Berserker" => 1009, "Shadowknight" => 1009, "Paladin" => 1009, "Ranger" => 1009, "Bard" => 1009, "Beastlord" => 1009);
			quest::summonitem($epic2{$class});
		}
		elsif (plugin::check_hasitem($client, 1010)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1010);
		}
		elsif (plugin::check_hasitem($client, 1011)){
			plugin::Whisper("As promised! Here is your new item!");
			quest::summonitem(1011);
		}
		else
		{
			plugin::Whisper("You are not ready to give me this item yet.");
			quest::summonitem(1001);
		}
	}
...in between his default check_handin() and the final return_items(), and it works just like it appears it should. Turn in # 1001 (cloth cap), and it checks for items # 1002 - 1011 in your inventory and duplicates them if it finds them. Otherwise, you get the else{} message and get Item # 1001 returned.

Also, I added "Cleric" to the $epic1 check since I already had a cleric tester character sitting in the zone and otherwise got a "There is no item with id 0" error in that turn-in. Hehe.
Reply With Quote