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
  #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
 


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 09:15 PM.


 

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