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
  #2  
Old 07-05-2008, 12:25 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

yes you can have multyple items turns in single event. just make sure to get all the parentesis, semicolomns, etc right.
here is a workign exmaple you may want to check against.

Code:
sub EVENT_ITEM 
{

	if(plugin::check_handin(\%itemcount, 5056 => 4))
	{
	quest::say("Here are you coins as promised. Good work!
	One more thing, I belive I have spoted a large nasty rat outside of city gates!
	I belive the rat was infected with some sort of disease. This could be bad.
	If that rat passes the disease to the rest of the rodents, we up for realy big troubles!
	I tried to sent Lucy after it, but the rat managed to hid somewhere. If you see that big rat - slay it 
	wihout hesitation. Collect sample of its blood, so I can study it and what kind of disease it was
	carrying.");

	quest::faction(11,5);
	quest::faction(13,5);
	quest::faction(18,-10);

	quest::exp("1000"); 
	
	my $a = int(rand(5)+2);
	quest::givecash(0,$a,0,0);
	}

	if(plugin::check_handin(\%itemcount, 5057 => 4))
	{
	quest::say("Oh dear! What a smell! Where did you found those? In the sewer? Oh...
	Well, its better to have few less of those, than a few more I guess! Here, take these coins for your work!");

	quest::faction(11,5);
	quest::faction(13,5);
	quest::faction(18,-10);

	quest::exp("2500"); 

	my $a = int(rand(5)+2);
	quest::givecash(0,0,$a,0);
	}

}
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 01:27 AM.


 

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