mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 16:37:03 +00:00
[12770] Implemented SMSG_WORLD_SERVER_INFO
This commit is contained in:
parent
2ea4d93b73
commit
5b69c5ba98
4 changed files with 20 additions and 5 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue