From f34bd31e4b5b9e6336e889f144925c19c9633c23 Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Tue, 18 Feb 2020 21:23:47 +0000 Subject: [PATCH] [12718m] Updated structure SMSG_SET_PROFICIENCY and opcodes, Thanks ProjectSkyfire --- src/game/Object/Player.cpp | 4 ++-- src/game/Server/Opcodes.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index ecac51d70..97b3cd206 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -19958,8 +19958,8 @@ template float Player::ApplySpellMod(uint32 spellId, SpellModOp op, float // send Proficiency void Player::SendProficiency(ItemClass itemClass, uint32 itemSubclassMask) { - WorldPacket data(SMSG_SET_PROFICIENCY, 1 + 4); - data << uint8(itemClass) << uint32(itemSubclassMask); + WorldPacket data(SMSG_SET_PROFICIENCY, 4 + 1); + data << uint32(itemSubclassMask) << uint8(itemClass) ; GetSession()->SendPacket(&data); } diff --git a/src/game/Server/Opcodes.h b/src/game/Server/Opcodes.h index 8f976864b..35b299305 100644 --- a/src/game/Server/Opcodes.h +++ b/src/game/Server/Opcodes.h @@ -285,7 +285,7 @@ enum Opcodes MSG_MOVE_TOGGLE_COLLISION_CHEAT = 0x10DA, CMSG_MOVE_SET_FACING = 0x7914, // 4.3.4 15595 CMSG_MOVE_SET_PITCH = 0x7312, // 4.3.4 15595 - MSG_MOVE_WORLDPORT_ACK = 0x2411, // 4.3.4 15595 + MSG_MOVE_WORLDPORT_ACK = 0x00e0, // 5.4.1 17538 SMSG_MONSTER_MOVE = 0x6E17, // 4.3.4 15595 SMSG_MOVE_WATER_WALK = 0x75B1, // 4.3.4 15595 SMSG_MOVE_LAND_WALK = 0x34B7, // 4.3.4 15595 @@ -349,7 +349,7 @@ enum Opcodes CMSG_IGNORE_TRADE = 0x7112, // 4.3.4 15595 CMSG_ACCEPT_TRADE = 0x7110, // 4.3.4 15595 CMSG_UNACCEPT_TRADE = 0x391A, // 4.3.4 15595 - CMSG_CANCEL_TRADE = 0x731E, // 4.3.4 15595 + CMSG_CANCEL_TRADE = 0x12CC, // 5.4.1 17538 CMSG_SET_TRADE_ITEM = 0x7B0C, // 4.3.4 15595 CMSG_CLEAR_TRADE_ITEM = 0x7018, // 4.3.4 15595 CMSG_SET_TRADE_GOLD = 0x3008, // 4.3.4 15595