Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2015, 12:29 PM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default Beastlord pets

I made a change to my server awhile ago and forgot to commit the changes when I recompiled the server. I added beastlord as a playable class to gnomes but I forgot how to change the base pet they get to a custom pet. any thoughts where I should look to make the change?
Reply With Quote
  #2  
Old 06-04-2015, 12:32 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

Check line 335 in pets.cpp:
Code:
if(record.petnaming == 2)
{
    switch(GetBaseRace())
    {
    case VAHSHIR:
        npc_type->race = TIGER;
        npc_type->size *= 0.8f;
        break;
    case TROLL:
        npc_type->race = ALLIGATOR;
        npc_type->size *= 2.5f;
        break;
    case OGRE:
        npc_type->race = BEAR;
        npc_type->texture = 3;
        npc_type->gender = 2;
        break;
    case BARBARIAN:
        npc_type->race = WOLF;
        npc_type->texture = 2;
        break;
    case IKSAR:
        npc_type->race = WOLF;
        npc_type->texture = 0;
        npc_type->gender = 1;
        npc_type->size *= 2.0f;
        npc_type->luclinface = 0;
        break;
    default:
        npc_type->race = WOLF;
        npc_type->texture = 0;
    }
}
Reply With Quote
  #3  
Old 06-04-2015, 12:41 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

For a moment I was scratching my head and wondering why the Beastlord pet appearances are hard-coded, instead of coming from the database pet entry / NPCType, but then I remembered that all Beastlords cast the same spells, referencing the same pet entries, so the server -has- to do the appearance choosing based on the caster's race.
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 11:33 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3