EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Quest crashes zone (https://www.eqemulator.org/forums/showthread.php?t=28117)

Randymarsh9 05-05-2009 08:13 PM

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);
}
}


trevius 05-05-2009 09:19 PM

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?

joligario 05-05-2009 09:24 PM

What happens when you use taskselector(taskid) instead of just assigntask()?

Randymarsh9 05-05-2009 10:55 PM

The NPC isnt even responding now for some reason

Randymarsh9 05-05-2009 11:03 PM

I have another quest where I use tasks and that one worked perfectly. I probably need to change the spawns or something

joligario 05-06-2009 06:01 AM

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?

trevius 05-06-2009 06:04 AM

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.

joligario 05-06-2009 06:06 AM

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.

Derision 05-06-2009 12:17 PM

Quote:

Originally Posted by Randymarsh9 (Post 169144)
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.


All times are GMT -4. The time now is 12:04 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.