Core/PacketIO: Implemented SMSG_WORLD_SERVER_INFO
This commit is contained in:
1 parent
8cebb530f9
commit
ab1fa7b3ad
3 files changed
+19
-3
No files matched your search
@@ -23041,6 +23041,24 @@ void Player::SendInitialPacketsBeforeAddToMap()
|
||||
|
||||
SendTalentsInfoData(false);
|
||||
|
||||
data.Initialize(SMSG_WORLD_SERVER_INFO, 1 + 1 + 4 + 4);
|
||||
data.WriteBit(0); // HasRestrictedLevel
|
||||
data.WriteBit(0); // HasRestrictedMoney
|
||||
data.WriteBit(0); // IneligibleForLoot
|
||||
data.FlushBits();
|
||||
//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);
|
||||
|
||||
SendInitialSpells();
|
||||
|
||||
data.Initialize(SMSG_SEND_UNLEARN_SPELLS, 4);
|
||||
|
||||
Reference in new issue
Block a user