EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Task Completed - Move on (https://www.eqemulator.org/forums/showthread.php?t=40360)

Excuses 01-26-2016 05:38 PM

Task Completed - Move on
 
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.

Code:

  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.
Code:

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


All times are GMT -4. The time now is 10:13 AM.

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