Esempio n. 1
0
        public AntiRailGump(Mobile from, string strNotice, string strSkill)
            : base(50, 50)
        {
            m_Mobile    = from;
            m_strNotify = strNotice;
            m_strSkill  = strSkill;

            //close any other RTT gumps
            from.CloseGump(typeof(AntiRailGump));

            // notify staff
            CommandHandlers.BroadcastMessage(AccessLevel.Administrator,
                                             0x482,
                                             String.Format("{0}({1}) is taking the RTT ({2}).", m_Mobile.Name, m_Mobile.Serial, strSkill));

            SetupGump();

            m_AntiRailTestLaunched = DateTime.UtcNow;

            m_timeout = new AntiRailTimer(m_Mobile, TimeSpan.FromSeconds(Utility.RandomList(90, 120, 180)));
            m_timeout.Start();
        }