DRUlD
New Member
- Joined
- Mar 4, 2018
- Messages
- 16
- Reaction score
- 0
Hello
I added 7 new male outfits and 7 female outfits and I have a problem with protocolgame.cpp
I have no idea how to check the (hex code?) of the last male/female outfit ( 0x?? )
I added 7 new male outfits and 7 female outfits and I have a problem with protocolgame.cpp
I have no idea how to check the (hex code?) of the last male/female outfit ( 0x?? )
C++:
// only first 4 outfits
uint8_t lastFemaleOutfit = 0x8B;
uint8_t lastMaleOutfit = 0x83;
// if premium then all 7 outfits
if (player->getSex() == PLAYERSEX_FEMALE && player->isPremium())
lastFemaleOutfit = 0x8E;
else if (player->getSex() == PLAYERSEX_MALE && player->isPremium())
lastMaleOutfit = 0x86;
if ((player->getSex() == PLAYERSEX_FEMALE &&
lookType >= 143 &&
lookType <= lastFemaleOutfit) ||
(player->getSex() == PLAYERSEX_MALE &&
lookType >= 128 &&
lookType <= lastMaleOutfit))