View Single Post
  #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