Felipe93
Ghost Member
Hello Otlanders
Im having issues with changing othire outfits ranges (i've added new outfits)
the problem is that the new outfits appears at outfits windows, but when i choose the outfit ingame player becomes invisible like i've used utana vid
i had edit my protocol game from this
to this:
i need to edit others files? i know my ranges are okey
@Peonso could you help me into this pls?
thanks to all by advance
Im having issues with changing othire outfits ranges (i've added new outfits)
the problem is that the new outfits appears at outfits windows, but when i choose the outfit ingame player becomes invisible like i've used utana vid
i had edit my protocol game from this
Code:
void ProtocolGame::sendOutfitWindow()
{
NetworkMessage_ptr msg = getOutputBuffer();
if (msg){
msg->AddByte(0xC8); //code for client to open outfit window
AddCreatureOutfit(msg, player, player->getDefaultOutfit()); //your current outfit as first showin outfit in window
switch (player->getSex()) {
case PLAYERSEX_FEMALE: //for female players
msg->AddU16(136); //first female outfit
if (player->isPremium())
msg->AddU16(142); //last female outfit if player got premium (+3 premium outfits)
else
msg->AddU16(139); //last female outfit if players is facc
break;
case PLAYERSEX_MALE: //same for males
msg->AddU16(128);
if (player->isPremium())
msg->AddU16(134);
else
msg->AddU16(131);
break;
case 2:
msg->AddU16(160); // GM outfit? idk whats on sex=2
msg->AddU16(160);
break;
default: //male facc outfits as default, but should never gets here
msg->AddU16(128);
msg->AddU16(134);
}
}
}
to this:
Code:
void ProtocolGame::sendOutfitWindow()
{
NetworkMessage_ptr msg = getOutputBuffer();
if (msg){
msg->AddByte(0xC8);
AddCreatureOutfit(msg, player, player->getDefaultOutfit());
switch (player->getSex()) {
case PLAYERSEX_FEMALE:
msg->AddU16(410);
if (player->isPremium())
msg->AddU16(456);
else
msg->AddU16(413);
break;
case PLAYERSEX_MALE:
msg->AddU16(362);
if (player->isPremium())
msg->AddU16(408);
else
msg->AddU16(365);
break;
case 2:
msg->AddU16(160);
msg->AddU16(160);
break;
default:
msg->AddU16(362);
msg->AddU16(408);
}
}
}
i need to edit others files? i know my ranges are okey
@Peonso could you help me into this pls?
thanks to all by advance