Updated to 8.2.0.31429 (scripts disabled atm, they still need updated)

Code Port from TrinityCore https://github.com/TrinityCore/TrinityCore
Casc from WoW-Tools https://github.com/WoW-Tools/CASCExplorer
This commit is contained in:
hondacrx
2019-08-14 11:20:42 -04:00
parent e4d500f4b5
commit 125e3b3ac7
232 changed files with 12268 additions and 14670 deletions
+10 -10
View File
@@ -42,7 +42,7 @@ namespace Game.Network.Packets
public override void Write()
{
_worldPacket.WriteUInt32(Mails.Count);
_worldPacket.WriteInt32(Mails.Count);
_worldPacket.WriteInt32(TotalNumRecords);
Mails.ForEach(p => p.Write(_worldPacket));
@@ -317,8 +317,8 @@ namespace Game.Network.Packets
Item = new ItemInstance(item);
Count = item.GetCount();
Charges = item.GetSpellCharges();
MaxDurability = item.GetUInt32Value(ItemFields.MaxDurability);
Durability = item.GetUInt32Value(ItemFields.Durability);
MaxDurability = item.m_itemData.MaxDurability;
Durability = item.m_itemData.Durability;
Unlocked = !item.IsLocked();
for (EnchantmentSlot slot = 0; slot < EnchantmentSlot.MaxInspected; slot++)
@@ -330,7 +330,7 @@ namespace Game.Network.Packets
}
byte i = 0;
foreach (ItemDynamicFieldGems gemData in item.GetGems())
foreach (SocketedGem gemData in item.m_itemData.Gems)
{
if (gemData.ItemId != 0)
{
@@ -346,11 +346,11 @@ namespace Game.Network.Packets
public void Write(WorldPacket data)
{
data.WriteUInt8(Position);
data.WriteUInt32(AttachID);
data.WriteInt32(Count);
data.WriteInt32(AttachID);
data.WriteUInt32(Count);
data.WriteInt32(Charges);
data.WriteInt32(MaxDurability);
data.WriteInt32(Durability);
data.WriteUInt32(MaxDurability);
data.WriteUInt32(Durability);
Item.Write(data);
data.WriteBits(Enchants.Count, 4);
data.WriteBits(Gems.Count, 2);
@@ -423,7 +423,7 @@ namespace Game.Network.Packets
data.WriteInt32(Flags);
data.WriteFloat(DaysLeft);
data.WriteInt32(MailTemplateID);
data.WriteUInt32(Attachments.Count);
data.WriteInt32(Attachments.Count);
data.WriteBit(SenderCharacter.HasValue);
data.WriteBit(AltSenderID.HasValue);
@@ -437,7 +437,7 @@ namespace Game.Network.Packets
data.WritePackedGuid(SenderCharacter.Value);
if (AltSenderID.HasValue)
data.WriteInt32(AltSenderID.Value);
data.WriteUInt32(AltSenderID.Value);
data.WriteString(Subject);
data.WriteString(Body);