public override void OnResponse( NetState state, RelayInfo info ) { Mobile from = state.Mobile; switch ( info.ButtonID ) { case 0: { from.CloseGump( typeof( StartStopLakeShireMiregilsh ) ); from.SendGump( new CityInvasion( from ) ); break; } case 1: { Point3D loc = new Point3D( 568, 1311, 0 ); WayPoint point = new WayPoint(); WayPoint point1 = new WayPoint(); WayPoint point2 = new WayPoint(); //WayPoint point3 = new WayPoint(); point.Name = "LakeShireMiregInvasionIlshenar"; point1.Name = "LakeShireMiregInvasionIlshenar"; point2.Name = "LakeShireMiregInvasionIlshenar"; Spawner spawner1 = new Spawner( 1, 1440, 1441, 0, 6, "OrcBrute" ); spawner1.MoveToWorld( new Point3D( 950, 284, -90 ), Map.Malas ); spawner1.WayPoint = point; point.MoveToWorld( new Point3D( 950, 265, -90 ), Map.Malas ); point.NextPoint = point2; point2.MoveToWorld( new Point3D( 950, 275, -90 ), Map.Malas ); spawner1.Name = "LakeShireMiregInvasionIlshenar"; spawner1.Respawn(); Spawner spawner2 = new Spawner( 1, 1440, 1441, 0, 6, "OrcBomber" ); spawner2.MoveToWorld( new Point3D( 952, 284, -90 ), Map.Malas ); spawner2.WayPoint = point1; point1.MoveToWorld( new Point3D( 952, 265, -90 ), Map.Malas ); spawner2.Name = "LakeShireMiregInvasionIlshenar"; spawner2.Respawn(); Spawner spawner3 = new Spawner( 1, 1440, 1441, 0, 6, "Savage" ); spawner3.MoveToWorld( new Point3D( 950, 244, -90 ), Map.Malas ); spawner3.WayPoint = point; spawner3.Name = "LakeShireMiregInvasionIlshenar"; spawner3.Respawn(); Spawner spawner4 = new Spawner( 1, 1440, 1441, 0, 6, "SavageRider" ); spawner4.MoveToWorld( new Point3D( 952, 244, -90 ), Map.Malas ); spawner4.WayPoint = point1; spawner4.Name = "LakeShireMiregInvasionIlshenar"; spawner4.Respawn(); World.Broadcast( 33, true, "LakeShire and Mireg Ilshenar is under invasion." ); from.SendGump( new CityInvasion( from ) ); break; } case 2: { LakeShireMiregInvasionStone lakilsh = new LakeShireMiregInvasionStone(); lakilsh.StopLakeShireMiregIlshenar(); World.Broadcast( 33, true, "LakeShire and Mireg Ilshenar's invasion was successfully beaten back. No more invaders are left in the city." ); from.SendGump( new CityInvasion( from ) ); break; } } }
public override void OnResponse(NetState state, RelayInfo info) { Mobile from = state.Mobile; switch (info.ButtonID) { case 0: { from.CloseGump(typeof(StartStopLakeShireMiregilsh)); from.SendGump(new CityInvasion(from)); break; } case 1: { Point3D loc = new Point3D(568, 1311, 0); WayPoint point = new WayPoint(); WayPoint point1 = new WayPoint(); WayPoint point2 = new WayPoint(); //WayPoint point3 = new WayPoint(); point.Name = "LakeShireMiregInvasionIlshenar"; point1.Name = "LakeShireMiregInvasionIlshenar"; point2.Name = "LakeShireMiregInvasionIlshenar"; Spawner spawner1 = new Spawner(1, 1440, 1441, 0, 6, "OrcBrute"); spawner1.MoveToWorld(new Point3D(950, 284, -90), Map.Malas); spawner1.WayPoint = point; point.MoveToWorld(new Point3D(950, 265, -90), Map.Malas); point.NextPoint = point2; point2.MoveToWorld(new Point3D(950, 275, -90), Map.Malas); spawner1.Name = "LakeShireMiregInvasionIlshenar"; spawner1.Respawn(); Spawner spawner2 = new Spawner(1, 1440, 1441, 0, 6, "OrcBomber"); spawner2.MoveToWorld(new Point3D(952, 284, -90), Map.Malas); spawner2.WayPoint = point1; point1.MoveToWorld(new Point3D(952, 265, -90), Map.Malas); spawner2.Name = "LakeShireMiregInvasionIlshenar"; spawner2.Respawn(); Spawner spawner3 = new Spawner(1, 1440, 1441, 0, 6, "Savage"); spawner3.MoveToWorld(new Point3D(950, 244, -90), Map.Malas); spawner3.WayPoint = point; spawner3.Name = "LakeShireMiregInvasionIlshenar"; spawner3.Respawn(); Spawner spawner4 = new Spawner(1, 1440, 1441, 0, 6, "SavageRider"); spawner4.MoveToWorld(new Point3D(952, 244, -90), Map.Malas); spawner4.WayPoint = point1; spawner4.Name = "LakeShireMiregInvasionIlshenar"; spawner4.Respawn(); World.Broadcast(33, true, "LakeShire and Mireg Ilshenar is under invasion."); from.SendGump(new CityInvasion(from)); break; } case 2: { LakeShireMiregInvasionStone lakilsh = new LakeShireMiregInvasionStone(); lakilsh.StopLakeShireMiregIlshenar(); World.Broadcast(33, true, "LakeShire and Mireg Ilshenar's invasion was successfully beaten back. No more invaders are left in the city."); from.SendGump(new CityInvasion(from)); break; } } }