mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
* Add lootid output to .gobj info command
* Patch by Visagalis --HG-- branch : trunk
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user