Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-16-2009, 03:35 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

I recently ran into this too. If you are doing the npcrace, npcgender inside EVENT_SPAWN there's a queue delay in the actual popping of the npc into the zone and the execution of EVENT_SPAWN.

The source does send the spawn packets to the queue first and then run the EVENT_SPAWN but the queue must be running behind the execution of EVENT_SPAWN. This is a little ugly, but see if it works for you this way:
Code:
sub EVENT_SPAWN {
    quest::settimer(1,0);
}

sub EVENT_TIMER {
    if($timer == 1) {
        quest::npcgender(1);
        quest::npcrace(126);
        quest::stoptimer(1);
    }
}
__________________
The Realm
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:06 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3