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 07-07-2008, 06:49 PM
Aonelyn's Avatar
Aonelyn
Hill Giant
 
Join Date: Jul 2005
Location: Felwithe
Posts: 192
Default multi-class armor quest

sub EVENT_ITEM
{
if ($itemcount{17} == 1 && $class eq 'Paladin,Bard')
{
quest::summonitem (1;
quest::shout("Congratulations $name");
}
}


how could i get this to work?
__________________
lol.
Reply With Quote
  #2  
Old 07-07-2008, 07:02 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Try this:

Code:
sub EVENT_ITEM { 
	if ($itemcount{17} == 1) {
		if ($class eq "Paladin" || $class eq "Bard") {
			quest::summonitem(18);
			quest::shout("Congratulations $name");
		}
	} else {
		plugin::return_items(\%itemcount);
		quest::say("WRNG ITMZ FTWZ!!1");
	}
}
You could also do it this way (all on 1 line):

Code:
sub EVENT_ITEM {
	if ($itemcount{17} == 1 && ($class eq "Paladin" || $class eq "Bard")) {
		quest::summonitem (18);
		quest::shout("Congratulations $name");
	}
}
Hope this helps.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #3  
Old 07-07-2008, 08:02 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I had issues with getting some of these to work as well, but I finally got them all working. You might be able to find some good examples in the Custom Quests section of the forums. Here are some examples of quests I posted there for class specific rewards:

http://www.eqemulator.net/forums/showthread.php?t=24921

http://www.eqemulator.net/forums/showthread.php?t=24321
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 07-07-2008, 09:49 PM
Aonelyn's Avatar
Aonelyn
Hill Giant
 
Join Date: Jul 2005
Location: Felwithe
Posts: 192
Default

Thanks guys.


Andmetal,Trevius Thanks for the fast responses.

You guys are a great part of this community.
__________________
lol.
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: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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3