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.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2009, 02:14 PM
covou
Sarnak
 
Join Date: Jan 2006
Posts: 31
Default Illusion Packets

OK so i have been playing with quest::npcrace, quest::npcgender etc..

And at this point in time it seems that if the event or IF containing these changes is NOT triggered by a client, the illusion packet is not sent to any clients... Having #showstats show the correct race however the NPC Model appear to be the BaseRace...

As i am not too versed in C++ i cannot determine whether or not it is possible to have this packet sent to clients even if the event is not triggered by a client.

Due to the nature of an NPC spawning and sending a packet to clients about what race it is, i would guess that there should be someway...

If anyone can assist with this i would be greatful.
Reply With Quote
  #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
Reply


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 08:26 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3