EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Storing item turn-ins (https://www.eqemulator.org/forums/showthread.php?t=35152)

Durge 04-02-2012 11:24 PM

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?

trevius 04-03-2012 01:46 AM

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.

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?


All times are GMT -4. The time now is 07:03 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.