|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Quests::Q&A This is the quest support section |
05-05-2009, 08:13 PM
|
Dragon
|
|
Join Date: Dec 2007
Posts: 658
|
|
Quest crashes zone
I seem to be having a lot of problems using the task system. I used KLS's task creator to make my task. I can get the task now, but it will crash the zone as soon as I get it. Here is the quest for the person who assigns it:
Code:
sub EVENT_SAY{
if ($text=~/hail/i){
quest::say("Text");
}
if ($text=~/Text/i){
quest::assigntask(20);
quest::spawn(1243,0,0, 602, 1778.6, 0.5);
quest::spawn(1243,0,0, 303.8, 1815.4, -3.5);
quest::spawn(1243,0,0, 24.2, 1868.8, -0.0);
quest::spawn(1242,0,0, 628, 1359.1, 4.0);
quest::spawn(1242,0,0, 188.6, 1285.2, 0.5);
}
}
|
05-05-2009, 09:19 PM
|
|
Developer
|
|
Join Date: Aug 2006
Location: USA
Posts: 5,946
|
|
Did you do a "#task reloadall" after updating the task? Also, are you using the latest version of the task editor? And have you tried reading the wiki pages about tasks to make sure you have everything set properly?
|
05-05-2009, 09:24 PM
|
|
Developer
|
|
Join Date: Mar 2003
Posts: 1,490
|
|
What happens when you use taskselector(taskid) instead of just assigntask()?
|
05-05-2009, 10:55 PM
|
Dragon
|
|
Join Date: Dec 2007
Posts: 658
|
|
The NPC isnt even responding now for some reason
|
05-05-2009, 11:03 PM
|
Dragon
|
|
Join Date: Dec 2007
Posts: 658
|
|
I have another quest where I use tasks and that one worked perfectly. I probably need to change the spawns or something
|
05-06-2009, 06:01 AM
|
|
Developer
|
|
Join Date: Mar 2003
Posts: 1,490
|
|
Not sure if it is wrong or could be the cause of your bug, but can there really be a -0.0 and -3.5 heading?
|
05-06-2009, 06:04 AM
|
|
Developer
|
|
Join Date: Aug 2006
Location: USA
Posts: 5,946
|
|
I dunno about -0.0 lol, but he is using spawn, not spawn2. In quest::spawn, you don't specify heading. That last number is the Z axis.
|
05-06-2009, 06:06 AM
|
|
Developer
|
|
Join Date: Mar 2003
Posts: 1,490
|
|
Ah, disregard then. I did think it was pretty funny to have a -0.0. I wanted to see how many mathematicians were going to debate that there really is a -0.
|
05-06-2009, 12:17 PM
|
Developer
|
|
Join Date: Feb 2004
Location: UK
Posts: 1,540
|
|
Quote:
Originally Posted by Randymarsh9
I seem to be having a lot of problems using the task system. I used KLS's task creator to make my task. I can get the task now, but it will crash the zone as soon as I get it.
|
If you can post the task and activity table entries for your task, that might help me identify if the task code is causing the crash.
|
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 05:52 AM.
|
|
|
|
|
|
|
|
|
|
|
|
|