Scripts/Commands: add AI/ScriptName to .gobject info.

Port From (https://github.com/TrinityCore/TrinityCore/commit/493be0c888717ea963e078364abca5cead7eae10)
This commit is contained in:
hondacrx
2021-06-23 23:40:15 -04:00
parent 545dcd4f7a
commit 61e9d9f964
3 changed files with 4 additions and 2 deletions
@@ -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);