484 lines
17 KiB
C#
484 lines
17 KiB
C#
using Server;
|
|
using System;
|
|
using Server.Commands;
|
|
using Server.Mobiles;
|
|
using Server.Engines.Quests;
|
|
|
|
namespace Server.Items
|
|
{
|
|
public static class GenerateHighSeas
|
|
{
|
|
public static void Initialize()
|
|
{
|
|
if (Core.HS)
|
|
{
|
|
CommandSystem.Register("DecorateHS", AccessLevel.Administrator, GenerateDeco);
|
|
CommandSystem.Register("DeleteHS", AccessLevel.Administrator, DeleteHS);
|
|
|
|
CommandSystem.Register("CharydbisSpawner", AccessLevel.Administrator, Spawner);
|
|
}
|
|
}
|
|
|
|
public static void Spawner(CommandEventArgs e)
|
|
{
|
|
if (CharydbisSpawner.SpawnInstance == null)
|
|
e.Mobile.SendMessage("Charydbis spawner does not exist.");
|
|
else
|
|
e.Mobile.SendGump(new Server.Gumps.PropertiesGump(e.Mobile, CharydbisSpawner.SpawnInstance));
|
|
}
|
|
|
|
public static void DeleteHS(CommandEventArgs e)
|
|
{
|
|
WeakEntityCollection.Delete("highseas");
|
|
|
|
if (CharydbisSpawner.SpawnInstance != null)
|
|
CharydbisSpawner.SpawnInstance.Active = false;
|
|
|
|
if (BountyQuestSpawner.Instance != null)
|
|
BountyQuestSpawner.Instance.Active = false;
|
|
}
|
|
|
|
public static void GenerateDeco(CommandEventArgs e)
|
|
{
|
|
string name = "highseas";
|
|
|
|
CharydbisSpawner.GenerateCharydbisSpawner();
|
|
BountyQuestSpawner.GenerateShipSpawner();
|
|
|
|
CorgulAltar altar;
|
|
|
|
altar = new CorgulAltar();
|
|
altar.MoveToWorld(new Point3D(2453, 865, 0), Map.Felucca);
|
|
WeakEntityCollection.Add(name, altar);
|
|
|
|
altar = new CorgulAltar();
|
|
altar.MoveToWorld(new Point3D(2453, 865, 0), Map.Trammel);
|
|
WeakEntityCollection.Add(name, altar);
|
|
|
|
ProfessionalBountyBoard board;
|
|
|
|
board = new ProfessionalBountyBoard();
|
|
board.MoveToWorld(new Point3D(4544, 2298, -1), Map.Trammel);
|
|
WeakEntityCollection.Add(name, board);
|
|
|
|
board = new ProfessionalBountyBoard();
|
|
board.MoveToWorld(new Point3D(4544, 2298, -1), Map.Felucca);
|
|
WeakEntityCollection.Add(name, board);
|
|
|
|
LocalizedSign sign;
|
|
|
|
sign = new LocalizedSign(3025, 1152653); //The port of Zento Parking Area
|
|
sign.MoveToWorld(new Point3D(713, 1359, 53), Map.Tokuno);
|
|
WeakEntityCollection.Add(name, sign);
|
|
|
|
sign = new LocalizedSign(3023, 1149821); //Winds Tavern
|
|
sign.MoveToWorld(new Point3D(4548, 2300, -6), Map.Trammel);
|
|
WeakEntityCollection.Add(name, sign);
|
|
|
|
sign = new LocalizedSign(3023, 1149821); //Winds Tavern
|
|
sign.MoveToWorld(new Point3D(4548, 2300, -6), Map.Felucca);
|
|
WeakEntityCollection.Add(name, sign);
|
|
|
|
sign = new LocalizedSign(3023, 1149820); //General Store
|
|
sign.MoveToWorld(new Point3D(4543, 2317, -3), Map.Trammel);
|
|
WeakEntityCollection.Add(name, sign);
|
|
|
|
sign = new LocalizedSign(3023, 1149820); //General Store
|
|
sign.MoveToWorld(new Point3D(4543, 2317, -3), Map.Felucca);
|
|
WeakEntityCollection.Add(name, sign);
|
|
|
|
XmlSpawner sp;
|
|
string toSpawn = "FishMonger";
|
|
|
|
//Britain
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Moonglow
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Trinsic
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Vesper
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Jhelom
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Skara Brae
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Papua
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Floating Eproriam
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 0;
|
|
sp.HomeRange = 0;
|
|
sp.MoveToWorld(new Point3D(4552, 2299, -1), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 0;
|
|
sp.HomeRange = 0;
|
|
sp.MoveToWorld(new Point3D(4540, 2321, -1), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "DocksAlchemist";
|
|
|
|
//Britain
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1482, 1754, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Moonglow
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4406, 1049, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Trinsic
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(2061, 2855, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Vesper
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(3009, 826, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Jhelom
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(1373, 3885, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Skara Brae
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.MoveToWorld(new Point3D(641, 2234, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Papua
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(5827, 3258, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
//Floating Eproriam
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4552, 2299, -1), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4540, 2321, -1), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "GBBigglesby";
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "GBBigglesby/Name/Mitsubishi/Title/the fleet officer";
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 10;
|
|
sp.MoveToWorld(new Point3D(713, 1370, 6), Map.Tokuno);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "BoatPainter";
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 15;
|
|
sp.MoveToWorld(new Point3D(4552, 2337, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 15;
|
|
sp.MoveToWorld(new Point3D(4552, 2337, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "Banker";
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4554, 2315, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4554, 2315, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "CrabFisher";
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 15;
|
|
sp.MoveToWorld(new Point3D(4552, 2336, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 15;
|
|
sp.MoveToWorld(new Point3D(4552, 2336, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 15;
|
|
sp.MoveToWorld(new Point3D(4552, 2378, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 15;
|
|
sp.MoveToWorld(new Point3D(4552, 2378, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "DockMaster";
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 10;
|
|
sp.MoveToWorld(new Point3D(4565, 2307, -2), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 10;
|
|
sp.MoveToWorld(new Point3D(4565, 2307, -2), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
toSpawn = "SeaMarketTavernKeeper";
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Trammel);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
sp = new XmlSpawner(toSpawn);
|
|
sp.SpawnRange = 1;
|
|
sp.HomeRange = 5;
|
|
sp.MoveToWorld(new Point3D(4544, 2302, -1), Map.Felucca);
|
|
sp.Respawn();
|
|
WeakEntityCollection.Add(name, sp);
|
|
|
|
SeaMarketBuoy bouy1 = new SeaMarketBuoy();
|
|
SeaMarketBuoy bouy2 = new SeaMarketBuoy();
|
|
SeaMarketBuoy bouy3 = new SeaMarketBuoy();
|
|
SeaMarketBuoy bouy4 = new SeaMarketBuoy();
|
|
SeaMarketBuoy bouy5 = new SeaMarketBuoy();
|
|
SeaMarketBuoy bouy6 = new SeaMarketBuoy();
|
|
SeaMarketBuoy bouy7 = new SeaMarketBuoy();
|
|
SeaMarketBuoy bouy8 = new SeaMarketBuoy();
|
|
|
|
Rectangle2D bound = Server.Regions.SeaMarketRegion.Bounds[0];
|
|
|
|
bouy1.MoveToWorld(new Point3D(bound.X, bound.Y, -5), Map.Felucca);
|
|
bouy2.MoveToWorld(new Point3D(bound.X, bound.Y, -5), Map.Trammel);
|
|
WeakEntityCollection.Add(name, bouy1);
|
|
WeakEntityCollection.Add(name, bouy2);
|
|
|
|
bouy3.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y, -5), Map.Felucca);
|
|
bouy4.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y, -5), Map.Trammel);
|
|
WeakEntityCollection.Add(name, bouy3);
|
|
WeakEntityCollection.Add(name, bouy4);
|
|
|
|
bouy5.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y + bound.Height, -5), Map.Felucca);
|
|
bouy6.MoveToWorld(new Point3D(bound.X + bound.Width, bound.Y + bound.Height, -5), Map.Trammel);
|
|
WeakEntityCollection.Add(name, bouy5);
|
|
WeakEntityCollection.Add(name, bouy6);
|
|
|
|
bouy7.MoveToWorld(new Point3D(bound.X, bound.Y + bound.Height, -5), Map.Felucca);
|
|
bouy8.MoveToWorld(new Point3D(bound.X, bound.Y + bound.Height, -5), Map.Trammel);
|
|
WeakEntityCollection.Add(name, bouy7);
|
|
WeakEntityCollection.Add(name, bouy8);
|
|
|
|
Console.WriteLine("High Seas Content generated.");
|
|
}
|
|
}
|
|
} |