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); }
////////////////////////////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. } }
private static string GetAFKMessage(PlayerMobile pm) { return(ProTag.Get(pm, "AFK Message")); }
private static string GetAFKLocation(PlayerMobile pm) { return(ProTag.Get(pm, "AFK Location")); }
private static bool isAFK(PlayerMobile pm) { return(ProTag.Get(pm, "AFK Time") != null); }