fix: Fixes missing methods. Adds more admin gump world building (#1675)
### Summary - Fixe commands missing in helpinfo. - Adds more admin gump world building options. ### Screenshots <img src="https://github.com/modernuo/ModernUO/assets/3953314/3001aa65-4f46-4ba4-89ed-745fefdd27c3" width="50%">
This commit is contained in:
parent
cf989151f1
commit
4479555156
22 changed files with 212 additions and 201 deletions
|
|
@ -1239,6 +1239,9 @@ namespace Server.Engines.ConPVP
|
|||
CommandSystem.Register("vli", AccessLevel.GameMaster, vli_oc);
|
||||
}
|
||||
|
||||
[Usage("vli")]
|
||||
[Aliases("ViewLadderInfo")]
|
||||
[Description("View ladder information.")]
|
||||
private static void vli_oc(CommandEventArgs e)
|
||||
{
|
||||
e.Mobile.BeginTarget(-1, false, TargetFlags.None, vli_ot);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ namespace Server.Engines.Doom
|
|||
CommandSystem.Register("RemGauntlet", AccessLevel.Developer, RemoveGauntlet);
|
||||
}
|
||||
|
||||
[Usage("RemGauntlet")]
|
||||
[Description("Removes the Gauntlet from Dungeon Doom.")]
|
||||
public static void RemoveGauntlet(CommandEventArgs e)
|
||||
{
|
||||
RemoveMobile<PricedHealer>(387, 400);
|
||||
|
|
@ -45,6 +47,8 @@ namespace Server.Engines.Doom
|
|||
RemoveItem<ConfirmationMoongate>(433, 326, 4);
|
||||
}
|
||||
|
||||
[Usage("GenGauntlet")]
|
||||
[Description("Generates the Gauntlet in Dungeon Doom.")]
|
||||
public static void GenGauntlet_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
RemoveGauntlet(e);
|
||||
|
|
|
|||
|
|
@ -192,10 +192,11 @@ public partial class LeverPuzzleController : Item
|
|||
|
||||
public static void Configure()
|
||||
{
|
||||
CommandSystem.Register("GenLeverPuzzle", AccessLevel.Administrator, GenLampPuzzle_OnCommand);
|
||||
CommandSystem.Register("GenLeverPuzzle", AccessLevel.Developer, GenLampPuzzle_OnCommand);
|
||||
}
|
||||
|
||||
[Usage("GenLeverPuzzle"), Description("Generates lamp room and lever puzzle in doom.")]
|
||||
[Usage("GenLeverPuzzle")]
|
||||
[Description("Generates lamp room and lever puzzle in doom.")]
|
||||
public static void GenLampPuzzle_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
foreach (var item in Map.Malas.GetItemsAt(lp_Center))
|
||||
|
|
|
|||
|
|
@ -657,6 +657,8 @@ namespace Server.Factions
|
|||
Timer.DelayCall(TimeSpan.FromSeconds(30.0), TimeSpan.FromSeconds(30.0), ProcessTick);
|
||||
}
|
||||
|
||||
[Usage("FactionTownReset")]
|
||||
[Description("Resets all faction town data in the world.")]
|
||||
public static void FactionTownReset_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
var monoliths = BaseMonolith.Monoliths;
|
||||
|
|
@ -715,6 +717,8 @@ namespace Server.Factions
|
|||
}
|
||||
}
|
||||
|
||||
[Usage("FactionReset")]
|
||||
[Description("Resets all faction data in the world.")]
|
||||
public static void FactionReset_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
var monoliths = BaseMonolith.Monoliths;
|
||||
|
|
@ -787,6 +791,8 @@ namespace Server.Factions
|
|||
}
|
||||
}
|
||||
|
||||
[Usage("FactionItemReset")]
|
||||
[Description("Resets all faction items in the world.")]
|
||||
public static void FactionItemReset_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
var items = new List<Item>();
|
||||
|
|
@ -869,6 +875,8 @@ namespace Server.Factions
|
|||
}
|
||||
}
|
||||
|
||||
[Usage("FactionElection")]
|
||||
[Description("Opens the election properties for the targeted faction stone.")]
|
||||
public static void FactionElection_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
e.Mobile.SendMessage("Target a faction stone to open its election properties.");
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ namespace Server.Factions
|
|||
CommandSystem.Register("GenerateFactions", AccessLevel.Developer, GenerateFactions_OnCommand);
|
||||
}
|
||||
|
||||
[Usage("GenerateFactions")]
|
||||
[Aliases("FactionGen", "GenFactions")]
|
||||
[Description("Enables and generates factions.")]
|
||||
public static void GenerateFactions_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
var from = e.Mobile;
|
||||
|
|
|
|||
|
|
@ -544,6 +544,8 @@ namespace Server.Factions
|
|||
return null;
|
||||
}
|
||||
|
||||
[Usage("GrantTownSilver <amount>")]
|
||||
[Description("Grants silver to the town of the current region.")]
|
||||
public static void GrantTownSilver_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
var town = FromRegion(e.Mobile.Region);
|
||||
|
|
|
|||
|
|
@ -113,6 +113,8 @@ namespace Server.Commands
|
|||
m_Count++;
|
||||
}
|
||||
|
||||
[Usage("GenKhaldun")]
|
||||
[Description("Generates Khaldun Puzzles")]
|
||||
public static void GenKhaldun_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
m_Count = 0;
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ namespace Server.Engines.PartySystem
|
|||
CommandSystem.Register("ListenToParty", AccessLevel.GameMaster, ListenToParty_OnCommand);
|
||||
}
|
||||
|
||||
[Usage("ListenToParty")]
|
||||
[Description("Listen to the targeted player's party chat.")]
|
||||
public static void ListenToParty_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
e.Mobile.BeginTarget(-1, false, TargetFlags.None, ListenToParty_OnTarget);
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ namespace Server
|
|||
CommandSystem.Register("Path", AccessLevel.GameMaster, Path_OnCommand);
|
||||
}
|
||||
|
||||
[Usage("Path")]
|
||||
[Description("Draws a path from your current location to a targeted location.")]
|
||||
public static void Path_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
e.Mobile.BeginTarget(-1, true, TargetFlags.None, Path_OnTarget);
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ namespace Server.Engines.Spawners
|
|||
CommandSystem.Register("ConvertPremiumSpawners", AccessLevel.Developer, ConvertPremiumSpawners_OnCommand);
|
||||
}
|
||||
|
||||
[Usage("ConvertPremiumSpawners <relative search pattern to distribution> <output directory relative to distribution>")]
|
||||
[Description("Converts Nerun's Premium Spawners to JSON.")]
|
||||
private static void ConvertPremiumSpawners_OnCommand(CommandEventArgs args)
|
||||
{
|
||||
var from = args.Mobile;
|
||||
|
|
|
|||
|
|
@ -1,18 +1,3 @@
|
|||
/*************************************************************************
|
||||
* ModernUO *
|
||||
* Copyright 2019-2023 - ModernUO Development Team *
|
||||
* Email: hi@modernuo.com *
|
||||
* File: GenerateSpawnersCommand.cs *
|
||||
* *
|
||||
* This program is free software: you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation, either version 3 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
*************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
|
@ -37,6 +22,9 @@ namespace Server.Engines.Spawners
|
|||
CommandSystem.Register("GenerateSpawners", AccessLevel.Developer, GenerateSpawners_OnCommand);
|
||||
}
|
||||
|
||||
[Usage("GenerateSpawners <relative search pattern to distribution>")]
|
||||
[Aliases("ImportSpawners", "GenSpawners", "GenSpawns")]
|
||||
[Description("Generates spawners from JSON files. Supports basic globbing.")]
|
||||
private static void GenerateSpawners_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
var from = e.Mobile;
|
||||
|
|
|
|||
|
|
@ -34,9 +34,12 @@ public class SpawnerControllerGump : GumpGrid
|
|||
|
||||
public static void Configure()
|
||||
{
|
||||
CommandSystem.Register("Spawn", AccessLevel.GameMaster, OpenSpawnGump_OnCommand);
|
||||
CommandSystem.Register("SpawnAdmin", AccessLevel.GameMaster, OpenSpawnGump_OnCommand);
|
||||
}
|
||||
|
||||
[Usage("Spawn")]
|
||||
[Aliases("Spawn")]
|
||||
[Description("Opens the spawn administration gump.")]
|
||||
public static void OpenSpawnGump_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
e.Mobile.SendGump(new SpawnerControllerGump(e.Mobile));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue