mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[8382] Implement ByteArray functions for skip read of fields not needed for server in received packets.
* Use this fucntions in some case. * Change some packets to form: read fields first check later for better control recieved packets structure. * Fix CMSG_STAND_STATE_CHANGE packet structure to more correct.
This commit is contained in:
parent
74d27294aa
commit
2b534cbc23
9 changed files with 77 additions and 41 deletions
|
|
@ -608,8 +608,6 @@ void WorldSession::HandleGuildRankOpcode(WorldPacket& recvPacket)
|
|||
std::string rankname;
|
||||
uint32 rankId;
|
||||
uint32 rights, MoneyPerDay;
|
||||
uint32 BankRights;
|
||||
uint32 BankSlotPerDay;
|
||||
|
||||
//sLog.outDebug("WORLD: Received CMSG_GUILD_RANK");
|
||||
|
||||
|
|
@ -633,10 +631,14 @@ void WorldSession::HandleGuildRankOpcode(WorldPacket& recvPacket)
|
|||
|
||||
for (int i = 0; i < GUILD_BANK_MAX_TABS; ++i)
|
||||
{
|
||||
uint32 BankRights;
|
||||
uint32 BankSlotPerDay;
|
||||
|
||||
recvPacket >> BankRights;
|
||||
recvPacket >> BankSlotPerDay;
|
||||
guild->SetBankRightsAndSlots(rankId, uint8(i), uint16(BankRights & 0xFF), uint16(BankSlotPerDay), true);
|
||||
}
|
||||
|
||||
sLog.outDebug("WORLD: Changed RankName to %s , Rights to 0x%.4X", rankname.c_str(), rights);
|
||||
|
||||
guild->SetBankMoneyPerDay(rankId, MoneyPerDay);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue