QUOTE (DreadfullyDespized @ November 13, 2007 04:45 am) |
does it matter if the players are young status or not?...just wondering because no points gained or lost while testing the system with players in young status. |
CODE |
public static bool YoungProtection(Mobile from, Mobile target) { // newbie protection if (((target.SkillsTotal < 6000 && (from.SkillsTotal - target.SkillsTotal) > 1000) || (target.RawStatTotal <= 200 && (from.RawStatTotal - target.RawStatTotal) > 20))) return true; // dont allow young players to be challenged by experienced players // note, this will allow young players to challenge other young players if (from is PlayerMobile && target is PlayerMobile) { if (((PlayerMobile)target).Young && !((PlayerMobile)from).Young) return true; } return false; } |
CODE |
public bool CanAffectPoints(Mobile from, Mobile killer, Mobile killed, bool assumechallenge) { // uncomment this for newbie protection //if( ((killed.SkillsTotal < 6000 && (killer.SkillsTotal - killed.SkillsTotal ) > 1000) || //(killed.RawStatTotal <= 200 && (killer.RawStatTotal - killed.RawStatTotal) > 20 ) ) && m_Challenger != killer && m_Challenger != killed) return false; |