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
+1 -1
View File
@@ -1034,7 +1034,7 @@ namespace Framework.Constants
GoinfoLootid = 5028,
CommandLookupMaxResults = 5029,
Unauthorized = 5030,
NpcinfoAiinfo = 5031,
ObjectInfoAIInfo = 5031,
CommandNoBattlegroundFound = 5032,
CommandNoAchievementCriteriaFound = 5033,
CommandNoOutdoorPvpForund = 5034,
@@ -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);
+1 -1
View File
@@ -178,7 +178,7 @@ namespace Game.Chat
handler.SendSysMessage(CypherStrings.NpcinfoArmor, target.GetArmor());
handler.SendSysMessage(CypherStrings.NpcinfoPosition, target.GetPositionX(), target.GetPositionY(), target.GetPositionZ());
handler.SendSysMessage(CypherStrings.NpcinfoAiinfo, target.GetAIName(), target.GetScriptName());
handler.SendSysMessage(CypherStrings.ObjectInfoAIInfo, target.GetAIName(), target.GetScriptName());
handler.SendSysMessage(CypherStrings.NpcinfoFlagsExtra, cInfo.FlagsExtra);
foreach (uint value in Enum.GetValues(typeof(CreatureFlagsExtra)))
if (cInfo.FlagsExtra.HasAnyFlag((CreatureFlagsExtra)value))