Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Buff Pet Icon

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 2, 2020
Messages
10
Reaction score
1


Hmm, where do we define icons for buff looter pet?

wakoko321 - Buff Pet Icon - RaGEZONE Forums


wakoko321 - Buff Pet Icon - RaGEZONE Forums



I tried adding a custom pet but it's icon is not showing properly.

CwgH3K0 - Buff Pet Icon - RaGEZONE Forums


It shows as like the lord buff icons?

item images were defined properly at spec_item and it show's properly

wakoko321 - Buff Pet Icon - RaGEZONE Forums


So I wonder where does this buff icons are defined?
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 2, 2020
Messages
10
Reaction score
1
check WndWorld

Hello! Thank you for pointing out where to find it.

So this is because of the __DST_GIFTBOX, if a pet has a lucky drop parameters it will show the lord buffs instead of it's own item icon. I can't completely disable that define as it will affect the implementations of that define thus I just added a new define to disable the icon and just continue to use the item icon.

For anyone who will need it, here's the code.

just add this define where you add all your defines
#define __PET_LUCKYBOX_ICON //: Disable luckybox icon and use item's own icon

in WndWorld.cpp

Find:
Code:
#ifdef __DST_GIFTBOX
if(pItemProp->dwDestParam[0] == DST_GIFTBOX || pItemProp->dwDestParam[1] == DST_GIFTBOX || pItemProp->dwDestParam[2] == DST_GIFTBOX)
buffskill.m_pTexture = m_textureMng.AddTexture( m_pApp->m_pd3dDevice,  MakePath( DIR_ICON, "Skill_TroGiftbox02.dds" ), 0xffff00ff );
else
buffskill.m_pTexture = m_textureMng.AddTexture( m_pApp->m_pd3dDevice,  MakePath( DIR_ITEM, pItemProp->szIcon ), 0xffff00ff );

Replace with:
Code:
#ifdef __DST_GIFTBOX
#ifndef __PET_LUCKYBOX_ICON
if(pItemProp->dwDestParam[0] == DST_GIFTBOX || pItemProp->dwDestParam[1] == DST_GIFTBOX || pItemProp->dwDestParam[2] == DST_GIFTBOX)
buffskill.m_pTexture = m_textureMng.AddTexture( m_pApp->m_pd3dDevice,  MakePath( DIR_ICON, "Skill_TroGiftbox02.dds" ), 0xffff00ff );
else
#endif // __PET_LUCKYBOX_ICON
buffskill.m_pTexture = m_textureMng.AddTexture( m_pApp->m_pd3dDevice,  MakePath( DIR_ITEM, pItemProp->szIcon ), 0xffff00ff );

Result:
Boxw9X - Buff Pet Icon - RaGEZONE Forums

wakoko321 - Buff Pet Icon - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Status
Not open for further replies.
Back
Top