diff options
author | megamage <none@none> | 2009-03-28 16:28:36 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-28 16:28:36 -0600 |
commit | 6dff0bfd5e982398aa224737044fe5e11ba611b0 (patch) | |
tree | f58df4d936771186af25045585550675b12576b7 /src/game/QueryHandler.cpp | |
parent | 1299521d50503866cca9c41df8c5a4b20297312c (diff) |
[7560] Implement IconName for gameobject Author: NoFantasy
--HG--
branch : trunk
Diffstat (limited to 'src/game/QueryHandler.cpp')
-rw-r--r-- | src/game/QueryHandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/QueryHandler.cpp b/src/game/QueryHandler.cpp index 09d8f2f838d..b27620e7857 100644 --- a/src/game/QueryHandler.cpp +++ b/src/game/QueryHandler.cpp @@ -223,9 +223,11 @@ void WorldSession::HandleGameObjectQueryOpcode( WorldPacket & recv_data ) { std::string Name; + std::string IconName; std::string CastBarCaption; Name = info->name; + IconName = info->IconName; CastBarCaption = info->castBarCaption; int loc_idx = GetSessionDbLocaleIndex(); @@ -247,7 +249,7 @@ void WorldSession::HandleGameObjectQueryOpcode( WorldPacket & recv_data ) data << uint32(info->displayId); data << Name; data << uint8(0) << uint8(0) << uint8(0); // name2, name3, name4 - data << uint8(0); // 2.0.3, string + data << IconName; // 2.0.3, string. Icon name to use instead of default icon for go's (ex: "Attack" makes sword) data << CastBarCaption; // 2.0.3, string. Text will appear in Cast Bar when using GO (ex: "Collecting") data << uint8(0); // 2.0.3, string data.append(info->raw.data, 24); |