public override int LabelNumber => 1156235; // An Enchanting Crystal Ball public static void Initialize() { EventSink.Login += OnLogin; EventSink.Disconnected += OnDisconnected; CommandSystem.Register("AddController", AccessLevel.Administrator, e => { if (Instance == null) { ShadowguardController controller = new ShadowguardController(); controller.MoveToWorld(new Point3D(501, 2192, 50), Map.TerMur); e.Mobile.SendMessage("Shadowguard controller setup!"); } else { e.Mobile.SendMessage("A Shadowguard controller already exists!"); } }); CommandSystem.Register("CompleteAllRooms", AccessLevel.GameMaster, e => { if (Instance.Table == null) { Instance.Table = new Dictionary <Mobile, EncounterType>(); } Instance.Table[e.Mobile] = EncounterType.Bar | EncounterType.Orchard | EncounterType.Armory | EncounterType.Fountain | EncounterType.Belfry; }); }
public static void SetupShadowguard(Mobile from) { if (Instance != null) { return; } ShadowguardController controller = new ShadowguardController(); controller.MoveToWorld(new Point3D(501, 2192, 50), Map.TerMur); MetalDoor door = new MetalDoor(DoorFacing.NorthCCW) { Hue = 1779 }; door.MoveToWorld(new Point3D(519, 2188, 25), Map.TerMur); door = new MetalDoor(DoorFacing.SouthCW) { Hue = 1779 }; door.MoveToWorld(new Point3D(519, 2189, 25), Map.TerMur); door = new MetalDoor(DoorFacing.NorthCCW) { Hue = 1779 }; door.MoveToWorld(new Point3D(519, 2192, 25), Map.TerMur); door = new MetalDoor(DoorFacing.SouthCW) { Hue = 1779 }; door.MoveToWorld(new Point3D(519, 2193, 25), Map.TerMur); AnkhWest ankh = new AnkhWest(); ankh.MoveToWorld(new Point3D(503, 2191, 25), Map.TerMur); Item item = new Static(19343); item.MoveToWorld(new Point3D(64, 2336, 29), Map.TerMur); item = new Static(19343); item.MoveToWorld(new Point3D(160, 2336, 29), Map.TerMur); item = new Static(19343); item.MoveToWorld(new Point3D(64, 2432, 29), Map.TerMur); item = new Static(19343); item.MoveToWorld(new Point3D(160, 2432, 29), Map.TerMur); from.SendMessage("Shadowguard has been setup!"); Console.WriteLine("Shadowguard setup!"); }