Example #1
0
        private static TimeSpan GetAFKTimeSpan(PlayerMobile pm)
        {
            TimeSpan time;

            try
            {
                time = DateTime.Now - DateTime.Parse(ProTag.Get(pm, "AFK Time"));
            }
            catch
            {
                time = TimeSpan.Zero;
            }

            return(time);
        }
Example #2
0
////////////////////////////DOC ALLOW ONLY IF QUEST DONE///////////////////////////////////////////////////////
        public override bool OnEquip(Mobile from)
        {
            PlayerMobile mobile = (PlayerMobile)from;

            string staff  = ProTag.Get(mobile, "Staff");
            int    result = int.Parse(staff);

            if (result == 1)         //Check to see if bound to a serial.
            {
                return(true);        //player finished quest and can equip it.
            }

            else
            {
                from.SendMessage("You have not completed this quest and cannot equip the Ultimate Staff of Power.");
                return(false);                //Disallow any one else from equiping the item.
            }
        }
Example #3
0
 private static string GetAFKMessage(PlayerMobile pm)
 {
     return(ProTag.Get(pm, "AFK Message"));
 }
Example #4
0
 private static string GetAFKLocation(PlayerMobile pm)
 {
     return(ProTag.Get(pm, "AFK Location"));
 }
Example #5
0
 private static bool isAFK(PlayerMobile pm)
 {
     return(ProTag.Get(pm, "AFK Time") != null);
 }