예제 #1
0
        public override void OnDoubleClick(Mobile m)
        {
            if (_NextUse > DateTime.UtcNow)
            {
                m.SendLocalizedMessage(1072529, String.Format("{0}\t{1}", ((int)(_NextUse - DateTime.UtcNow).TotalSeconds).ToString(), "seconds"));
            }
            else if (m is PlayerMobile)
            {
                var quest = QuestHelper.GetQuest <CatchMeIfYouCanQuest>((PlayerMobile)m);

                if (quest != null && SpellHelper.CheckCanTravel(m) && _Timer == null && WarpBounds.Contains(m.Location))
                {
                    TeleportTo(m);
                }
            }
        }