PDA

View Full Version : Storing item turn-ins


Durge
04-02-2012, 11:24 PM
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?

trevius
04-03-2012, 01:46 AM
Have you checked out the Task page in the wiki?:

http://www.eqemulator.net/wiki/wikka.php?wakka=CategoryTaskSystem

Specifically, the perl commands:

http://www.eqemulator.net/wiki/wikka.php?wakka=TaskSystemPerlAPI

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.

Durge
04-03-2012, 08:28 AM
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

joligario
04-03-2012, 09:15 AM
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.

Durge
04-03-2012, 10:16 AM
Alright, thanks

Durge
04-04-2012, 09:54 AM
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?