Task System
I found my way into tasks, but I am undergoing and issue when it comes to setting it up to allow when a user approaches the task npc, it checks to see where they are at and it keep count if they have done it or not and also allows them have the next task in line.
I followed this guide here: Code:
http://www.eqemulator.net/wiki/wikka.php?wakka=TaskSystemTaskSets Code:
###### Also I created a "TaskSet" in the taskset table using: Code:
INSERT INTO `taskset` (`id`, `taskid`) VALUES (500, 500); Like I said, they work just fine...... individually, but if I were to try and pair them up and make them sequential, then I get nowhere. Any and all help on this would be great. Thank you, Kingmen |
Just glancing over the code... elsif what?
|
I just followed what he had done. What part of the code are you referring to with "elsif"....
|
An elsif requires a logic statement just like an if
|
Code:
quest::ipdatetaskactivity($task, $activity); |
This should work better:
Code:
I changed the taskset number from 500 to 1, since I already had a taskset 1 I could use for testing, so you will need to change them back to 500. I tested as far as completing the first task and getting assigned the next one. |
Thank you very much Derision, I will give this a test run and see if it I can't use this sometime in the future. I really enjoy the way you have this set up as well, it is VERY clean, and allows me to look at what you have done and could potentially open a lot of doors for me.
Thanks to all that gave me responses as they were all informative as well =) |
I was looking at this, and I changed ALL of them to reflect my taskSET ID in my DB, but when I complete the first task, she just keeps offering it to me. Now if I have the task, she won't offer it to me, she will just "ignore" me.
How do I make it go to the next task? *EDIT* It works just fine (The last part) on my character that I tested the quests with. *EDIT* I tested it out with the Cleansing of Qeynos Hills task, but it keeps returning Part 1 when I want Part 2 to come up. (Sorry for all these questions, I am sure it is something that I am simply missing, or not doing, but that is why I am here asking, to learn it :) ) |
I tested the whole of the Cleaning Qeynos Hills task chain just now with the script I posted above. The only way I can get it to fail in the manner you describe is if I have a syntax error, or other error with the quest::enabletask command after the 'Well done, I have another task if you are interested.
i.e. Code:
plugin::Whisper("Well done, I ahve another task if you are willing."); |
Okay, well I checked this, and I even copied and pasted your script directly to the NPC task, and it is still not working. When I checked the character_enabledtasks table, it shows it as 11, 7 (11 being my chars' ID and 7 being the quest.) I have completed it several times, and it keeps giving me the SAME task, over and over again.
I tested it against my main char RIGHT NOW (He has yet to attempt this line of tasks) and he was able to complete it just fine, but when he returned to my task NPC, all she does it repeat: Code:
Hi $name, I have a [job] for you. How do I make it update the character_enabledtasks table? I am doing everything that I know with no effect =\ |
*Bump* Sorry to bump this post, I was just wondering if anyone had anything that might help me in my endeavor.
Thanks for any posts. |
All times are GMT -4. The time now is 08:51 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.