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
  #3  
Old 08-18-2007, 10:05 AM
Darkonig
Hill Giant
 
Join Date: Dec 2006
Posts: 102
Default

There should only be one EVENT_ITEM subroutine per quest file. You need to combine them all into one. Then place each valid turn in combination in an if clause.
Code:
If (plugin::check_handin(...)) {
  do something
} elsif (plugin::check_handin(...)) {
  do something else
} elsif (plugin::check_handin(...)) {
  do whatever this is
}

if (scalar keys %itemcount > 0) {
  quest::say("I don't need these items");
  plugin::return_items(\%itemcount)
}
the check_handin plugin will remove any items required from %itemcount
when the routine is finished, it will check to see if there are still any items that were turned in but not needed. If so, it will return them.

If you want to allow for multiple quests to be completed with a single hand in, just change the elsif to an if. Each step will remove any items it needed from the turn in.

Nothing will be returned to the player unless you either explicitly summon it and/or use the return_items plugin.

Last edited by Darkonig; 08-18-2007 at 06:09 PM..
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 06:31 PM.


 

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