Inheritance: BaseRegion
Exemple #1
0
 public static new void Initialize()
 {
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Mistas")));
     Region.AddRegion(new IlshenarCity("Gargoyle City"));
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Montor")));
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Alexandretta's Bowl")));
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Lenmir Anfinmotas")));
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Reg Volon")));
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Bet-Lem Reg")));
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Lake Shire")));
     Region.AddRegion(GuardedRegion.Disable(new IlshenarCity("Ancient Citadel")));
 }
Exemple #2
0
        private static void CheckGuarded_OnCommand(Server.Commands.CommandEventArgs e)
        {
            Mobile        from = e.Mobile;
            GuardedRegion reg  = from.Region as GuardedRegion;

            if (reg == null)
            {
                from.SendAsciiMessage("You are not in a guardable region.");
            }
            else
            {
                reg.TellGuardStatus(from);
            }
        }
Exemple #3
0
        private static void ToggleGuarded_OnCommand(Server.Commands.CommandEventArgs e)
        {
            Mobile        from = e.Mobile;
            GuardedRegion reg  = from.Region as GuardedRegion;

            if (reg == null)
            {
                from.SendAsciiMessage("You are not in a guardable region.");
            }
            else
            {
                reg.Disabled = !reg.Disabled;
                from.SendAsciiMessage("After your changes:");
                reg.TellGuardStatus(from);
            }
        }
Exemple #4
0
        private static void CheckGuarded_OnCommand(CommandEventArgs e)
        {
            Mobile        from = e.Mobile;
            GuardedRegion reg  = (GuardedRegion)from.Region.GetRegion(typeof(GuardedRegion));

            if (reg == null)
            {
                from.SendMessage("You are not in a guardable region.");
            }
            else if (reg.Disabled)
            {
                from.SendMessage("The guards in this region have been disabled.");
            }
            else
            {
                from.SendMessage("This region is actively guarded.");
            }
        }
        new public static void Initialize()
        {
            Region.AddRegion(new TrammelTown("Cove"));
            Region.AddRegion(new TrammelTown("Britain"));
            Region.AddRegion(new TrammelTown("Jhelom"));
            Region.AddRegion(new TrammelTown("Minoc"));
            Region.AddRegion(new TrammelTown("Haven"));
            Region.AddRegion(new TrammelTown("Trinsic"));
            Region.AddRegion(new TrammelTown("Vesper"));
            Region.AddRegion(new TrammelTown("Yew"));
            Region.AddRegion(new TrammelTown("Wind"));
            Region.AddRegion(new TrammelTown("Serpent's Hold"));
            Region.AddRegion(new TrammelTown("Skara Brae"));
            Region.AddRegion(new TrammelTown("Nujel'm"));
            Region.AddRegion(new TrammelTown("Moonglow"));
            Region.AddRegion(new TrammelTown("Magincia"));
            Region.AddRegion(new TrammelTown("Delucia"));
            Region.AddRegion(new TrammelTown("Papua"));
            Region.AddRegion(GuardedRegion.Disable(new TrammelTown("Buccaneer's Den")));

            Region.AddRegion(new GuardedRegion("", "Moongates", Map.Trammel, typeof(WarriorGuard)));
        }
        private static void ToggleGuarded_OnCommand(CommandEventArgs e)
        {
            Mobile        from = e.Mobile;
            GuardedRegion reg  = from.Region as GuardedRegion;

            if (reg == null)
            {
                from.SendMessage("You are not in a guardable region.");
            }
            else
            {
                reg.Disabled = !reg.Disabled;

                if (reg.Disabled)
                {
                    from.SendMessage("The guards in this region have been disabled.");
                }
                else
                {
                    from.SendMessage("The guards in this region have been enabled.");
                }
            }
        }
