void Player::MorphFit(bool value) { if (!IsPlayingNative() && value) { if (GetOTeam() == HORDE) { if (getGender() == GENDER_MALE) { SetDisplayId(19723); SetNativeDisplayId(19723); } else { SetDisplayId(19724); SetNativeDisplayId(19724); } } else { if (getGender() == GENDER_MALE) { SetDisplayId(20578); SetNativeDisplayId(20578); } else { SetDisplayId(20579); SetNativeDisplayId(20579); } } } else InitDisplayIds(); }
void Player::MorphFit(bool value) { if (!IsPlayingNative() && value) { SetDisplayId(GetFakeMorph()); SetNativeDisplayId(GetFakeMorph()); } else InitDisplayIds(); }
bool Player::SendRealNameQuery() { if (IsPlayingNative()) return false; WorldPacket data(SMSG_NAME_QUERY_RESPONSE, (8 + 1 + 1 + 1 + 1 + 1 + 10)); data.appendPackGUID(GetGUID()); // player guid data << uint8(0); // added in 3.1; if > 1, then end of packet data << GetName(); // played name data << uint8(0); // realm name for cross realm BG usage data << uint8(getORace()); data << uint8(getGender()); data << uint8(getClass()); data << uint8(0); // is not declined return true; }
void Player::FitPlayerInTeam(bool action, Battleground* pBattleGround) { if (!pBattleGround) pBattleGround = GetBattleground(); if ((!pBattleGround || pBattleGround->isArena()) && action) return; if(!IsPlayingNative() && action) setFactionForRace(getRace()); else setFactionForRace(getORace()); if (action) SetForgetBGPlayers(true); else SetForgetInListPlayers(true); MorphFit(action); if (pBattleGround && action) SendChatMessage("%sYou are playing for the %s%s in this %s", MSG_COLOR_WHITE, GetTeam() == ALLIANCE ? MSG_COLOR_DARKBLUE"alliance" : MSG_COLOR_RED"horde", MSG_COLOR_WHITE, pBattleGround->GetName()); }