* Add lootid output to .gobj info command

* Patch by Visagalis

--HG--
branch : trunk
This commit is contained in:
Brian
2010-07-24 07:30:02 -06:00
parent 8c76ea2f7c
commit 040f9fd083
4 changed files with 11 additions and 0 deletions

View File

@@ -2130,6 +2130,7 @@ bool ChatHandler::HandleGOInfoCommand(const char* args)
uint32 type = 0;
uint32 displayid = 0;
std::string name;
uint32 lootId = 0;
if (!*args)
{
@@ -2147,9 +2148,14 @@ bool ChatHandler::HandleGOInfoCommand(const char* args)
type = goinfo->type;
displayid = goinfo->displayId;
name = goinfo->name;
if (type == GAMEOBJECT_TYPE_CHEST)
lootId = goinfo->chest.lootId;
else if (type == GAMEOBJECT_TYPE_FISHINGHOLE)
lootId = goinfo->fishinghole.lootId;
PSendSysMessage(LANG_GOINFO_ENTRY, entry);
PSendSysMessage(LANG_GOINFO_TYPE, type);
PSendSysMessage(LANG_GOINFO_LOOTID, lootId);
PSendSysMessage(LANG_GOINFO_DISPLAYID, displayid);
PSendSysMessage(LANG_GOINFO_NAME, name.c_str());

View File

@@ -899,6 +899,7 @@ enum TrinityStrings
LANG_GOINFO_TYPE = 5025,
LANG_GOINFO_DISPLAYID = 5026,
LANG_GOINFO_NAME = 5027,
LANG_GOINFO_LOOTID = 5028,
// Room for more Trinity strings 5028-9999
// Level requirement notifications