BWStripes
05-16-2009, 08:30 AM
Trying to code around the "lockout" in the coirnav event left an interesting error.
The Guardian_of_Coirnav should spawn when the event is ready. No problem, really. One method, if the event isn't ready, then depop the trigger mob. A simple global check, I thought:
sub EVENT_SPAWN {
if($qglobals{coirnav_done} == 3) { #Coirnav has a lockout, I'm outta here.
quest::depop();
}
}
I set the Guardian to a 25 minute spawn just for testing purposes. I completed the event, left the zone booted for a while, and came back to this:
http://www.imagebucket.net/bucket/is.php?i=4305&img=GuardianWTF.jpg
Basically the extras were targettable on the client, but using either #depop or #kill on them resulted in "No target" Errors. When you used #listnpcs Guardian_of it only showed ONE guardian spawned (as highlighted).
Okay, not the best move to do it inside the EVENT_SPAWN block, so I changed the depop method it uses. Lesson learned, but still strange. I'm left wondering why depop causes this "ghost" to appear on the client when inside a EVENT_SPAWN block.
The Guardian_of_Coirnav should spawn when the event is ready. No problem, really. One method, if the event isn't ready, then depop the trigger mob. A simple global check, I thought:
sub EVENT_SPAWN {
if($qglobals{coirnav_done} == 3) { #Coirnav has a lockout, I'm outta here.
quest::depop();
}
}
I set the Guardian to a 25 minute spawn just for testing purposes. I completed the event, left the zone booted for a while, and came back to this:
http://www.imagebucket.net/bucket/is.php?i=4305&img=GuardianWTF.jpg
Basically the extras were targettable on the client, but using either #depop or #kill on them resulted in "No target" Errors. When you used #listnpcs Guardian_of it only showed ONE guardian spawned (as highlighted).
Okay, not the best move to do it inside the EVENT_SPAWN block, so I changed the depop method it uses. Lesson learned, but still strange. I'm left wondering why depop causes this "ghost" to appear on the client when inside a EVENT_SPAWN block.