Hey guys, i'm looking on how to implement addons system on realotx 7.72. Since this distro has a different struct on how outfits are displayed on sendoutfitwindow function i dont know how to do this... any ideas?
Here's the function:
void ProtocolGame::sendOutfitWindow()
{
NetworkMessage_ptr msg = getOutputBuffer();
if(!msg)
return;
TRACK_MESSAGE(msg);
msg->put<char>(0xC8);
AddCreatureOutfit(msg, player, player->getDefaultOutfit(), true);
#ifdef _MULTIPLATFORM77
msg->put<uint16_t>(player->sex % 2 ? 128 : 159);
msg->put<uint16_t>(player->isPremium() ? (player->sex % 2 ? 153 : 178) : (player->sex % 2 ? 131 : 162));
#else
msg->put<char>(player->sex % 2 ? 128 : 159);
msg->put<char>(player->isPremium() ? (player->sex % 2 ? 153 : 178) : (player->sex % 2 ? 131 : 162));
#endif
player->hasRequestedOutfit(true);
}
Here's the function:
void ProtocolGame::sendOutfitWindow()
{
NetworkMessage_ptr msg = getOutputBuffer();
if(!msg)
return;
TRACK_MESSAGE(msg);
msg->put<char>(0xC8);
AddCreatureOutfit(msg, player, player->getDefaultOutfit(), true);
#ifdef _MULTIPLATFORM77
msg->put<uint16_t>(player->sex % 2 ? 128 : 159);
msg->put<uint16_t>(player->isPremium() ? (player->sex % 2 ? 153 : 178) : (player->sex % 2 ? 131 : 162));
#else
msg->put<char>(player->sex % 2 ? 128 : 159);
msg->put<char>(player->isPremium() ? (player->sex % 2 ? 153 : 178) : (player->sex % 2 ? 131 : 162));
#endif
player->hasRequestedOutfit(true);
}