Task System need Perl?
I made a couple of Tasks in the database...
Code:
INSERT INTO tasks (id, duration, title, description, reward, rewardid, cashreward, xpreward, rewardmethod, startzone, minlevel, maxlevel, repeatable) VALUES ('900000000', '0', 'Kill 10 Orc Pawns', 'Go forth into Greater Faydark. Slay 10 of the Orc Pawns that roam the woods.', 'Small Bronze Helm', '4213', '325', '100', '0', '54', '0', '0', '0'); - Djeryv |
No need for perl in these situations.
|
Have you tried entering your description in brackets?
'[0,Go forth into Greater Faydark. Slay 10 of the Orc Pawns that roam the woods.]' Have you tried making these guys step 1 instead of step 0? I'm sure you saw, but you also have it set to kill 5 rather than 10. |
These tasks shouldn't even be loaded from the database, as the max task ID is 9999. Guess I need to update the Wiki to mention that.
|
I tested them both, changing the Task IDs to 9000 and 9001.
First one works fine. For the second one, I needed to change the zoneid to 61 (felwithea) for it to work. I also noticed the General gave back the Orc Skull. This is because in the PEQ quest repo he has a sub EVENT_ITEM and as the Orc Skull is not checked for in there, he gives it back. You could add: Code:
elsif(plugin::check_handin(\%itemcount, 16174 => 1)) |
I'll try the things mentioned here...but...do you have to use perl to get the task started? Is there a non-perl way to get one going?
- Djeryv |
No, the only way to bring up the task selector window to allow a player to accept a task, or to forcibly assign a task to a player is via Perl.
|
Well...everything does work fine now. The 2 test tasks I made worked...as I changed the NPC from the General to a Guard (who had no ITEM event in their perl script). Thanks for all the help...this task system is pretty cool.
- Djeryv |
All times are GMT -4. The time now is 10:00 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.