Jump to content

Color of the pet name


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Open:

UserInterface/InstanceBaseEffect.cpp

  • Search:

UINT CInstanceBase::GetNameColorIndex()

  • Go to:

else if (IsNPC())

  • Add:

int vnum = GetRace();
        if (vnum == yourpetvnum)
       {
            return NAMECOLOR_PET;
       }

  • Open:

UserInterface/InstanceBase.h

  • Search:

NAMECOLOR_PC,

  • Add:

NAMECOLOR_PET,

  • Open:

UserInterface/PythonCharacterManagerModule.cpp

  • Search:

PyModule_AddIntConstant(poModule, "NAMECOLOR_PC", CInstanceBase::NAMECOLOR_NORMAL_PC);

  • Add:

PyModule_AddIntConstant(poModule, "NAMECOLOR_PET", CInstanceBase::NAMECOLOR_PET);

  • Python:

 

  • Open: 

root/introloading.py

 

  • Search: 

chrmgr.NAMECOLOR_PC : colorInfo.CHR_NAME_RGB_PC,

  • Add: 

chrmgr.NAMECOLOR_PET : colorInfo.CHR_NAME_RGB_PET,

 

  • Open:

root/colorinfo.py

  • Add:

CHR_NAME_RGB_PET = (0, 0, 255)##Blue

 

I think this Works.

 

Works:

Ybyqc.jpg

 

Best Regards Cian.
 

 

 

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.