PDA

View Full Version : Task Complete


Randymarsh9
08-09-2009, 03:33 PM
is there some event like sub EVENT_TASK_COMPLETED? I can't find anything that would just activate when someone completes a certain task

trevius
08-09-2009, 05:11 PM
Many of the questions you ask can be answered by a quick look in the wiki:

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

Here is the example of what you are wanting in this case:

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

sub EVENT_TASK_STAGE_COMPLETE
Exports $task_id and $activity_id.

And more info on the player.pl file (which is where you use this event type):

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

Randymarsh9
08-09-2009, 06:08 PM
Yeah I saw the task stage complete one, but I meant one as in completing the ENTIRE task, not just one activity. I made a work around by just adding in a final step that was just like walk somewhere, then I had the event take place after that activity was completed.

trevius
08-09-2009, 06:28 PM
All tasks have to have activities, so if you set the check for completing the last activity in any task, it will do exactly what you are wanting. You can do the checks at any point of the task progress, including the final step.