47 lines
1.8 KiB
C#
47 lines
1.8 KiB
C#
using System;
|
|
using Server.Commands;
|
|
using Server.Items;
|
|
|
|
namespace Server
|
|
{
|
|
public static class StygianAbyss
|
|
{
|
|
public static void Initialize()
|
|
{
|
|
CommandSystem.Register("DecorateSA", AccessLevel.Administrator, new CommandEventHandler(DecorateSA_OnCommand));
|
|
CommandSystem.Register("DecorateSADelete", AccessLevel.Administrator, new CommandEventHandler(DecorateSADelete_OnCommand));
|
|
}
|
|
[Usage("DecorateSADelete")]
|
|
[Description("Deletes Stygian Abyss world decoration.")]
|
|
private static void DecorateSADelete_OnCommand(CommandEventArgs e)
|
|
{
|
|
WeakEntityCollection.Delete("sa");
|
|
|
|
Server.Engines.ExploringTheDeep.GenerateExploringTheDeep.Delete(e);
|
|
|
|
SpawnerPersistence.RemoveSpawnsFromXmlFile("Spawns", "GravewaterLake");
|
|
}
|
|
|
|
[Usage("DecorateSA")]
|
|
[Description("Generates Stygian Abyss world decoration.")]
|
|
private static void DecorateSA_OnCommand(CommandEventArgs e)
|
|
{
|
|
e.Mobile.SendMessage("Generating Stygian Abyss world decoration, please wait.");
|
|
|
|
Decorate.Generate("sa", "Data/Decoration/Stygian Abyss/Ter Mur", Map.TerMur);
|
|
Decorate.Generate("sa", "Data/Decoration/Stygian Abyss/Trammel", Map.Trammel);
|
|
Decorate.Generate("sa", "Data/Decoration/Stygian Abyss/Felucca", Map.Felucca);
|
|
|
|
NavreysController.GenNavery(e.Mobile);
|
|
CommandSystem.Handle(e.Mobile, Server.Commands.CommandSystem.Prefix + "GenToK");
|
|
CommandSystem.Handle(e.Mobile, Server.Commands.CommandSystem.Prefix + "GenSutek");
|
|
|
|
GenerateUnderworldRooms.Generate();
|
|
|
|
Server.Engines.ResortAndCasino.FireCasinoGenerator.Generate(e);
|
|
Server.Engines.ExploringTheDeep.GenerateExploringTheDeep.Generate(e);
|
|
|
|
e.Mobile.SendMessage("Stygian Abyss world generation complete.");
|
|
}
|
|
}
|
|
} |