aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-01-12 18:21:20 +0000
committerNay <dnpd.dd@gmail.com>2012-01-12 18:21:20 +0000
commitdfb8764e00e41b34fcb618da83fdb0f8162bae50 (patch)
tree433ce47673d7a42e89cae44f4f2475ce67a5994f
parent506e7913f8ece7ca2854cf9e6613af8a7d69d895 (diff)
Core/Opcodes: More opcodes by Subv
Closes #4783
-rwxr-xr-xsrc/server/game/Entities/Player/Player.cpp5
-rwxr-xr-xsrc/server/game/Server/Protocol/Opcodes.h18
2 files changed, 11 insertions, 12 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index b98b9c114fe..a14c6681c52 100755
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -3030,11 +3030,10 @@ void Player::GiveLevel(uint8 level)
sObjectMgr->GetPlayerClassLevelInfo(getClass(), level, &classInfo);
// send levelup info to client
- uint32 maxPowers = 5; // 4.x
- WorldPacket data(SMSG_LEVELUP_INFO, (4+4+maxPowers*4+MAX_STATS*4));
+ WorldPacket data(SMSG_LEVELUP_INFO, (4+4+MAX_STORED_POWERS*4+MAX_STATS*4));
data << uint32(level);
data << uint32(int32(classInfo.basehealth) - int32(GetCreateHealth()));
- // for (int i = 0; i < maxPowers; ++i) // Powers loop (0-10)
+ // for (int i = 0; i < MAX_STORED_POWERS; ++i) // Powers loop (0-10)
data << uint32(int32(classInfo.basemana) - int32(GetCreateMana()));
data << uint32(0);
data << uint32(0);
diff --git a/src/server/game/Server/Protocol/Opcodes.h b/src/server/game/Server/Protocol/Opcodes.h
index 635f2cc1694..314b21f4d5a 100755
--- a/src/server/game/Server/Protocol/Opcodes.h
+++ b/src/server/game/Server/Protocol/Opcodes.h
@@ -70,10 +70,10 @@ enum Opcodes
CMSG_AUTOSTORE_GROUND_ITEM = 0x00,
CMSG_AUTOSTORE_LOOT_ITEM = 0xD876,
CMSG_AUTO_DECLINE_GUILD_INVITES = 0x586F,
- CMSG_BANKER_ACTIVATE = 0x00,
+ CMSG_BANKER_ACTIVATE = 0x0A5A,
CMSG_BATTLEFIELD_JOIN = 0x225,
CMSG_BATTLEFIELD_LIST = 0x32A4,
- CMSG_BATTLEFIELD_REQUEST_SCORE_DATA = 0x00,
+ CMSG_BATTLEFIELD_REQUEST_SCORE_DATA = 0x85A5,
CMSG_BATTLEFIELD_STATUS = 0x00,
CMSG_BATTLEMASTER_JOIN_ARENA = 0x00,
CMSG_BEGIN_TRADE = 0x3724,
@@ -83,7 +83,7 @@ enum Opcodes
CMSG_BUSY_TRADE = 0x00,
CMSG_BUYBACK_ITEM = 0xDEE6,
CMSG_BUY_BANK_SLOT = 0x487F,
- CMSG_BUY_ITEM = 0x00,
+ CMSG_BUY_ITEM = 0x1E5A,
CMSG_CALENDAR_ADD_EVENT = 0x1CF3,
CMSG_CALENDAR_ARENA_TEAM = 0x00,
CMSG_CALENDAR_CONTEXT_EVENT_SIGNUP = 0x00,
@@ -103,14 +103,14 @@ enum Opcodes
CMSG_CANCEL_CHANNELLING = 0xC8FE,
CMSG_CANCEL_GROWTH_AURA = 0xDEF7,
CMSG_CANCEL_MOUNT_AURA = 0xD8F3,
- CMSG_CANCEL_TEMP_ENCHANTMENT = 0x00,
+ CMSG_CANCEL_TEMP_ENCHANTMENT = 0x0ACE,
CMSG_CANCEL_TRADE = 0x35A5,
CMSG_CAST_SPELL = 0x5E4E,
CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE = 0x00,
- CMSG_CHANNEL_ANNOUNCEMENTS = 0x00,
- CMSG_CHANNEL_BAN = 0x00,
+ CMSG_CHANNEL_ANNOUNCEMENTS = 0x70D1,
+ CMSG_CHANNEL_BAN = 0x2041,
CMSG_CHANNEL_DISPLAY_LIST = 0x00,
- CMSG_CHANNEL_INVITE = 0x00,
+ CMSG_CHANNEL_INVITE = 0x7451,
CMSG_CHANNEL_KICK = 0x00,
CMSG_CHANNEL_LIST = 0x00,
CMSG_CHANNEL_MODERATOR = 0x00,
@@ -606,8 +606,8 @@ enum Opcodes
SMSG_BINDZONEREPLY = 0x00,
SMSG_BREAK_TARGET = 0xE7E,
SMSG_BUY_BANK_SLOT_RESULT = 0x00,
- SMSG_BUY_FAILED = 0x00,
- SMSG_BUY_ITEM = 0x00,
+ SMSG_BUY_FAILED = 0x4A7F,
+ SMSG_BUY_ITEM = 0xCA67,
SMSG_CALENDAR_COMMAND_RESULT = 0x9A4E,
SMSG_CALENDAR_SEND_CALENDAR = 0x00,
SMSG_CALENDAR_SEND_NUM_PENDING = 0x00,