Exemple #7
0
        private static void ToggleAllowReds_OnCommand(CommandEventArgs e)
        {
            Mobile        from = e.Mobile;
            GuardedRegion reg  = (GuardedRegion)from.Region.GetRegion(typeof(GuardedRegion));

            if (reg == null)
            {
                from.SendMessage("You are not in a guardable region.");
            }
            else
            {
                reg.AllowReds = !reg.AllowReds;

                if (reg.AllowReds)
                {
                    from.SendMessage("The guards in this region WILL kill reds. (THIS IS TURNED OFF IF SERVER RESTARTS)");
                }
                else
                {
                    from.SendMessage("The guards in this region WILL NOT kill reds.");
                }
            }
        }
Exemple #8
0
        private static void SetGuarded_OnCommand(Server.Commands.CommandEventArgs e)
        {
            Mobile from = e.Mobile;

            if (e.Length == 1)
            {
                GuardedRegion reg = from.Region as GuardedRegion;

                if (reg == null)
                {
                    from.SendAsciiMessage("You are not in a guardable region.");
                }
                else
                {
                    reg.Disabled = !e.GetBoolean(0);
                    from.SendAsciiMessage("After your changes:");
                    reg.TellGuardStatus(from);
                }
            }
            else
            {
                from.SendAsciiMessage("Format: SetGuarded <true|false>");
            }
        }
 public static GuardedRegion Disable( GuardedRegion reg )
 {
     reg.Disabled = true;
     return reg;
 }
Exemple #10
0
 public static GuardedRegion Disable(GuardedRegion reg)
 {
     reg.Disabled = true;
     return(reg);
 }
 new public static void Initialize()
 {
     Region.AddRegion(new TokunoTown("Zento"));
     Region.AddRegion(GuardedRegion.Disable(new TokunoTown("Fan Dancer's Dojo")));
     Region.AddRegion(new GuardedRegion("", "Moongates", Map.Tokuno, typeof(WarriorGuard)));
 }
 public GuardCallDelayTimer(Mobile calledon, Mobile caller, GuardedRegion guardedRegion, TimeSpan delay) : base(delay)
 {
     m_CalledOn = calledon;
     m_Caller = caller;
     m_GuardedRegion = guardedRegion;
 }
        /// <summary>
        /// Initalizes the Guarded Region and determine the Minor Crystals and
        /// PremiumSpawners associated with it.
        /// </summary>
        public override void OnMapChange()
        {
            base.OnMapChange();

            m_GuardedRegion = (GuardedRegion)Region.Find(this.Location, this.Map).GetRegion(typeof(GuardedRegion));
            GetMinorCrystals();
            GetCitySpawners();
        }
        /// <summary>
        /// Loads the settings of the specific instances of this item
        /// </summary>
        /// <param name="reader"></param>
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadEncodedInt();

            m_Charges = reader.ReadEncodedInt();
            m_Desecrated = (Desecration)reader.ReadInt();
            m_Difficulty = (Difficulty)reader.ReadInt();
            m_DischargeRate = reader.ReadEncodedInt();
            m_ControllingGuild = (Guild)reader.ReadGuild();
            m_Locked = reader.ReadBool();
            m_Mobiles = reader.ReadMobileList();
            MinorCrystals = reader.ReadItemList();
            CitySpawners = reader.ReadItemList();

            m_GuardedRegion = (GuardedRegion)Region.Find(this.Location, this.Map).GetRegion(typeof(GuardedRegion));
            m_Spawner = new CitySpawner(this);
            m_DischargeTimer = new DischargeTimer(this);
            m_RelockTimer = new RelockTimer(this);
            m_LeaderDeathTimer = new LeaderDeathTimer(this);
            Leaders = new Dictionary<MinorBarrierCrystal, Mobile>();
            CheckTimers();
        }
Exemple #15
0
 public GuardCallDelayTimer(Mobile calledon, Mobile caller, GuardedRegion guardedRegion, TimeSpan delay) : base(delay)
 {
     m_CalledOn      = calledon;
     m_Caller        = caller;
     m_GuardedRegion = guardedRegion;
 }