diff --git a/Projects/UOContent/Gumps/AdminGump.cs b/Projects/UOContent/Gumps/AdminGump.cs index 0b5d562cf..9f8d5bceb 100644 --- a/Projects/UOContent/Gumps/AdminGump.cs +++ b/Projects/UOContent/Gumps/AdminGump.cs @@ -278,6 +278,7 @@ public AdminGump( AddButtonLabeled(220, 300, GetButtonID(3, 112), "Doom"); AddButtonLabeled(20, 325, GetButtonID(3, 113), "Khaldun Puzzles"); + AddButtonLabeled(220, 325, GetButtonID(3, 114), "Do everything"); goto case AdminGumpPage.Administer; } @@ -2102,6 +2103,83 @@ public override void OnResponse(NetState sender, in RelayInfo info) notice = "Khaldun puzzles have been generated."; break; } + + case 114: + { + // 101 + InvokeCommand("TelGen"); + + // 102 + InvokeCommand("MoonGen"); + + // 103 + InvokeCommand("DoorGen"); + + // 104 + var folder = Core.SA ? "post-uoml" : "uoml"; + + var availableMaps = ExpansionInfo.CoreExpansion.MapSelectionFlags; + if (Core.SA && availableMaps.Includes(MapSelectionFlags.TerMur)) + { + InvokeCommand($"GenerateSpawners Data/Spawns/post-uoml/termur/*.json"); + } + + if (availableMaps.Includes(MapSelectionFlags.Malas)) + { + InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/malas/*.json"); + } + + if (availableMaps.Includes(MapSelectionFlags.Tokuno)) + { + InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/tokuno/*.json"); + } + + if (availableMaps.Includes(MapSelectionFlags.Ilshenar)) + { + InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/ilshenar/*.json"); + } + + if (availableMaps.Includes(MapSelectionFlags.Trammel)) + { + InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/trammel/*.json"); + } + + if (availableMaps.Includes(MapSelectionFlags.Felucca)) + { + InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/felucca/*.json"); + } + + // 105 + InvokeCommand("SignGen"); + + // 106 + InvokeCommand("Decorate"); + + // 107 + InvokeCommand("GenChamps"); + + // 108 + InvokeCommand("DecorateMag"); + + // 109 + InvokeCommand("GenStealArties"); + + // 110 + InvokeCommand("SHTelGen"); + + // 111 + InvokeCommand("SecretLocGen"); + + // 112 + InvokeCommand("GenLeverPuzzle"); + InvokeCommand("GenGauntlet"); + + // 113 + InvokeCommand("GenKhaldun"); + + notice = "All the above options have been generated at once."; + break; + } case 200: {