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
  #6  
Old 07-14-2009, 11:41 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

here is a little sample for you where npc takes 1 quest item and then gives you a random reward. he will also accept back any of the reward items and again randomly choose a reward item. Of course you may spent some time giving items back to him till you get exactly what you want.

item 1060 is the quest item, items 1189-1193 are rewards

Code:
sub EVENT_ITEM 
{


	if(plugin::check_handin(\%itemcount, 1060 => 1) || 
	plugin::check_handin(\%itemcount, 1189 => 1) || 
	plugin::check_handin(\%itemcount, 1190 => 1) || 
	plugin::check_handin(\%itemcount, 1191 => 1) || 
	plugin::check_handin(\%itemcount, 1192 => 1) || 
	plugin::check_handin(\%itemcount, 1193 => 1)	)
	{
	quest::say("I award you this! If this is not something you like, give it back to me and I will find something 
	else for you");

	my $a = quest::ChooseRandom(1189, 1190, 1191, 1192, 1193);
	quest::summonitem($a); 
	}




	else 
	{
	plugin::return_items(\%itemcount);	}

}

alternativly this can be set up that he trades reward items one for one (give 1 get 2, give 2 get 3. give 3 get 4 and so on)
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 05:47 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