[12770] Implemented SMSG_WORLD_SERVER_INFO

This commit is contained in:
sanctum32 2013-12-30 18:07:35 +02:00 committed by Antz
parent 2ea4d93b73
commit 5b69c5ba98
4 changed files with 20 additions and 5 deletions

View file

@ -20578,9 +20578,24 @@ void Player::SendInitialPacketsBeforeAddToMap()
SendTalentsInfoData(false);
data.Initialize(SMSG_INSTANCE_DIFFICULTY, 4 + 4);
data.Initialize(SMSG_WORLD_SERVER_INFO, 1 + 1 + 4 + 4);
data.WriteBit(0); // HasRestrictedLevel
data.WriteBit(0); // HasRestrictedMoney
data.WriteBit(0); // IneligibleForLoot
//if (IneligibleForLoot)
// data << uint32(0); // EncounterMask
data << uint8(0); // IsOnTournamentRealm
//if (HasRestrictedMoney)
// data << uint32(100000); // RestrictedMoney (starter accounts)
//if (HasRestrictedLevel)
// data << uint32(20); // RestrictedLevel (starter accounts)
data << uint32(sWorld.GetNextWeeklyQuestsResetTime() - WEEK); // LastWeeklyReset (not instance reset)
data << uint32(GetMap()->GetDifficulty());
GetSession()->SendPacket(&data);
GetSession()->SendPacket(&data);
SendInitialSpells();