• 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!

Addons System on OTX 7.72

nezak

New Member
Joined
Mar 27, 2020
Messages
8
Reaction score
0
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);
}
 
you need to source edit a lot of files in order to accomplish that, you can compare yours files ith otx 8.6 in order to achieve what you want
 
Back
Top Bottom