mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Updated rest of game stuff
This commit is contained in:
parent
c2f65a01c1
commit
df09909ec5
10 changed files with 115 additions and 61 deletions
|
|
@ -591,7 +591,7 @@ void WorldSession::HandleGetMail(WorldPacket & recv_data )
|
|||
data << (uint32) (*itr)->mailTemplateId; // mail template (MailTemplate.dbc)
|
||||
data << (*itr)->subject; // Subject string - once 00, when mail type = 3
|
||||
|
||||
data << (uint8) item_count;
|
||||
data << (uint8) item_count; // client limit is 0x10
|
||||
|
||||
for(uint8 i = 0; i < item_count; ++i)
|
||||
{
|
||||
|
|
@ -602,7 +602,7 @@ void WorldSession::HandleGetMail(WorldPacket & recv_data )
|
|||
data << (uint32) (item ? item->GetGUIDLow() : 0);
|
||||
// entry
|
||||
data << (uint32) (item ? item->GetEntry() : 0);
|
||||
for(uint8 j = 0; j < 6; ++j)
|
||||
for(uint8 j = 0; j < 7; ++j)
|
||||
{
|
||||
// unsure
|
||||
data << (uint32) (item ? item->GetEnchantmentCharges((EnchantmentSlot)j) : 0);
|
||||
|
|
@ -616,13 +616,15 @@ void WorldSession::HandleGetMail(WorldPacket & recv_data )
|
|||
// unk
|
||||
data << (uint32) (item ? item->GetItemSuffixFactor() : 0);
|
||||
// stack count
|
||||
data << (uint8) (item ? item->GetCount() : 0);
|
||||
data << (uint32) (item ? item->GetCount() : 0);
|
||||
// charges
|
||||
data << (uint32) (item ? item->GetSpellCharges() : 0);
|
||||
// durability
|
||||
data << (uint32) (item ? item->GetUInt32Value(ITEM_FIELD_MAXDURABILITY) : 0);
|
||||
// durability
|
||||
data << (uint32) (item ? item->GetUInt32Value(ITEM_FIELD_DURABILITY) : 0);
|
||||
// unknown wotlk
|
||||
data << (uint8) 0;
|
||||
}
|
||||
|
||||
mails_count += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue