From c5dbf49ece25d5f81f0af8bd070b936f452fa6ba Mon Sep 17 00:00:00 2001 From: tomrus88 Date: Thu, 30 Oct 2008 00:29:40 +0300 Subject: [PATCH] Fixed MSG_LIST_STABLED_PETS --- src/game/AuctionHouse.cpp | 14 ++++++++++++++ src/game/NPCHandler.cpp | 4 +--- src/game/Opcodes.h | 6 +++--- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/game/AuctionHouse.cpp b/src/game/AuctionHouse.cpp index ad122d524..b233ce466 100644 --- a/src/game/AuctionHouse.cpp +++ b/src/game/AuctionHouse.cpp @@ -750,4 +750,18 @@ void WorldSession::HandleAuctionListPendingSales( WorldPacket & recv_data ) { sLog.outDebug("CMSG_AUCTION_LIST_PENDING_SALES"); recv_data.hexlike(); + + uint32 count = 0; + + WorldPacket data(SMSG_AUCTION_LIST_PENDING_SALES, 4); + data << uint32(count); // count + /*for(uint32 i = 0; i < count; ++i) + { + data << ""; // string + data << ""; // string + data << uint32(0); + data << uint32(0); + data << float(0); + }*/ + SendPacket(&data); } diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp index bebf2770e..db5d9eb3d 100644 --- a/src/game/NPCHandler.cpp +++ b/src/game/NPCHandler.cpp @@ -517,8 +517,7 @@ void WorldSession::SendStablePet(uint64 guid ) data << uint32(pet->GetEntry()); data << uint32(pet->getLevel()); data << pet->GetName(); // petname - data << uint32(0); // was loyalty - data << uint8(0x01); // client slot 1 == current pet (0) + data << uint8(0x01); // flags?, client slot 1 == current pet (0) ++num; } @@ -535,7 +534,6 @@ void WorldSession::SendStablePet(uint64 guid ) data << uint32(fields[3].GetUInt32()); // creature entry data << uint32(fields[4].GetUInt32()); // level data << fields[5].GetString(); // name - data << uint32(0); // was loyalty data << uint8(fields[1].GetUInt32()+1); // slot ++num; diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h index 3ec8544e7..d7f09ab90 100644 --- a/src/game/Opcodes.h +++ b/src/game/Opcodes.h @@ -1208,10 +1208,10 @@ enum Opcodes SMSG_PET_LEARNED_SPELL = 0x499, // uint16 spellid, Your pet learned spell: %s SMSG_PET_UNLEARNED_SPELL = 0x49A, // uint16 spellid, Your pet unlearned %s UMSG_UNKNOWN_1179 = 0x49B, // not found in client - CMSG_UNKNOWN_1180 = 0x49C, // lua: HearthAndResurrectFromArea + CMSG_UNKNOWN_1180 = 0x49C, // LUA: HearthAndResurrectFromArea SMSG_UNKNOWN_1181 = 0x49D, // empty - SMSG_UNKNOWN_1182 = 0x49E, // uint32 EVENT_CRITERIA_UPDATE - SMSG_UNKNOWN_1183 = 0x49F, // uint32 EVENT_ACHIEVEMENT_EARNED + SMSG_CRITERIA_REMOVE = 0x49E, // uint32, broadcasts EVENT_CRITERIA_UPDATE + SMSG_ACHIEVEMENT_REMOVE = 0x49F, // uint32, broadcasts EVENT_ACHIEVEMENT_EARNED UMSG_UNKNOWN_1184 = 0x4A0, // not found in client UMSG_UNKNOWN_1185 = 0x4A1, // not found in client UMSG_UNKNOWN_1186 = 0x4A2, // not found in client