Core/PacketIO: Update opcodes and packet structures to 8.2.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/ee2e49429f4383732b4e0f39b493470b9c1dd10c)
This commit is contained in:
hondacrx
2019-10-28 14:33:43 -04:00
parent 1e2ce61e5c
commit c6e53b2ba7
34 changed files with 1792 additions and 1280 deletions
+5 -5
View File
@@ -3205,17 +3205,17 @@ namespace Game.Entities
Item item = GetItemByPos(InventorySlots.Bag0, i);
if (item != null)
{
ss.Append($"{item.GetTemplate().GetInventoryType()} {item.GetDisplayId(this)} ");
ss.Append($"{(uint)item.GetTemplate().GetInventoryType()} {item.GetDisplayId(this)} ");
SpellItemEnchantmentRecord enchant = CliDB.SpellItemEnchantmentStorage.LookupByKey(item.GetVisibleEnchantmentId(this));
if (enchant != null)
ss.Append(enchant.ItemVisual);
else
ss.Append('0');
ss.Append(' ');
ss.Append($" {(uint)CliDB.ItemStorage.LookupByKey(item.GetVisibleEntry(this)).SubclassID} ");
}
else
ss.Append("0 0 0 ");
ss.Append("0 0 0 0 ");
}
stmt.AddValue(index++, ss.ToString());
@@ -3362,10 +3362,10 @@ namespace Game.Entities
else
ss.Append('0');
ss.Append(' ');
ss.Append($" {(uint)CliDB.ItemStorage.LookupByKey(item.GetVisibleEntry(this)).SubclassID} ");
}
else
ss.Append("0 0 0 ");
ss.Append("0 0 0 0 ");
}
stmt.AddValue(index++, ss.ToString());