|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Quests::Q&A This is the quest support section |
 |
|
 |

07-18-2009, 08:41 AM
|
Hill Giant
|
|
Join Date: Apr 2008
Posts: 234
|
|
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');
INSERT INTO activities (taskid, activityid, step, activitytype, text1, text2, text3, goalid, goalmethod, goalcount, delivertonpc, zoneid, optional) VALUES ('900000000', '0', '0', '2', 'Orc Pawns', '', '', '54015', '0', '5', '0', '54', '0');
INSERT INTO tasks (id, duration, title, description, reward, rewardid, cashreward, xpreward, rewardmethod, startzone, minlevel, maxlevel, repeatable) VALUES ('900000001', '0', 'Get Orc Skull', 'Go forth into Greater Faydark and bring General Jyleel [in Felwithe] a skull of an orc.', 'Fine Steel Scimitar', '5353', '600', '200', '0', '54', '0', '0', '0');
INSERT INTO activities (taskid, activityid, step, activitytype, text1, text2, text3, goalid, goalmethod, goalcount, delivertonpc, zoneid, optional) VALUES ('900000001', '0', '0', '1', 'General Jyleel', 'Orc Skull', '', '16174', '0', '1', '61026', '54', '0');
...I can get them from a NPC (I added it to their perl script), but I cannot seem to make them work. I killed orc pawns...nothing. I tried to give an orc skull to the General...he gave it back. Do I have to use perl to make the task system work? Do I have to put an ondeath event in an orc pawn perl script? I was hoping I could make tasks without needing perl at all.
- Djeryv
|
 |
|
 |

07-18-2009, 08:58 AM
|
 |
Developer
|
|
Join Date: Mar 2003
Posts: 1,498
|
|
No need for perl in these situations.
|

07-18-2009, 09:13 AM
|
 |
Developer
|
|
Join Date: Mar 2003
Posts: 1,498
|
|
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.
|

07-18-2009, 09:22 AM
|
Developer
|
|
Join Date: Feb 2004
Location: UK
Posts: 1,540
|
|
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.
Last edited by Derision; 07-18-2009 at 05:56 PM..
|

07-18-2009, 09:56 AM
|
Developer
|
|
Join Date: Feb 2004
Location: UK
Posts: 1,540
|
|
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))
{
# Quietly eat the Orc Skull
}
If you had more activities in the task, you could use quest::istaskactivityactive to only eat the skull if the player is doing the task, however in this case, the task is already marked complete by the time the Perl sub EVENT_ITEM is called.
|

07-18-2009, 10:37 AM
|
Hill Giant
|
|
Join Date: Apr 2008
Posts: 234
|
|
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
|

07-18-2009, 10:46 AM
|
Developer
|
|
Join Date: Feb 2004
Location: UK
Posts: 1,540
|
|
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.
|

07-18-2009, 11:34 AM
|
Hill Giant
|
|
Join Date: Apr 2008
Posts: 234
|
|
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
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:29 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |