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, 12:45 AM
jshows1
Sarnak
 
Join Date: Jun 2009
Location: Baton Rouge,LA
Posts: 79
Default Template turn in question.

Hey guys. I am wanting to implement some turn in quests for different types of armor throughout different level ranges. My goal is to have templates drop (for example arm, leg, fee, etc.) that are ALL/ALL. When the player turns them in, they get a class specific pc of armor.

Basically similar to the Glowing Othni and Athlai armor for those of you familiar with live http://everquest.allakhazam.com/db/q...tml?quest=4847.

My question is this: is the above mentioned turn in quest somewhere in the database? Or could someone possible post an example of one that I could use to study and work through? I would like to try to set up a custom quest like this. I think it would be much easier if I could study one similar rather than working blindly. Thanks in advance!
Reply With Quote
  #2  
Old 06-13-2013, 01:07 AM
Burningsoul
Discordant
 
Join Date: Oct 2009
Posts: 312
Default

For a similar quest, GeorgeS' NPC and Loot tool has a quest template that is somewhat like you are after, there is also Trevius' Armor Upgrade Quest, which is both huge and awesome, and a really good one to study. Pretty sure someone else will have more ideas, but see how those two work for you in the meantime.
Reply With Quote
  #3  
Old 06-13-2013, 01:19 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
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
  #4  
Old 06-13-2013, 01:34 AM
jshows1
Sarnak
 
Join Date: Jun 2009
Location: Baton Rouge,LA
Posts: 79
Default

I think looking at both of your suggestions will help me greatly. This is exactly what I was looking for. Thanks bunches, guys.
Reply With Quote
  #5  
Old 06-13-2013, 01:41 AM
Burningsoul
Discordant
 
Join Date: Oct 2009
Posts: 312
Default

BTW, nice template there Kingly!
Reply With Quote
  #6  
Old 06-13-2013, 01:46 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

You're welcome, and thanks Burningsoul, haha.
Reply With Quote
  #7  
Old 06-13-2013, 03:02 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

The abysmal armor quests in the stock PEQ quest database do this with an NPC per class. Use the above for a single NPC.
Reply With Quote
Reply


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 12:49 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3