Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2013, 01:19 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

A simple version of a turn in quest would be to use multiple if statements, and you can grow to the level of Trevius later on.
1 Being the template, 2, 3, and 4 being items that're required, thus giving you a specific out come for each class.
Code:
sub EVENT_ITEM
{
	if(plugin::check_handin(\%itemcount, 1 => 1, 2 => 1, 3 => 1, 4 => 1))
	{
		my $link = quest::varlink($rewards{$class});
		
		my %rewards = 
		(
			"Warrior" => 6, 
			"Cleric" => 7, 
			"Paladin" => 8, 
			"Ranger" => 9, 
			"Shadowknight" => 10, 
			"Druid" => 11, 
			"Monk" => 12, 
			"Bard" => 13, 
			"Rogue" => 14, 
			"Shaman" => 15, 
			"Necromancer" => 16, 
			"Wizard" => 17, 
			"Magician" => 18, 
			"Enchanter" => 19, 
			"Beastlord" => 20, 
			"Berserker" => 21
		);

		if(defined($rewards{$class})) 
		{
			my $link = quest::varlink($rewards{$class});
			quest::summonitem($rewards{$class});
			quest::shout2("Congratulations to $name on their $link!"); ##This is similar to EZ's turn in for Epics.
		}
	}
	else
	{
		plugin::Whisper("I do not need this.");
		quest::givecash($copper,$silver,$gold,$platinum);
		plugin::return_items(\%itemcount);
	}
}
Reply With Quote
Reply

Thread Tools
Display Modes

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:23 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