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::SetFakeRaceAndMorph() { if (getClass() == CLASS_DRUID) { if (GetOTeam() == ALLIANCE) { m_FakeMorph = getGender() == GENDER_MALE ? FAKE_M_TAUREN : FAKE_F_TAUREN; m_FakeRace = RACE_TAUREN; } else if (getGender() == GENDER_MALE) // HORDE PLAYER, ONLY HAVE MALE NELF ID { m_FakeMorph = FAKE_M_NELF; m_FakeRace = RACE_NIGHTELF; } else m_FakeRace = GetOTeam() == ALLIANCE ? RACE_BLOODELF : RACE_HUMAN; } else if (getClass() == CLASS_SHAMAN && GetOTeam() == HORDE && getGender() == GENDER_FEMALE) { m_FakeMorph = FAKE_F_DRANAEI; // Female Draenei m_FakeRace = RACE_DRAENEI; } else { m_FakeRace = GetOTeam() == ALLIANCE ? RACE_BLOODELF : RACE_HUMAN; if (GetOTeam() == HORDE) { if (getGender() == GENDER_MALE) m_FakeMorph = 19723; else m_FakeMorph = 19724; } else { if (getGender() == GENDER_MALE) m_FakeMorph = 20578; else m_FakeMorph = 20579; } } }
std::string CPlayer::GetNameLink(bool applycolors) { std::string name = GetName(); std::string teamcolor = GetOTeam() == ALLIANCE ? MSG_COLOR_DARKBLUE : MSG_COLOR_RED; std::ostringstream ss; if (isGameMaster()) teamcolor = MSG_COLOR_PURPLE; ss << "|Hplayer:" << name << "|h"; if (applycolors) ss << teamcolor << "[" << sCustom.GetClassColor(getClass()) << name << teamcolor << "]|h"; else ss << "[" << name << "]|h"; return ss.str(); }
void CPlayer::SetFakeValues() { m_oRace = GetByteValue(UNIT_FIELD_BYTES_0, 0); m_oFaction = GetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE); m_fRace = sCustom.PickFakeRace(getClass(), GetOTeam()); m_fFaction = Player::getFactionForRace(m_fRace); m_oPlayerBytes = GetUInt32Value(PLAYER_BYTES); m_oPlayerBytes2 = GetUInt32Value(PLAYER_BYTES_2); m_fPlayerBytes = sCustom.GetFakePlayerBytes(m_fRace, getGender()); m_fPlayerBytes2 = sCustom.GetFakePlayerBytes2(m_fRace, getGender()); if (!m_fPlayerBytes) m_fPlayerBytes = m_oPlayerBytes; if (!m_fPlayerBytes2) m_fPlayerBytes2 = m_oPlayerBytes2; }
void Player::SetFakeRace() { m_FakeRace = GetOTeam() == ALLIANCE ? RACE_BLOODELF : RACE_HUMAN; }
bool CPlayer::NativeTeam() const { return GetTeam() == GetOTeam(); }