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 04-02-2012, 11:24 PM
Durge
Sarnak
 
Join Date: Jan 2010
Location: USA
Posts: 51
Default Storing item turn-ins

Hey guys, just wanted to know of a way to store how many items were turned in for a task.

Such as:
$amount = plugin::check_handin(\%itemcount, 13990 => 1) (I know this doesn't work, but any ideas?)

Also, how does the quest::updatetaskactivity works, is it (id,activityid,count) or what?
__________________
Reply With Quote
  #2  
Old 04-03-2012, 01:46 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Have you checked out the Task page in the wiki?:

http://www.eqemulator.net/wiki/wikka...goryTaskSystem

Specifically, the perl commands:

http://www.eqemulator.net/wiki/wikka...kSystemPerlAPI

updatetaskactivity(task, activity[, count])
If the specified task is active, the donecount of the specified activity is incremented by count. count defaults to 1 if not specified.

Basically, you don't need to store that info for tasks. Just make it a deliver step for the activity. If you prefer to have perl handle it, then you just deal with it like a normal turn in and do the update within the handin plugin.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 04-03-2012, 08:28 AM
Durge
Sarnak
 
Join Date: Jan 2010
Location: USA
Posts: 51
Default

Well, the original owner had written the quest to be a task, and yeah I saw that, but the quest wants 5 turn-ins so I just wasn't sure if I could make it quicker by storing the amount somewhere
__________________
Reply With Quote
  #4  
Old 04-03-2012, 09:15 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Tasks or quest globals would be the methods I would suggest. Tasks can accept multiple handin amounts. With the qglobals method, you would need to write handin blocks to accept 4, 3, 2, or 1 of the item and add the proper amount to the qglobal.
Reply With Quote
  #5  
Old 04-03-2012, 10:16 AM
Durge
Sarnak
 
Join Date: Jan 2010
Location: USA
Posts: 51
Default

Alright, thanks
__________________
Reply With Quote
  #6  
Old 04-04-2012, 09:54 AM
Durge
Sarnak
 
Join Date: Jan 2010
Location: USA
Posts: 51
Default

Would there be a way to have it automatically collect the items from their inventory and then say, add the number of tokens you had to your amount of ldon points?
__________________
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 11: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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3