#W# More spawn work.

This commit is contained in:
WarrentyExpired 2026-08-13 18:47:49 -04:00
parent f1b737eb0f
commit 86effd1089
8 changed files with 128 additions and 18 deletions

View file

@ -34,19 +34,16 @@ namespace Server.Scripts.Commands
m.SendGump(new BuildWorldGump());
}
// ==============================================================================
// --- MODULAR GENERATION METHODS ---
// ==============================================================================
public static void DoWipe( Mobile m )
{
m.SendMessage( 38, "Removing Premium Spawners and wild mobs... This may take a moment." );
m.SendMessage( 38, "Removing ALL Spawners and wild mobs... This may take a moment." );
Console.WriteLine( "Removing Spawners..." );
ArrayList targets = new ArrayList();
foreach ( Item item in World.Items.Values )
{
if ( item is PremiumSpawner )
// Widened net: Catches Premium, Standard, and Proxy Base spawners
if ( item is PremiumSpawner || item is Spawner || item is BaseSpawner )
{
targets.Add( item );
}
@ -77,7 +74,7 @@ namespace Server.Scripts.Commands
mob.Delete();
}
m.SendMessage( 63, "Wipe Complete: Premium Spawners and wild mobs deleted!" );
m.SendMessage( 63, "Wipe Complete: All Spawners and wild mobs deleted!" );
}
public static void DoDecorate( Mobile m )
@ -95,19 +92,28 @@ namespace Server.Scripts.Commands
public static void DoSpawns( Mobile m )
{
m.SendMessage( 38, "Parsing map files and generating spawners..." );
Console.WriteLine( "Spawning Overworld...");
Server.SpawnGenerator.Parse( m, "overworld.map" );
Console.WriteLine( "Spawning Town Animals...");
Server.SpawnGenerator.Parse( m, "townanimals.map" );
Console.WriteLine( "Spawning Camps..." );
Server.SpawnGenerator.Parse( m, "camps.map" );
Console.WriteLine( "Spawning NPC's..." );
Server.SpawnGenerator.Parse( m, "npcs.map" );
Console.WriteLine( "Spawning Dungeons..." );
Server.SpawnGenerator.Parse( m, "dungeons.map" );
Console.WriteLine( "Spawning Dungeon Chests..." );
Server.SpawnGenerator.Parse( m, "chests.map" );
Console.WriteLine( "Spawining Dungeon Floor Traps..." );
Server.SpawnGenerator.Parse( m, "traps.map" );
m.SendMessage( 63, "Map parsing complete and world populated!" );
}
}
@ -189,6 +195,7 @@ namespace Server.Scripts.Commands
break;
case 4: // Spawns Only
BuildWorld.DoWipe( m );
BuildWorld.DoSpawns( m );
m.SendGump(new BuildWorldGump());
break;