• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Add new looktype to outfitwindow OTX2

Venox123

New Member
Joined
Jun 16, 2012
Messages
22
Reaction score
1
How to add a new looktype to the outfit window? Otx2

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
 
I have same problem just I changed from 128 to 191 outfits 32 for men and 32 for women, just I changed numbers in a range nothing more, and I compiled that also add to outfit. Xml right lines, same otx2 but v. RealOtx7.72-master somebody have some ideas?
 
Back
Top