diff --git a/src/DiIiS-NA/D3-GameServer/CommandManager/GameCommands.cs b/src/DiIiS-NA/D3-GameServer/CommandManager/GameCommands.cs index 85b4b16..c7e5afd 100644 --- a/src/DiIiS-NA/D3-GameServer/CommandManager/GameCommands.cs +++ b/src/DiIiS-NA/D3-GameServer/CommandManager/GameCommands.cs @@ -119,7 +119,6 @@ namespace DiIiS_NA.GameServer.CommandManager var monster = player.World.SpawnMonster((ActorSno)actorSNO, position); } - return $"Spawned {amount} mobs with ActorSNO: {actorSNO}"; } @@ -464,7 +463,6 @@ namespace DiIiS_NA.GameServer.CommandManager var msg = new InventoryDropItemMessage { ItemID = item.DynamicID(player) }; player.Inventory.Consume(invokerClient.InGameClient, msg); } - return $"Dropped {bpItems.Count} Items for you"; } } @@ -696,6 +694,10 @@ namespace DiIiS_NA.GameServer.CommandManager return String.Format("Message sended."); } + + return matches.Aggregate(matches.Count >= 1 ? "Actor Matches:\n" : "No match found.", + (current, match) => current + + $"[{match.SNOId.ToString("D6")}] {match.Name} ({(match.Data as DiIiS_NA.Core.MPQ.FileFormats.Actor).Type} {(((match.Data as DiIiS_NA.Core.MPQ.FileFormats.Actor).Type == ActorType.Gizmo) ? ((int)(match.Data as DiIiS_NA.Core.MPQ.FileFormats.Actor).TagMap[ActorKeys.GizmoGroup]).ToString() : "")})\n"); } [CommandGroup("lookup", @@ -817,9 +819,10 @@ namespace DiIiS_NA.GameServer.CommandManager } } - return matches.Aggregate(matches.Count >= 1 ? "Power Matches:\n" : "No match found.", - (current, match) => current + $"[{match.SNOId.ToString("D6")}] {match.Name}\n"); - } + return matches.Aggregate(matches.Count >= 1 ? "World Matches:\n" : "No match found.", + (current, match) => current + + $"[{match.SNOId.ToString("D6")}] {match.Name} - {(match.Data as World).DynamicWorld}\n"); + } [Command("world", "Allows you to search for a world.\nUsage: lookup world OR lookup world id ")] @@ -951,7 +954,7 @@ namespace DiIiS_NA.GameServer.CommandManager public string Scene(string[] @params, BattleClient invokerClient) { var matches = new List(); - + if (@params.Count() < 1) return "Invalid arguments. Type 'help lookup scene' to get help."; diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Actor.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Actor.cs index 8a85524..4d9da6b 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Actor.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Actor.cs @@ -1,4 +1,4 @@ -//Blizzless Project 2022 +//Blizzless Project 2022 using DiIiS_NA.Core.Logging; using DiIiS_NA.D3_GameServer.Core.Types.SNO; //Blizzless Project 2022