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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2007, 09:45 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default Fix for Spawning mobs with weapons

I wished I would have tested this sooner - it works like a champ;

Inside the file mob.cpp in the zone folder, look for the Mob::FillSpawnStruct function. Inside this function @ line 652 (latest build 1002) you will find a for loop
Code:
for(i = 0; i < 7; i++)
{
   ns->spawn.equipment[i] = GetEquipmentMaterial(i);
   ns->spawn.colors[i].color = GetEquipmentColor(i);

}
The problem here is that there are 9 slots 0 thru 8 so, the code should be:
Code:
for(i = 0; i < 9; i++)
{
   ns->spawn.equipment[i] = GetEquipmentMaterial(i);
   ns->spawn.colors[i].color = GetEquipmentColor(i);

}
This new code was PM'd to me by Glather ( I quoted all the above from him), and all the credit goes to him. I have tested it on my server and all seems to work fine, mobs are now showing weapons.

KLS: I hope we get an update with all this new stuff to the source soon?
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 12:20 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