How to add a new looktype to the outfit window? Otx2
new outfit looktype : 294,295,296
Code:
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 : 136);
msg->put<uint16_t>(player->isPremium() ? (player->sex % 2 ? 134 : 142) : (player->sex % 2 ? 131 : 139));
#else
msg->put<char>(player->sex % 2 ? 128 : 136);
msg->put<char>(player->isPremium() ? (player->sex % 2 ? 134 : 142) : (player->sex % 2 ? 131 : 139));
#endif
player->hasRequestedOutfit(true);
}
void ProtocolGame::sendVIPLogIn(uint32_t guid)
new outfit looktype : 294,295,296