mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
* Add lootid output to .gobj info command
* Patch by Visagalis --HG-- branch : trunk
This commit is contained in:
@@ -15391,6 +15391,7 @@ INSERT INTO `trinity_string` (`entry`,`content_default`,`content_loc1`,`content_
|
||||
(5025, 'Type: %u', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
|
||||
(5026, 'DisplayID: %u', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
|
||||
(5027, 'Name: %s', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
|
||||
(5028, 'Lootid: %u', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
|
||||
(6604, 'You cannot say, yell or emote until you become level %d.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
|
||||
(6605, 'You cannot whisper until you become level %d.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
|
||||
(6606, 'You cannot write to channels until you become level %d.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
|
||||
|
||||
3
sql/updates/9008_world_trinity_string.sql
Normal file
3
sql/updates/9008_world_trinity_string.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
DELETE FROM `trinity_string` WHERE (`entry`='5028');
|
||||
INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES ('5028', 'Lootid: %u');
|
||||
@@ -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