Example #1
0
        public static void StartChestDisarmTimer(Mobile from, TreasureMapChest chest)
        {
            if (_Table == null)
            {
                _Table = new Dictionary <Mobile, RemoveTrapTimer>();
            }

            _Table[from] = new RemoveTrapTimer(from, chest, from.Skills[SkillName.RemoveTrap].Value >= 100);
        }
Example #2
0
        public static void EndChestDisarmTimer(Mobile from)
        {
            if (_Table != null && _Table.ContainsKey(from))
            {
                RemoveTrapTimer timer = _Table[from];

                if (timer != null)
                {
                    timer.Stop();
                }

                _Table.Remove(from);

                if (_Table.Count == 0)
                {
                    _Table = null;
                }
            }
        }