Scripts/Commands: add AI/ScriptName to .gobject info.
Port From (https://github.com/TrinityCore/TrinityCore/commit/493be0c888717ea963e078364abca5cead7eae10)
This commit is contained in:
@@ -220,6 +220,8 @@ namespace Game.Chat
|
||||
if (addon != null)
|
||||
handler.SendSysMessage(CypherStrings.GoinfoAddon, addon.faction, addon.flags);
|
||||
|
||||
handler.SendSysMessage(CypherStrings.ObjectInfoAIInfo, gameObjectInfo.AIName, Global.ObjectMgr.GetScriptName(gameObjectInfo.ScriptId));
|
||||
|
||||
GameObjectDisplayInfoRecord modelInfo = CliDB.GameObjectDisplayInfoStorage.LookupByKey(displayId);
|
||||
if (modelInfo != null)
|
||||
handler.SendSysMessage(CypherStrings.GoinfoModel, modelInfo.GeoBoxMax.X, modelInfo.GeoBoxMax.Y, modelInfo.GeoBoxMax.Z, modelInfo.GeoBoxMin.X, modelInfo.GeoBoxMin.Y, modelInfo.GeoBoxMin.Z);
|
||||
|
||||
Reference in New Issue
Block a user