PDA

View Full Version : Task Completed - Move on


Excuses
01-26-2016, 05:38 PM
Hey guys,

Just wondering, i have been trying to get this to work, hoping someone can shed some light on anything i might be missing.

The task is being handled via EoC Task creation, the reward is via PERL method.

I would like when the task to be "Completed" that it automatically assigns a new task.

sub EVENT_TASK_COMPLETE
{
if($task_id == 26)
{
quest::assigntask(29);
}
}

OR, if it helps another way i was thinking was if you have not completed task 26, you cannot be assigned task 29.

Still getting my head around PERL if / els statements, seems to be more picky picky on how those statements are handled than PHP (i am fluent with php)

Any light to be shed would be greatly appreciated!

provocating
01-26-2016, 07:44 PM
The big question, where is the script at? Meaning the directory and name.

Excuses
01-27-2016, 06:39 PM
Where? It's in the quest files, wheres the perl scripts go.

And like i had said, the main part of the quest is task related first, i just want to know how i can assign on complete, as a sub event.

provocating
01-27-2016, 07:09 PM
Well that still is not a lot of information. But I will trust that everything is working but this part. You are looking for something like this.

if(quest::istaskcompleted(26) == 1) {
quest::assigntask(29);
}

I am pretty sure a completed task will equal 1, uncompleted is a 0

Excuses
01-28-2016, 04:14 AM
Aye that is exactly all i was asking. I didnt think of using the completed value.


Thanks

provocating
01-28-2016, 09:16 AM
Your very welcome