Exemple #1
0
        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));
        }
Exemple #2
0
        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
        }
Exemple #3
0
        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);
            }
        }