void Protocol76:
arseRequestOutfit(NetworkMessage &msg)
{
msg.Reset();
msg.AddByte(0xC8);
msg.AddByte(player->looktype);
msg.AddByte(player->lookhead);
msg.AddByte(player->lookbody);
msg.AddByte(player->looklegs);
msg.AddByte(player->lookfeet);
switch (player->getSex())
{
case PLAYERSEX_FEMALE:
msg.AddByte(PLAYER_FEMALE_1);
#ifdef YUR_PREMIUM_PROMOTION
msg.AddByte(player->premmium == true? PLAYER_FEMALE_14 : PLAYER_FEMALE_4);
#else
msg.AddByte(PLAYER_FEMALE_4);
#endif //YUR_PREMIUM_PROMOTION
break;
case PLAYERSEX_MALE:
msg.AddByte(PLAYER_MALE_1);
#ifdef YUR_PREMIUM_PROMOTION
msg.AddByte(player->premmium == true? PLAYER_MALE_12 : PLAYER_MALE_4);
#else
msg.AddByte(PLAYER_MALE_4);
#endif //YUR_PREMIUM_PROMOTION
break;
/////////////////////////
case PLAYERSEX_MALET:
msg.AddByte(PLAYER_MALE_13);
#ifdef YUR_PREMIUM_PROMOTION
msg.AddByte(player->premmium == true? PLAYER_MALE_14 : PLAYER_MALE_13);
#else
msg.AddByte(PLAYER_MALE_13);
#endif //YUR_PREMIUM_PROMOTION
break;
/////////////////////////////
/////////////////////////
case PLAYERSEX_TEST:
msg.AddByte(PLAYER_TEST_1);
#ifdef YUR_PREMIUM_PROMOTION
msg.AddByte(player->premmium == true? PLAYER_TEST_17 : PLAYER_TEST_1);
#else
msg.AddByte(PLAYER_TEST_17);
#endif //YUR_PREMIUM_PROMOTION
break;
/////////////////////////////
/////////////////////////
case PLAYERSEX_TUTOR_F:
msg.AddByte(PLAYER_FEMALE_15);
#ifdef YUR_PREMIUM_PROMOTION
msg.AddByte(player->premmium == true? PLAYER_FEMALE_15 : PLAYER_FEMALE_15);
#else
msg.AddByte(PLAYER_FEMALE_15);
#endif //YUR_PREMIUM_PROMOTION
break;
/////////////////////////////
/////////////////////////
case PLAYERSEX_MALEGM:
msg.AddByte(PLAYER_MALE_1);
#ifdef YUR_PREMIUM_PROMOTION
msg.AddByte(player->premmium == true? PLAYER_MALE_15 : PLAYER_MALE_11);
#else
msg.AddByte(PLAYER_MALE_1);
#endif //YUR_PREMIUM_PROMOTION
break;
/////////////////////////////
case PLAYERSEX_OLDMALE:
msg.AddByte(160);
msg.AddByte(160);
break;
default:
msg.AddByte(PLAYER_MALE_1);
#ifdef YUR_PREMIUM_PROMOTION
msg.AddByte(player->premmium == true? PLAYER_MALE_12 : PLAYER_MALE_4);
#else
msg.AddByte(PLAYER_MALE_4);
#endif //YUR_PREMIUM_PROMOTION
}
WriteBuffer(msg);
}
void Protocol76::sendSetOutfit(const Creature* creature)
{
if (CanSee(creature))
{
NetworkMessage newmsg;
newmsg.AddByte(0x8E);
newmsg.AddU32(creature->getID());
if (creature->looktype > 1000)
{
newmsg.AddByte(0);
newmsg.AddU16(Item::items[creature->looktype].clientId);
}
else
{
if (creature->isInvisible())
{
newmsg.AddByte(0);
newmsg.AddU16(0);
}
else
{
newmsg.AddByte(creature->looktype);
newmsg.AddByte(creature->lookhead);
newmsg.AddByte(creature->lookbody);
newmsg.AddByte(creature->looklegs);
newmsg.AddByte(creature->lookfeet);
}
}
WriteBuffer(newmsg);
}
}