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? |
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. |
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
|
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.
|
Alright, thanks
|
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?
|
All times are GMT -4. The time now is 07:03 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.