Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Completed

Quests::Completed This is where Completed quests are.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2009, 09:14 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by Loftus View Post
Thanks Andrew! Any guidance on the return_items plugin?
I believe it is part of the check_items plugin. It's part of one of them. I looked it up once but don't recall which one it is in. You can search for it in the plugin folder if you check for contents(ie grep).
Reply With Quote
  #2  
Old 02-23-2009, 09:19 PM
Loftus
Sarnak
 
Join Date: Feb 2009
Location: New Mexico
Posts: 34
Default

Oh gotcha.

So as long as I have the handin plugin I do not need to add a 5th file in the plugin directory for this?

Also, someone else noted in another thread that they prefer to NOT put the return_items in an else statement, but rather at the end as stand-alone. This apparently would return any unused/incorrect items if at least some of the items were what the NPC was looking for?

So,

Code:
sub EVENT_ITEM
{
if(plugin::check_handin(\%itemcount, 54001 => 1))
  {
  quest::say("Alas, my poor Sethena! Thank you for this trinket, $name. Please, take this as a token of my gratitude.");
  quest::faction(264,100);
  quest::exp(18000);
  quest::summonitem(54002);
  }
}

plugin::return_items(\%itemcount);
Reply With Quote
  #3  
Old 02-23-2009, 09:30 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Correct on both.
Reply With Quote
  #4  
Old 02-23-2009, 10:05 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

You have it outside of the sub..

Personally, I like having the return items in the elsif statement just so I feel better that the hand-in item won't accidentally be returned along with the reward.
Reply With Quote
  #5  
Old 02-24-2009, 12:10 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by joligario View Post
You have it outside of the sub..

Personally, I like having the return items in the elsif statement just so I feel better that the hand-in item won't accidentally be returned along with the reward.
I'm pretty sure that can't happen. From what I understand if it satisfies the if condition, the item is actually removed from the hash so it wouldn't be available to be returned. I haven't looked at it all that much but that is how I understand it to work.

Good catch on the placement of the return too. I didn't look at the code real close.
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 02:00 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