Progressive Task?
Have a new task I made, I'd like it to not unlock the 2nd task until the first one is completed.
How would I go about this? If there's a task in the peqdb already that does this, or if it's in a pl file, if someone could just name them I can go off that. I'm not familiar with the actual tasks as I dislike doing quests myself ;) I did create task sets, but when I trigger the task event with the NPC, she just offers me a choice of any task in the set. Edit: I created a task array in the npc's .pl file, all I need to know is how i can check if the PC has completed the prior quest. I see that info in the completed_tasks table, I'm just not sure how to get at it from the perl file. thanks |
|
Unless I'm missing something, this script doesnt actually seem to work. The problem seems to be that it returns the same ID as the active / last completed quest as the next one, which is completed and not repeatable, causing the NPC to not actuall pop the next quest. If i put an if statement in to manually tell it to pop task 213 (the next task in the taskset) that works.
Code:
# This example is based on a TaskSet (TaskSet 200), which consists of tasks 2000, 2001, 2002, 2003 and 2004 |
Tried adding this: $nexttask = quest::nexttaskinset(11,$taskid); to get the next ID but it's breaking the script atm. taskid is set manually to a task id in the taskset for now.
|
In case anyone else was having trouble with it, here's a copy of working code that does progressive quests. Change your taskids for the flavor text and the taskset IDs.
Code is pretty messy, there's a lot of comments and debug text, but you get the idea. Code:
# This example is based on a TaskSet (TaskSet 12), which consists of tasks 120, 121, 122, 123 and 124 |
All times are GMT -4. The time now is 01:41 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.