aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-08-22 13:15:46 +0200
committerMachiavelli <none@none>2009-08-22 13:15:46 +0200
commitb25945b247a40b8c588ac9987aa13a0000f03781 (patch)
tree20f430997a7ac46b256fd3f9a65ee23f7a6fc1fd /src
parenta009e53049da27966cb3c32e7b0a3094ea320aef (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/game/MiscHandler.cpp6
-rw-r--r--src/game/Player.cpp5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp
index cc1732fdb6a..debc1f45d70 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 d23ee9dc7a4..2a069b99517 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -21559,8 +21559,9 @@ void Player::BuildEnchantmentsInfoData(WorldPacket *data)
data->put<uint16>(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?
}