Exemplo n.º 1
0
 SafeResContext() : base(4484)
 {
     s_SafeResContext = this;
     Name             = "Safe Resurrection System version 2.2, by Xanthos";
     Internalize();
     Visible        = false;
     Movable        = false;
     s_SafeResTimer = new SafeResTimer();
     World.Broadcast(SafeResConfig.MessageHue, true, "{0} is now enabled.", Name);
 }
Exemplo n.º 2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            switch (reader.ReadInt())   //version
            {
            case 0:                     // Expire everyone on start up
            {
                for (int count = reader.ReadInt(), i = 0; i < count; i++)
                {
                    Mobile       mobile = reader.ReadMobile();
                    PlayerMobile player;

                    if (mobile != null && (player = mobile as PlayerMobile) != null)
                    {
                        SafeResTimer.UnblessPlayer(player);
                    }
                }
                break;
            }
            }
        }
Exemplo n.º 3
0
 public SafeResContext(Serial serial) : base(serial)
 {
     s_SafeResContext = this;
     s_SafeResTimer   = new SafeResTimer();
 }