From b25945b247a40b8c588ac9987aa13a0000f03781 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sat, 22 Aug 2009 13:15:46 +0200 Subject: [PATCH] * Fix bug that creator of item was not displayed when inspecting another player * Send item enchant data and creator regardless of CONFIG_TALENTS_INSPECTING --HG-- branch : trunk --- src/game/MiscHandler.cpp | 6 +++--- src/game/Player.cpp | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index cc1732fdb6..debc1f45d7 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -1174,15 +1174,14 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data) if(!plr) // wrong player return; - uint32 talent_points = 0x3D; + uint32 talent_points = 0x47; uint32 guid_size = plr->GetPackGUID().wpos(); - WorldPacket data(SMSG_INSPECT_TALENT, guid_size+4+talent_points); + WorldPacket data(SMSG_INSPECT_TALENT, guid_size+4+talent_points+19*2); data.append(plr->GetPackGUID()); if(sWorld.getConfig(CONFIG_TALENTS_INSPECTING) || _player->isGameMaster()) { plr->BuildPlayerTalentsInfoData(&data); - plr->BuildEnchantmentsInfoData(&data); } else { @@ -1192,6 +1191,7 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data) data << uint32(0); // slotUsedMask } + plr->BuildEnchantmentsInfoData(&data); SendPacket(&data); } diff --git a/src/game/Player.cpp b/src/game/Player.cpp index d23ee9dc7a..2a069b9951 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -21559,8 +21559,9 @@ void Player::BuildEnchantmentsInfoData(WorldPacket *data) data->put(enchantmentMaskPos, enchantmentMask); - *data << uint16(0); // ? - *data << uint8(0); // PGUID! + + *data << uint16(0); // unknown + data->appendPackGUID(item->GetUInt64Value(ITEM_FIELD_CREATOR)); // item creator *data << uint32(0); // seed? }