public new static bool CheckAvailability(GamePlayer player, GameLiving target) { if (target == null) { return(false); } if (!CheckNamedGuard(target)) { return(false); } return(AbstractTask.CheckAvailability(player, target, CHANCE)); }
public new static bool CheckAvailability(GamePlayer player, GameLiving target) { if (target == null) { return(false); } if (target is CraftNPC) { if (((target as CraftNPC).TheCraftingSkill == player.CraftingPrimarySkill)) { return(AbstractTask.CheckAvailability(player, target, CHANCE)); } } return(false); //else return false }
public new static bool CheckAvailability(GamePlayer player, GameLiving target) { if (target == null) { return(false); } if (target is GameTrainer || target is GameMerchant || target.Name.IndexOf("Crier") >= 0) { return(AbstractTask.CheckAvailability(player, target, CHANCE)); } else { return(false); } }