[10125] Add pool/event ids to diff creature/gameobject list output commands.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
schmoozerd 2010-06-30 20:40:33 +04:00 committed by VladimirMangos
parent ef1358c901
commit 9379e3b81d
10 changed files with 83 additions and 16 deletions

View file

@ -2530,9 +2530,9 @@ bool ChatHandler::HandleListObjectCommand(const char* args)
int mapid = fields[4].GetUInt16();
if (m_session)
PSendSysMessage(LANG_GO_LIST_CHAT, guid, guid, gInfo->name, x, y, z, mapid);
PSendSysMessage(LANG_GO_LIST_CHAT, guid, PrepareStringNpcOrGoSpawnInformation<GameObject>(guid).c_str(), guid, gInfo->name, x, y, z, mapid);
else
PSendSysMessage(LANG_GO_LIST_CONSOLE, guid, gInfo->name, x, y, z, mapid);
PSendSysMessage(LANG_GO_LIST_CONSOLE, guid, PrepareStringNpcOrGoSpawnInformation<GameObject>(guid).c_str(), gInfo->name, x, y, z, mapid);
} while (result->NextRow());
delete result;
@ -2605,10 +2605,10 @@ bool ChatHandler::HandleListCreatureCommand(const char* args)
float z = fields[3].GetFloat();
int mapid = fields[4].GetUInt16();
if (m_session)
PSendSysMessage(LANG_CREATURE_LIST_CHAT, guid, guid, cInfo->Name, x, y, z, mapid);
if (m_session)
PSendSysMessage(LANG_CREATURE_LIST_CHAT, guid, PrepareStringNpcOrGoSpawnInformation<Creature>(guid).c_str(), guid, cInfo->Name, x, y, z, mapid);
else
PSendSysMessage(LANG_CREATURE_LIST_CONSOLE, guid, cInfo->Name, x, y, z, mapid);
PSendSysMessage(LANG_CREATURE_LIST_CONSOLE, guid, PrepareStringNpcOrGoSpawnInformation<Creature>(guid).c_str(), cInfo->Name, x, y, z, mapid);
} while (result->NextRow());
delete result;