public override void OnDoubleClick( Mobile from ) { if (m_Timer != null || m_Moongate != null) return; m_Moongate = new Moongate(); m_Moongate.Hue = 1175; m_Moongate.MoveToWorld( m_Location, Map ); m_Moongate.Target = m_Destination; m_Moongate.TargetMap = Map; m_Timer = new InternalTimer( this, m_Moongate ); m_Timer.Start(); }
public override void HideEffects( Mobile from ) { Effects.PlaySound( from.Location, from.Map, m_GateSound ); Moongate gate = new Moongate( false ); if ( m_RedGate ) gate.ItemID = 0xDDA; gate.Hue = m_GateHue; gate.MoveToWorld( from.Location, from.Map ); gate.TargetMap = Map.Internal; Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 1.0 ) , new TimerStateCallback<Mobile>( ChangeHide ), from ); Timer.DelayCall<Moongate>( TimeSpan.FromSeconds( 3.5 ) , new TimerStateCallback<Moongate>( KillGate ), gate ); }
public override void OnDoubleClick(Mobile from) { if (m_Timer != null || m_Moongate != null) { return; } m_Moongate = new Moongate(); m_Moongate.Hue = 1175; m_Moongate.MoveToWorld(m_Location, Map); m_Moongate.Target = m_Destination; m_Moongate.TargetMap = Map; m_Timer = new InternalTimer(this, m_Moongate); m_Timer.Start(); }
private void Anim_Continue( AnimInfo info ) { Mobile from = info.From; IEntity entity = info.Entity; Moongate gate = new Moongate( false ); if ( m_RedGate ) gate.ItemID = 0xDDA; gate.Hue = m_GateHue > 0 ? m_GateHue : 0; gate.MoveToWorld( entity.Location, entity.Map ); gate.TargetMap = Map.Internal; Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 1.0 ) , new TimerStateCallback<Mobile>( ChangeHide ), from ); Timer.DelayCall<Moongate>(TimeSpan.FromSeconds( 3.0 ), new TimerStateCallback<Moongate>( KillGate ), gate ); }
public override void HideEffects(Mobile from) { Effects.PlaySound(from.Location, from.Map, m_GateSound); Moongate gate = new Moongate(false); if (m_RedGate) { gate.ItemID = 0xDDA; } gate.Hue = m_GateHue; gate.MoveToWorld(from.Location, from.Map); gate.TargetMap = Map.Internal; Timer.DelayCall(TimeSpan.FromSeconds(1.0), new TimerStateCallback(ChangeHide), from); Timer.DelayCall(TimeSpan.FromSeconds(3.5), new TimerStateCallback(KillGate), gate); }
public void Anim_Continue( object o ) { object[] objs = (object[])o; Mobile from = objs[0] as Mobile; Entity entity = objs[1] as Entity; Moongate gate = new Moongate( false ); if ( m_RedGate ) gate.ItemID = 0xDDA; gate.Hue = m_GateHue > 0 ? m_GateHue : 0; gate.MoveToWorld( entity.Location, entity.Map ); gate.TargetMap = Map.Internal; Timer.DelayCall( TimeSpan.FromSeconds( 1.0 ) , new TimerStateCallback( ChangeHide ), from ); Timer.DelayCall(TimeSpan.FromSeconds( 3.0 ), new TimerStateCallback( KillGate ), gate ); }
private void Anim_Continue(AnimInfo info) { Mobile from = info.From; IEntity entity = info.Entity; Moongate gate = new Moongate(false); if (m_RedGate) { gate.ItemID = 0xDDA; } gate.Hue = m_GateHue > 0 ? m_GateHue : 0; gate.MoveToWorld(entity.Location, entity.Map); gate.TargetMap = Map.Internal; Timer.DelayCall <Mobile>(TimeSpan.FromSeconds(1.0), new TimerStateCallback <Mobile>(ChangeHide), from); Timer.DelayCall <Moongate>(TimeSpan.FromSeconds(3.0), new TimerStateCallback <Moongate>(KillGate), gate); }
public void Anim_Continue(object o) { object[] objs = (object[])o; Mobile from = objs[0] as Mobile; Entity entity = objs[1] as Entity; Moongate gate = new Moongate(false); if (m_RedGate) { gate.ItemID = 0xDDA; } gate.Hue = m_GateHue > 0 ? m_GateHue : 0; gate.MoveToWorld(entity.Location, entity.Map); gate.TargetMap = Map.Internal; Timer.DelayCall(TimeSpan.FromSeconds(1.0), new TimerStateCallback(ChangeHide), from); Timer.DelayCall(TimeSpan.FromSeconds(3.0), new TimerStateCallback(KillGate), gate); }
public static void SetupDespise_OnCommand(CommandEventArgs e) { if (DespiseController.Instance == null) { foreach (Region region in Region.Regions) { if (region.Name == "Despise" && region.Map == Map.Trammel) { foreach (Sector sector in region.Sectors) { List<Item> list = new List<Item>(sector.Items); foreach (Item item in list) { if (item is XmlSpawner) ((XmlSpawner)item).DoReset = true; } list.Clear(); } } } CommandEventArgs args = new CommandEventArgs(e.Mobile, null, null, new string[] { @"Data\Monsters\NewDespise" }); XmlSpawner.Load_OnCommand(args); DespiseController controller = new DespiseController(); controller.MoveToWorld(new Point3D(5571, 626, 30), Map.Trammel); DespiseAnkh ankh = new DespiseAnkh(Alignment.Good); ankh.MoveToWorld(new Point3D(5474, 525, 79), Map.Trammel); ankh = new DespiseAnkh(Alignment.Evil); ankh.MoveToWorld(new Point3D(5472, 754, 10), Map.Trammel); Moongate gate1 = new Moongate(false); Moongate gate2 = new Moongate(false); //Gate1 gate1.MoveToWorld(new Point3D(5475, 735, 5), Map.Trammel); gate2.MoveToWorld(new Point3D(5458, 610, 50), Map.Trammel); HueGates(gate1, gate2); LinkGates(gate1, gate2); gate1 = new Moongate(false); gate2 = new Moongate(false); //Gate2 gate1.MoveToWorld(new Point3D(5459, 674, 20), Map.Trammel); gate2.MoveToWorld(new Point3D(5454, 522, 60), Map.Trammel); HueGates(gate1, gate2); LinkGates(gate1, gate2); gate1 = new Moongate(false); gate2 = new Moongate(false); //Gate3 gate1.MoveToWorld(new Point3D(5388, 753, 5), Map.Trammel); gate2.MoveToWorld(new Point3D(5387, 628, 30), Map.Trammel); HueGates(gate1, gate2); LinkGates(gate1, gate2); //Teleporters IPooledEnumerable eable = Map.Trammel.GetItemsInRange(new Point3D(5588, 631, 30), 2); DespiseTeleporter tele = null; //Wisp MysteriousWisp wisp = new MysteriousWisp(); wisp.MoveToWorld(new Point3D(1303, 1088, 0), Map.Trammel); foreach (Item item in eable) { if (item is Teleporter) { Teleporter old = (Teleporter)item; tele = new DespiseTeleporter(); tele.PointDest = old.PointDest; tele.MapDest = old.MapDest; tele.MoveToWorld(old.Location, old.Map); old.Delete(); } } eable.Free(); e.Mobile.SendMessage("Despise Revamped setup! Don't forget to setup mob spawners an activate it!"); } else e.Mobile.SendMessage("This has already been setup."); }
public bool GenerateSpawners() { Spawner spawner; Static item; Teleporter tele; bool erased = RemoveSpawners(); #region Angels Snack // Loot/Quest, found on Qunia #endregion #region Autolife spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1959, 513, -20), Map.Ilshenar); spawner.SpawnNames.Add("BlueTrappedPixie"); BlueStuff.Add(spawner); #endregion #region Bad Breath #endregion #region Blow Up spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1650, 351, -3), Map.Ilshenar); spawner.SpawnNames.Add("BlueBomb"); spawner.Count = 5; spawner.HomeRange = 8; BlueStuff.Add(spawner); #endregion #region Demi spawner = new Spawner(); spawner.MoveToWorld(new Point3D(327, 532, -34), Map.Ilshenar); spawner.SpawnNames.Add("BlueImp"); spawner.Count = 2; spawner.HomeRange = 8; spawner = new Spawner(); spawner.MoveToWorld(new Point3D(327, 532, -33), Map.Ilshenar); spawner.SpawnNames.Add("Imp"); spawner.Count = 3; spawner.HomeRange = 8; BlueStuff.Add(spawner); #endregion #region Dragon Force spawner = new Spawner(); // [go 1178 1512, -68 spawner.MoveToWorld(new Point3D(1178, 1512, -68), Map.Ilshenar); spawner.SpawnNames.Add("BLDragon"); spawner.HomeRange = 6; BlueStuff.Add(spawner); #endregion #region Drain Touch // Self Spawning #endregion #region Fifty Needles spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1530, 671, -14), Map.Ilshenar); spawner.Count = 3; spawner.SpawnNames.Add("BlueCactuar"); BlueStuff.Add(spawner); #endregion #region Flame Thrower spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1931, 36, -28), Map.Ilshenar); spawner.SpawnNames.Add("BlueGolem"); BlueStuff.Add(spawner); #endregion #region Frog Drop QuinaTele quinatele = new QuinaTele(); quinatele.MoveToWorld(new Point3D(919, 993, 12), Map.Ilshenar); BlueStuff.Add(quinatele); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1757, 888, -24), Map.Ilshenar); spawner.SpawnNames.Add("BlueQuina"); BlueStuff.Add(spawner); // Frogs item = new Static(8553); item.MoveToWorld(new Point3D(1778, 872, -24), Map.Ilshenar); BlueStuff.Add(item); item = new Static(8552); item.MoveToWorld(new Point3D(1777, 872, -24), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1778, 873, -25), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1647, 721, -13); BlueStuff.Add(tele); FrogSwampAddon frogdropaddon = new FrogSwampAddon(); frogdropaddon.MoveToWorld(new Point3D(1645, 699, -24), Map.Ilshenar); BlueStuff.Add(frogdropaddon); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1647, 721, -13), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1778, 873, -25); BlueStuff.Add(tele); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1657, 711, -23), Map.Ilshenar); spawner.SpawnNames.Add("BlueFrog"); spawner.HomeRange = 8; spawner.Count = 10; BlueStuff.Add(spawner); #endregion #region Goblin Punch GoblinCaveAddon goblincaveaddon = new GoblinCaveAddon(); goblincaveaddon.MoveToWorld(new Point3D(1906, 674, -21), Map.Ilshenar); BlueStuff.Add(goblincaveaddon); // Teleporters item = new Static(8553); item.MoveToWorld(new Point3D(1706, 589, 13), Map.Ilshenar); BlueStuff.Add(item); item = new Static(8553); item.MoveToWorld(new Point3D(1707, 589, 13), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1706, 590, 11), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1973, 832, -4); BlueStuff.Add(tele); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1707, 590, 12), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1974, 832, -4); BlueStuff.Add(tele); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1973, 832, -4), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1706, 590, 11); BlueStuff.Add(tele); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1974, 832, -4), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1707, 590, 12); BlueStuff.Add(tele); // Spawners spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1976, 808, -11), Map.Ilshenar); // Main Room spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.HomeRange = 10; spawner.Count = 10; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2007, 796, -21), Map.Ilshenar); // Side of the Main Room spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.HomeRange = 8; spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1968, 777, -21), Map.Ilshenar); // First 'T' spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1923, 792, -21), Map.Ilshenar); // Top of Circle spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1938, 807, -21), Map.Ilshenar); // Bottom of Circle spawner.SpawnNames.Add("Beetle"); spawner.SpawnNames.Add("Beetle"); spawner.SpawnNames.Add("Beetle"); spawner.SpawnNames.Add("Beetle"); spawner.SpawnNames.Add("Beetle"); spawner.SpawnNames.Add("FireBeetle"); spawner.Count = 2; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1995, 758, -21), Map.Ilshenar); // Another Cross Way spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1979, 742, -21), Map.Ilshenar); // Just after the one above. spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1963, 727, -21), Map.Ilshenar); // 'T' headed to the 2nd level spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1945, 762, -21), Map.Ilshenar); // Dirt Dead End (beetle here) spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.SpawnNames.Add("BlueGoblinCaster"); spawner.SpawnNames.Add("BlueGoblinMelee"); spawner.SpawnNames.Add("BlueGoblin"); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add(spawner); #endregion #region Guard Off spawner = new Spawner(); spawner.MoveToWorld(new Point3D(318, 1228, -38), Map.Ilshenar); spawner.HomeRange = 8; spawner.SpawnNames.Add("BlueRuneBeetle"); BlueStuff.Add(spawner); #endregion #region Level 4 Holy // See White Wind #endregion #region Limit Glove spawner = new Spawner(); spawner.MoveToWorld(new Point3D(907, 1283, -46), Map.Ilshenar); spawner.SpawnNames.Add("BlueCatoblepas"); BlueStuff.Add(spawner); #endregion #region Magic Hammer #endregion #region Matra Magic spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1080, 1060, 0), Map.Ilshenar); spawner.SpawnNames.Add("BlueTurkey"); spawner.HomeRange = 15; spawner.Count = 10; spawner.MinDelay = TimeSpan.FromSeconds(30); spawner.MaxDelay = TimeSpan.FromSeconds(30); BlueStuff.Add(spawner); #endregion #region Mighty Guard BeetleCaveAddon beetlecaveaddon = new BeetleCaveAddon(); beetlecaveaddon.MoveToWorld(new Point3D(1952, 567, -26), Map.Ilshenar); BlueStuff.Add(beetlecaveaddon); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1963, 684, -21), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(2025, 701, -9); BlueStuff.Add(tele); tele = new Teleporter(); tele.MoveToWorld(new Point3D(2025, 701, -9), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1963, 684, -21); BlueStuff.Add(tele); tele = new Teleporter(); tele.MoveToWorld(new Point3D(2026, 701, -9), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1963, 684, -21); BlueStuff.Add(tele); tele = new Teleporter(); tele.MoveToWorld(new Point3D(2025, 701, -9), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1963, 684, -21); BlueStuff.Add(tele); // Spawners spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2024, 675, -26), Map.Ilshenar); // First Junction spawner.SpawnNames.Add("BlueDullCopperElemental"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1993, 675, -26), Map.Ilshenar); // Near Center of Plus: Guards spawner.SpawnNames.Add("BlueShadowIronElemental"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1993, 648, -26), Map.Ilshenar); // End of Plus spawner.SpawnNames.Add("BlueMixedOreElemental"); spawner.HomeRange = 1; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2042, 660, -26), Map.Ilshenar); // Minor dead End T spawner.SpawnNames.Add("BlueCopperElemental"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2058, 640, -26), Map.Ilshenar); // Right Before Big Room spawner.SpawnNames.Add("BlueBronzeElemental"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2076, 576, -26), Map.Ilshenar); // NE/E Meet Up spawner.SpawnNames.Add("BlueIronBeetle"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2019, 613, -26), Map.Ilshenar); // W Dead End spawner.HomeRange = 2; spawner.SpawnNames.Add("BlueGoldElemental"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2021, 586, -26), Map.Ilshenar); // First Corner Headed to Lv 3 spawner.Count = 3; spawner.SpawnNames.Add("BlueAgapiteElemental"); BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1977, 605, -26), Map.Ilshenar); // Second Corner Headed to Lv 3 spawner.HomeRange = 10; spawner.Count = 8; spawner.SpawnNames.Add("BlueEarthElemental"); BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(2049, 607, -26), Map.Ilshenar); // Center of Large Room spawner.SpawnNames.Add("BlueEarthElemental"); spawner.HomeRange = 8; spawner.Count = 10; BlueStuff.Add(spawner); #endregion #region Mindblast // Teleporters Moongate moon = new Moongate(); moon.Dispellable = false; moon.Target = new Point3D(362, 666, -28); moon.TargetMap = Map.Ilshenar; moon.Hue = 991; moon.Name = "To a far off place..."; moon.MoveToWorld(new Point3D(1183, 1130, -5), Map.Ilshenar); BlueStuff.Add(moon); item = new Static(14186); item.Hue = 991; item.MoveToWorld(new Point3D(1183, 1130, -5), Map.Ilshenar); BlueStuff.Add(item); ArcaneCircleAddon arcanecircleaddon = new ArcaneCircleAddon(); arcanecircleaddon.Hue = 991; arcanecircleaddon.MoveToWorld(new Point3D(1183, 1130, -5), Map.Ilshenar); BlueStuff.Add(arcanecircleaddon); moon = new Moongate(); moon.Dispellable = false; moon.Target = new Point3D(1183, 1130, -5); moon.TargetMap = Map.Ilshenar; moon.Hue = 991; moon.Name = "Back to your reality."; moon.MoveToWorld(new Point3D(362, 666, -28), Map.Ilshenar); BlueStuff.Add(moon); // Area MindflayerAddon mindflayeraddon = new MindflayerAddon(); mindflayeraddon.MoveToWorld(new Point3D(323, 658, -28), Map.Ilshenar); BlueStuff.Add(mindflayeraddon); new MindflayerRegion(); // Spawners spawner = new Spawner(); spawner.MoveToWorld(new Point3D(329, 666, -28), Map.Ilshenar); spawner.Count = 2; spawner.SpawnNames.Add("BlueMindflayer"); BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(338, 666, -28), Map.Ilshenar); spawner.Count = 2; spawner.SpawnNames.Add("BlueMindflayer"); BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(347, 666, -28), Map.Ilshenar); spawner.Count = 2; spawner.SpawnNames.Add("BlueMindflayer"); BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(355, 666, -28), Map.Ilshenar); spawner.SpawnNames.Add("BlueMindflayer"); BlueStuff.Add(spawner); #endregion #region Night #endregion #region Poison Claw // Quest #endregion #region Shadow Flare // Quest #endregion #region Shield #endregion #region Stare item = new Static(1180); item.Hue = 1; item.MoveToWorld(new Point3D(1960, 642, -26), Map.Ilshenar); BlueStuff.Add(item); item = new Static(1180); item.Hue = 1; item.MoveToWorld(new Point3D(1961, 642, -26), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1960, 642, -26), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1962, 495, 39); BlueStuff.Add(tele); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1961, 642, -26), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1962, 495, 39); BlueStuff.Add(tele); BeholderCaveAddon beholdercave = new BeholderCaveAddon(); beholdercave.MoveToWorld(new Point3D(1948, 481, -20), Map.Ilshenar); BlueStuff.Add(beholdercave); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1962, 496, 57), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1961, 642, -26); BlueStuff.Add(tele); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1977, 488, 27), Map.Ilshenar); spawner.SpawnNames.Add("Gazer"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1979, 505, 7), Map.Ilshenar); spawner.SpawnNames.Add("ElderGazer"); spawner.Count = 3; BlueStuff.Add(spawner); item = new Static(1180); item.Hue = 1; item.MoveToWorld(new Point3D(1952, 515, -20), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1952, 515, -20), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1959, 542, 40); BlueStuff.Add(tele); item = new Static(3024); // Sign item.MoveToWorld(new Point3D(1951, 515, -26), Map.Ilshenar); item.Name = "Warning! Point of no return (without recall)."; BlueStuff.Add(item); item = new Static(19); // Pole item.MoveToWorld(new Point3D(1951, 515, -20), Map.Ilshenar); BlueStuff.Add(item); AnkhNorth ankh = new AnkhNorth(true); ankh.Hue = 1109; ankh.MoveToWorld(new Point3D(1955, 540, -20), Map.Ilshenar); BlueStuff.Add(ankh); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1975, 546, -20), Map.Ilshenar); spawner.SpawnNames.Add("BlueBeholder"); spawner.MinDelay = TimeSpan.FromMinutes(1); spawner.MaxDelay = TimeSpan.FromMinutes(3); BlueStuff.Add(spawner); #endregion #region Switch spawner = new Spawner(); spawner.MoveToWorld(new Point3D(607, 1315, -55), Map.Ilshenar); spawner.SpawnNames.Add("BlueMongbat"); spawner.Count = 5; spawner.HomeRange = 8; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(607, 1315, -54), Map.Ilshenar); spawner.Count = 15; spawner.HomeRange = 8; spawner.SpawnNames.Add("Mongbat"); BlueStuff.Add(spawner); #endregion #region Thrust Kick spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1412, 804, -24), Map.Ilshenar); spawner.SpawnNames.Add("BlueSkitteringHopper"); spawner.Count = 3; spawner.HomeRange = 8; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1412, 804, -24), Map.Ilshenar); spawner.SpawnNames.Add("SkitteringHopper"); spawner.Count = 5; spawner.HomeRange = 8; BlueStuff.Add(spawner); #endregion #region Trine #endregion #region Vanish #endregion #region White Wind // A to B item = new Static(14186); item.MoveToWorld(new Point3D(1463, 270, 42), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1463, 270, 42), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1191, 498, 103); BlueStuff.Add(tele); // B to A item = new Static(14186); item.MoveToWorld(new Point3D(1191, 498, 103), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1191, 498, 103), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1463, 270, 42); BlueStuff.Add(tele); // Walk over fix item = new Static(16168); item.MoveToWorld(new Point3D(1194, 507, 104), Map.Ilshenar); BlueStuff.Add(item); item = new Static(16168); item.MoveToWorld(new Point3D(1194, 508, 104), Map.Ilshenar); BlueStuff.Add(item); item = new Static(16168); item.MoveToWorld(new Point3D(1195, 507, 104), Map.Ilshenar); BlueStuff.Add(item); item = new Static(16168); item.MoveToWorld(new Point3D(1195, 508, 104), Map.Ilshenar); BlueStuff.Add(item); // Monsters spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1199, 511, 95), Map.Ilshenar); spawner.SpawnNames.Add("BlueSnowElemental"); spawner.Count = 4; BlueStuff.Add(spawner); // C to D item = new Static(14186); item.MoveToWorld(new Point3D(1212, 507, 63), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1212, 507, 63), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1455, 310, 100); BlueStuff.Add(tele); // D to C item = new Static(14186); item.MoveToWorld(new Point3D(1455, 310, 100), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1455, 310, 100), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1212, 507, 63); BlueStuff.Add(tele); // Monsters spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1457, 290, 80), Map.Ilshenar); spawner.SpawnNames.Add("BlueSnowElemental"); spawner.Count = 3; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1455, 307, 109), Map.Ilshenar); spawner.SpawnNames.Add("BlueSnowElemental"); spawner.Count = 3; BlueStuff.Add(spawner); // E to F item = new Static(14186); item.MoveToWorld(new Point3D(1461, 290, 71), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1461, 290, 71), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1226, 428, 71); BlueStuff.Add(tele); // F to E item = new Static(14186); item.MoveToWorld(new Point3D(1226, 428, 71), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1226, 428, 71), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1461, 290, 71); BlueStuff.Add(tele); // Monsters spawner = new Spawner(); spawner.MoveToWorld(new Point3D(1240, 439, 89), Map.Ilshenar); spawner.SpawnNames.Add("BlueSnowElemental"); spawner.Count = 6; BlueStuff.Add(spawner); // G to H item = new Static(14186); item.MoveToWorld(new Point3D(1257, 455, 65), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(1257, 455, 65), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(430, 612, -32); BlueStuff.Add(tele); // H to G item = new Static(14186); item.MoveToWorld(new Point3D(430, 612, -32), Map.Ilshenar); BlueStuff.Add(item); tele = new Teleporter(); tele.MoveToWorld(new Point3D(430, 612, -32), Map.Ilshenar); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D(1257, 455, 65); BlueStuff.Add(tele); // Monsters spawner = new Spawner(); spawner.MoveToWorld(new Point3D(450, 619, -29), Map.Ilshenar); spawner.SpawnNames.Add("BlueEtherealWarrior"); spawner.Count = 3; spawner.HomeRange = 10; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(450, 619, -28), Map.Ilshenar); spawner.SpawnNames.Add("BluePixie"); spawner.Count = 6; spawner.HomeRange = 10; BlueStuff.Add(spawner); spawner = new Spawner(); spawner.MoveToWorld(new Point3D(450, 619, -27), Map.Ilshenar); spawner.SpawnNames.Add("Wisp"); spawner.Count = 4; spawner.HomeRange = 10; BlueStuff.Add(spawner); #endregion return(erased); }
public static void SetupDespise_OnCommand(CommandEventArgs e) { if (DespiseController.Instance == null) { DespiseController controller = new DespiseController(); WeakEntityCollection.Add("despise", controller); controller.MoveToWorld(new Point3D(5571, 626, 30), Map.Trammel); DespiseAnkh ankh = new DespiseAnkh(Alignment.Good); WeakEntityCollection.Add("despise", ankh); ankh.MoveToWorld(new Point3D(5474, 525, 79), Map.Trammel); ankh = new DespiseAnkh(Alignment.Evil); WeakEntityCollection.Add("despise", ankh); ankh.MoveToWorld(new Point3D(5472, 754, 10), Map.Trammel); Moongate gate1 = new Moongate(false); Moongate gate2 = new Moongate(false); WeakEntityCollection.Add("despise", gate1); WeakEntityCollection.Add("despise", gate2); //Gate1 gate1.MoveToWorld(new Point3D(5475, 735, 5), Map.Trammel); gate2.MoveToWorld(new Point3D(5458, 610, 50), Map.Trammel); HueGates(gate1, gate2); LinkGates(gate1, gate2); gate1 = new Moongate(false); gate2 = new Moongate(false); WeakEntityCollection.Add("despise", gate1); WeakEntityCollection.Add("despise", gate2); //Gate2 gate1.MoveToWorld(new Point3D(5459, 674, 20), Map.Trammel); gate2.MoveToWorld(new Point3D(5454, 522, 60), Map.Trammel); HueGates(gate1, gate2); LinkGates(gate1, gate2); gate1 = new Moongate(false); gate2 = new Moongate(false); WeakEntityCollection.Add("despise", gate1); WeakEntityCollection.Add("despise", gate2); //Gate3 gate1.MoveToWorld(new Point3D(5388, 753, 5), Map.Trammel); gate2.MoveToWorld(new Point3D(5387, 628, 30), Map.Trammel); HueGates(gate1, gate2); LinkGates(gate1, gate2); //Teleporters IPooledEnumerable eable = Map.Trammel.GetItemsInRange(new Point3D(5588, 631, 30), 2); DespiseTeleporter tele = null; //Wisp MysteriousWisp wisp = new MysteriousWisp(); WeakEntityCollection.Add("despise", wisp); wisp.MoveToWorld(new Point3D(1303, 1088, 0), Map.Trammel); foreach (Item item in eable) { if (item is Teleporter) { Teleporter old = (Teleporter)item; tele = new DespiseTeleporter(); WeakEntityCollection.Add("despise", tele); tele.PointDest = old.PointDest; tele.MapDest = old.MapDest; tele.MoveToWorld(old.Location, old.Map); old.Delete(); } } eable.Free(); e.Mobile.SendMessage("Despise setup complete"); } else e.Mobile.SendMessage("Despise appears to already be setup"); }
public bool GenerateSpawners() { Spawner spawner; Static item; Teleporter tele; bool erased = RemoveSpawners(); #region Angels Snack // Loot/Quest, found on Qunia #endregion #region Autolife spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1959, 513, -20 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueTrappedPixie" ); BlueStuff.Add( spawner ); #endregion #region Bad Breath #endregion #region Blow Up spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1650, 351, -3 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueBomb" ); spawner.Count = 5; spawner.HomeRange = 8; BlueStuff.Add( spawner ); #endregion #region Demi spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 327, 532, -34 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueImp" ); spawner.Count = 2; spawner.HomeRange = 8; spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 327, 532, -33 ), Map.Ilshenar ); spawner.SpawnNames.Add( "Imp" ); spawner.Count = 3; spawner.HomeRange = 8; BlueStuff.Add( spawner ); #endregion #region Dragon Force spawner = new Spawner(); // [go 1178 1512, -68 spawner.MoveToWorld( new Point3D( 1178, 1512, -68 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BLDragon" ); spawner.HomeRange = 6; BlueStuff.Add( spawner ); #endregion #region Drain Touch // Self Spawning #endregion #region Fifty Needles spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1530, 671, -14 ), Map.Ilshenar ); spawner.Count = 3; spawner.SpawnNames.Add( "BlueCactuar" ); BlueStuff.Add( spawner ); #endregion #region Flame Thrower spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1931, 36, -28 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueGolem" ); BlueStuff.Add( spawner ); #endregion #region Frog Drop QuinaTele quinatele = new QuinaTele(); quinatele.MoveToWorld( new Point3D( 919, 993, 12 ), Map.Ilshenar ); BlueStuff.Add( quinatele ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1757, 888, -24 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueQuina" ); BlueStuff.Add( spawner ); // Frogs item = new Static( 8553 ); item.MoveToWorld( new Point3D( 1778, 872, -24 ), Map.Ilshenar ); BlueStuff.Add( item ); item = new Static( 8552 ); item.MoveToWorld( new Point3D( 1777, 872, -24 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1778, 873, -25 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1647, 721, -13 ); BlueStuff.Add( tele ); FrogSwampAddon frogdropaddon = new FrogSwampAddon(); frogdropaddon.MoveToWorld( new Point3D( 1645, 699, -24 ), Map.Ilshenar ); BlueStuff.Add( frogdropaddon ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1647, 721, -13 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1778, 873, -25 ); BlueStuff.Add( tele ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1657, 711, -23 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueFrog" ); spawner.HomeRange = 8; spawner.Count = 10; BlueStuff.Add( spawner ); #endregion #region Goblin Punch GoblinCaveAddon goblincaveaddon = new GoblinCaveAddon(); goblincaveaddon.MoveToWorld( new Point3D( 1906, 674, -21 ), Map.Ilshenar ); BlueStuff.Add( goblincaveaddon ); // Teleporters item = new Static( 8553 ); item.MoveToWorld( new Point3D( 1706, 589, 13 ), Map.Ilshenar ); BlueStuff.Add( item ); item = new Static( 8553 ); item.MoveToWorld( new Point3D( 1707, 589, 13 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1706, 590, 11 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1973, 832, -4 ); BlueStuff.Add( tele ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1707, 590, 12 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1974, 832, -4 ); BlueStuff.Add( tele ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1973, 832, -4 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1706, 590, 11 ); BlueStuff.Add( tele ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1974, 832, -4 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1707, 590, 12 ); BlueStuff.Add( tele ); // Spawners spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1976, 808, -11 ), Map.Ilshenar ); // Main Room spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.HomeRange = 10; spawner.Count = 10; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2007, 796, -21 ), Map.Ilshenar ); // Side of the Main Room spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.HomeRange = 8; spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1968, 777, -21 ), Map.Ilshenar ); // First 'T' spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1923, 792, -21 ), Map.Ilshenar ); // Top of Circle spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1938, 807, -21 ), Map.Ilshenar ); // Bottom of Circle spawner.SpawnNames.Add( "Beetle" ); spawner.SpawnNames.Add( "Beetle" ); spawner.SpawnNames.Add( "Beetle" ); spawner.SpawnNames.Add( "Beetle" ); spawner.SpawnNames.Add( "Beetle" ); spawner.SpawnNames.Add( "FireBeetle" ); spawner.Count = 2; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1995, 758, -21 ), Map.Ilshenar ); // Another Cross Way spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1979, 742, -21 ), Map.Ilshenar ); // Just after the one above. spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1963, 727, -21 ), Map.Ilshenar ); // 'T' headed to the 2nd level spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1945, 762, -21 ), Map.Ilshenar ); // Dirt Dead End (beetle here) spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.SpawnNames.Add( "BlueGoblinCaster" ); spawner.SpawnNames.Add( "BlueGoblinMelee" ); spawner.SpawnNames.Add( "BlueGoblin" ); spawner.HomeRange = 12; spawner.Count = 5; BlueStuff.Add( spawner ); #endregion #region Guard Off spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 318, 1228, -38 ), Map.Ilshenar ); spawner.HomeRange = 8; spawner.SpawnNames.Add( "BlueRuneBeetle" ); BlueStuff.Add( spawner ); #endregion #region Level 4 Holy // See White Wind #endregion #region Limit Glove spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 907, 1283, -46 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueCatoblepas" ); BlueStuff.Add( spawner ); #endregion #region Magic Hammer #endregion #region Matra Magic spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1080, 1060, 0 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueTurkey" ); spawner.HomeRange = 15; spawner.Count = 10; spawner.MinDelay = TimeSpan.FromSeconds( 30 ); spawner.MaxDelay = TimeSpan.FromSeconds( 30 ); BlueStuff.Add( spawner ); #endregion #region Mighty Guard BeetleCaveAddon beetlecaveaddon = new BeetleCaveAddon(); beetlecaveaddon.MoveToWorld( new Point3D( 1952, 567, -26 ), Map.Ilshenar ); BlueStuff.Add( beetlecaveaddon ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1963, 684, -21 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 2025, 701, -9 ); BlueStuff.Add( tele ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 2025, 701, -9 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1963, 684, -21 ); BlueStuff.Add( tele ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 2026, 701, -9 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1963, 684, -21 ); BlueStuff.Add( tele ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 2025, 701, -9 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1963, 684, -21 ); BlueStuff.Add( tele ); // Spawners spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2024, 675, -26 ), Map.Ilshenar ); // First Junction spawner.SpawnNames.Add( "BlueDullCopperElemental" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1993, 675, -26 ), Map.Ilshenar ); // Near Center of Plus: Guards spawner.SpawnNames.Add( "BlueShadowIronElemental" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1993, 648, -26 ), Map.Ilshenar ); // End of Plus spawner.SpawnNames.Add( "BlueMixedOreElemental" ); spawner.HomeRange = 1; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2042, 660, -26 ), Map.Ilshenar ); // Minor dead End T spawner.SpawnNames.Add( "BlueCopperElemental" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2058, 640, -26 ), Map.Ilshenar ); // Right Before Big Room spawner.SpawnNames.Add( "BlueBronzeElemental" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2076, 576, -26 ), Map.Ilshenar ); // NE/E Meet Up spawner.SpawnNames.Add( "BlueIronBeetle" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2019, 613, -26 ), Map.Ilshenar ); // W Dead End spawner.HomeRange = 2; spawner.SpawnNames.Add( "BlueGoldElemental" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2021, 586, -26 ), Map.Ilshenar ); // First Corner Headed to Lv 3 spawner.Count = 3; spawner.SpawnNames.Add( "BlueAgapiteElemental" ); BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1977, 605, -26 ), Map.Ilshenar ); // Second Corner Headed to Lv 3 spawner.HomeRange = 10; spawner.Count = 8; spawner.SpawnNames.Add( "BlueEarthElemental" ); BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 2049, 607, -26 ), Map.Ilshenar ); // Center of Large Room spawner.SpawnNames.Add( "BlueEarthElemental" ); spawner.HomeRange = 8; spawner.Count = 10; BlueStuff.Add( spawner ); #endregion #region Mindblast // Teleporters Moongate moon = new Moongate(); moon.Dispellable = false; moon.Target = new Point3D( 362, 666, -28 ); moon.TargetMap = Map.Ilshenar; moon.Hue = 991; moon.Name = "To a far off place..."; moon.MoveToWorld( new Point3D( 1183, 1130, -5 ), Map.Ilshenar ); BlueStuff.Add( moon ); item = new Static( 14186 ); item.Hue = 991; item.MoveToWorld( new Point3D( 1183, 1130, -5 ), Map.Ilshenar ); BlueStuff.Add( item ); ArcaneCircleAddon arcanecircleaddon = new ArcaneCircleAddon(); arcanecircleaddon.Hue = 991; arcanecircleaddon.MoveToWorld( new Point3D( 1183, 1130, -5 ), Map.Ilshenar ); BlueStuff.Add( arcanecircleaddon ); moon = new Moongate(); moon.Dispellable = false; moon.Target = new Point3D( 1183, 1130, -5 ); moon.TargetMap = Map.Ilshenar; moon.Hue = 991; moon.Name = "Back to your reality."; moon.MoveToWorld( new Point3D( 362, 666, -28 ), Map.Ilshenar ); BlueStuff.Add( moon ); // Area MindflayerAddon mindflayeraddon = new MindflayerAddon(); mindflayeraddon.MoveToWorld( new Point3D( 323, 658, -28 ), Map.Ilshenar ); BlueStuff.Add( mindflayeraddon ); new MindflayerRegion(); // Spawners spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 329, 666, -28 ), Map.Ilshenar ); spawner.Count = 2; spawner.SpawnNames.Add( "BlueMindflayer" ); BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 338, 666, -28 ), Map.Ilshenar ); spawner.Count = 2; spawner.SpawnNames.Add( "BlueMindflayer" ); BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 347, 666, -28 ), Map.Ilshenar ); spawner.Count = 2; spawner.SpawnNames.Add( "BlueMindflayer" ); BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 355, 666, -28 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueMindflayer" ); BlueStuff.Add( spawner ); #endregion #region Night #endregion #region Poison Claw // Quest #endregion #region Shadow Flare // Quest #endregion #region Shield #endregion #region Stare item = new Static( 1180 ); item.Hue = 1; item.MoveToWorld( new Point3D( 1960, 642, -26 ), Map.Ilshenar ); BlueStuff.Add( item ); item = new Static( 1180 ); item.Hue = 1; item.MoveToWorld( new Point3D( 1961, 642, -26 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1960, 642, -26 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1962, 495, 39 ); BlueStuff.Add( tele ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1961, 642, -26 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1962, 495, 39 ); BlueStuff.Add( tele ); BeholderCaveAddon beholdercave = new BeholderCaveAddon(); beholdercave.MoveToWorld( new Point3D( 1948, 481, -20 ), Map.Ilshenar ); BlueStuff.Add( beholdercave ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1962, 496, 57 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1961, 642, -26 ); BlueStuff.Add( tele ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1977, 488, 27 ), Map.Ilshenar ); spawner.SpawnNames.Add( "Gazer" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1979, 505, 7 ), Map.Ilshenar ); spawner.SpawnNames.Add( "ElderGazer" ); spawner.Count = 3; BlueStuff.Add( spawner ); item = new Static( 1180 ); item.Hue = 1; item.MoveToWorld( new Point3D( 1952, 515, -20 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1952, 515, -20 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1959, 542, 40 ); BlueStuff.Add( tele ); item = new Static( 3024 ); // Sign item.MoveToWorld( new Point3D( 1951, 515, -26 ), Map.Ilshenar ); item.Name = "Warning! Point of no return (without recall)."; BlueStuff.Add( item ); item = new Static( 19 ); // Pole item.MoveToWorld( new Point3D( 1951, 515, -20 ), Map.Ilshenar ); BlueStuff.Add( item ); AnkhNorth ankh = new AnkhNorth( true ); ankh.Hue = 1109; ankh.MoveToWorld( new Point3D( 1955, 540, -20 ), Map.Ilshenar ); BlueStuff.Add( ankh ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1975, 546, -20 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueBeholder" ); spawner.MinDelay = TimeSpan.FromMinutes( 1 ); spawner.MaxDelay = TimeSpan.FromMinutes( 3 ); BlueStuff.Add( spawner ); #endregion #region Switch spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 607, 1315, -55 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueMongbat" ); spawner.Count = 5; spawner.HomeRange = 8; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 607, 1315, -54 ), Map.Ilshenar ); spawner.Count = 15; spawner.HomeRange = 8; spawner.SpawnNames.Add( "Mongbat" ); BlueStuff.Add( spawner ); #endregion #region Thrust Kick spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1412, 804, -24 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueSkitteringHopper" ); spawner.Count = 3; spawner.HomeRange = 8; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1412, 804, -24 ), Map.Ilshenar ); spawner.SpawnNames.Add( "SkitteringHopper" ); spawner.Count = 5; spawner.HomeRange = 8; BlueStuff.Add( spawner ); #endregion #region Trine #endregion #region Vanish #endregion #region White Wind // A to B item = new Static( 14186 ); item.MoveToWorld( new Point3D( 1463, 270, 42 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1463, 270, 42 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1191, 498, 103 ); BlueStuff.Add( tele ); // B to A item = new Static( 14186 ); item.MoveToWorld( new Point3D( 1191, 498, 103 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1191, 498, 103 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1463, 270, 42 ); BlueStuff.Add( tele ); // Walk over fix item = new Static( 16168 ); item.MoveToWorld( new Point3D( 1194, 507, 104 ), Map.Ilshenar ); BlueStuff.Add( item ); item = new Static( 16168 ); item.MoveToWorld( new Point3D( 1194, 508, 104 ), Map.Ilshenar ); BlueStuff.Add( item ); item = new Static( 16168 ); item.MoveToWorld( new Point3D( 1195, 507, 104 ), Map.Ilshenar ); BlueStuff.Add( item ); item = new Static( 16168 ); item.MoveToWorld( new Point3D( 1195, 508, 104 ), Map.Ilshenar ); BlueStuff.Add( item ); // Monsters spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1199, 511, 95 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueSnowElemental" ); spawner.Count = 4; BlueStuff.Add( spawner ); // C to D item = new Static( 14186 ); item.MoveToWorld( new Point3D( 1212, 507, 63 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1212, 507, 63 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1455, 310, 100 ); BlueStuff.Add( tele ); // D to C item = new Static( 14186 ); item.MoveToWorld( new Point3D( 1455, 310, 100 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1455, 310, 100 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1212, 507, 63 ); BlueStuff.Add( tele ); // Monsters spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1457, 290, 80 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueSnowElemental" ); spawner.Count = 3; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1455, 307, 109 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueSnowElemental" ); spawner.Count = 3; BlueStuff.Add( spawner ); // E to F item = new Static( 14186 ); item.MoveToWorld( new Point3D( 1461, 290, 71 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1461, 290, 71 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1226, 428, 71 ); BlueStuff.Add( tele ); // F to E item = new Static( 14186 ); item.MoveToWorld( new Point3D( 1226, 428, 71 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1226, 428, 71 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1461, 290, 71 ); BlueStuff.Add( tele ); // Monsters spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 1240, 439, 89 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueSnowElemental" ); spawner.Count = 6; BlueStuff.Add( spawner ); // G to H item = new Static( 14186 ); item.MoveToWorld( new Point3D( 1257, 455, 65 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 1257, 455, 65 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 430, 612, -32 ); BlueStuff.Add( tele ); // H to G item = new Static( 14186 ); item.MoveToWorld( new Point3D( 430, 612, -32 ), Map.Ilshenar ); BlueStuff.Add( item ); tele = new Teleporter(); tele.MoveToWorld( new Point3D( 430, 612, -32 ), Map.Ilshenar ); tele.MapDest = Map.Ilshenar; tele.PointDest = new Point3D( 1257, 455, 65 ); BlueStuff.Add( tele ); // Monsters spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 450, 619, -29 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BlueEtherealWarrior" ); spawner.Count = 3; spawner.HomeRange = 10; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 450, 619, -28 ), Map.Ilshenar ); spawner.SpawnNames.Add( "BluePixie" ); spawner.Count = 6; spawner.HomeRange = 10; BlueStuff.Add( spawner ); spawner = new Spawner(); spawner.MoveToWorld( new Point3D( 450, 619, -27 ), Map.Ilshenar ); spawner.SpawnNames.Add( "Wisp" ); spawner.Count = 4; spawner.HomeRange = 10; BlueStuff.Add( spawner ); #endregion return erased; }
public virtual void BEvent( Mobile from ) // code that creates the gates, starts delete timers, and broadcasts via world broadcast { int listcount = Server.Items.EGCPersi.EGCPers.Count; Point3D endloc = Server.Items.EGCPersi.EGCDest; Map endmap = Server.Items.EGCPersi.EGCMap; int times = Server.Items.EGCPersi.EGCDur.Minutes; if( from is PlayerMobile && listcount > 0 && endloc != Point3D.Zero ) // make sure the list is not empty before we start { foreach( EGEntry entry in Server.Items.EGCPersi.EGCPers ) { Moongate firstGate = new Moongate( endloc, endmap ); firstGate.Name = "Event Moongate"; firstGate.Hue = 999; firstGate.MoveToWorld( entry.Location, entry.Map ); Timer gdel = Timer.DelayCall( TimeSpan.FromMinutes( times ), new TimerCallback( ((Moongate)firstGate).Delete ) ); } Console.WriteLine( "endloc is " + Server.Items.EGCPersi.EGCDest.ToString() + ", endmap is " + Server.Items.EGCPersi.EGCMap.ToString() + ", eglist count is " + listcount.ToString() + "." ); World.Broadcast( 0x22, true, "An event is beginning now! Brought to you by {0}", from.Name.ToString() ); //World.Broadcast( 0x22, true, "World Gates will be open for {0} minutes.", Server.Items.EGCPersi.EGCDur.Minutes.ToString() ); } else { from.SendMessage( "The location list for entrance gates is empty!" ); } }