Examples of checkCondition()


Examples of l2p.gameserver.model.L2Skill.checkCondition()

            if(curMp < 66 && Rnd.chance((100 - curMp) / 3))
            {
              skill = SkillTable.getInstance().getInfo(Recharge, getRechargeLevel());
            }
          }
          if(skill != null && skill.checkCondition(L2PetBabyInstance.this, owner, false, !isFollow(), true))
          {
            setTarget(owner);
            getAI().Cast(skill, owner, false, !isFollow());
            return skill;
          }
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

    }
    else
    {
      skill = SkillTable.getInstance().getInfo(2099, 1);
    }
    if ((skill != null) && skill.checkCondition(activeChar, activeChar, false, false, true))
    {
      activeChar.getAI().Cast(skill, activeChar, false, true);
    }
    return true;
  }
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

        skill = (Skill) nextAction_arg0;
        target = (Creature) nextAction_arg1;
        _forceUse = nextAction_arg2;
        _dontMove = nextAction_arg3;
        clearNextAction();
        if (!skill.checkCondition(actor, target, _forceUse, _dontMove, true))
        {
          if ((skill.getNextAction() == NextAction.ATTACK) && !actor.equals(target))
          {
            setNextAction(PlayableAI.nextAction.ATTACK, target, null, _forceUse, false);
            return setNextIntention();
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

    }
    for (int i = 0; i < skills.length; i++)
    {
      Skill skill = skills[i];
      Creature aimingTarget = skill.getAimingTarget(player, player.getTarget());
      if (skill.checkCondition(player, aimingTarget, ctrl, false, true))
      {
        player.getAI().Cast(skill, aimingTarget, ctrl, false);
      }
      else if (i == 0)
      {
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

            if ((curMp < 66) && Rnd.chance((100 - curMp) / 2))
            {
              skill = SkillTable.getInstance().getInfo(Recharge, getRechargeLevel());
            }
          }
          if ((skill != null) && skill.checkCondition(PetBabyInstance.this, owner, false, !isFollowMode(), true))
          {
            setTarget(owner);
            getAI().Cast(skill, owner, false, !isFollowMode());
            return skill;
          }
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

    if (skill == null)
    {
      player.sendActionFailed();
      return false;
    }
    if (skill.checkCondition(player, target, false, false, true))
    {
      player.setUseSeed(seedId);
      player.getAI().Cast(skill, target);
    }
    return true;
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

    {
      player.sendPacket(SystemMsg.THAT_IS_AN_INCORRECT_TARGET);
      return false;
    }
    final Skill skill = SkillTable.getInstance().getInfo(2098, 1);
    if ((skill != null) && skill.checkCondition(player, monster, false, false, true))
    {
      player.getAI().Cast(skill, monster);
      return true;
    }
    return false;
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

      if (skill == null)
      {
        continue;
      }
      Creature aimingTarget = skill.getAimingTarget(summon, activeChar.getTarget());
      if (skill.checkCondition(summon, aimingTarget, _ctrlPressed, _shiftPressed, true))
      {
        summon.getAI().Cast(skill, aimingTarget, _ctrlPressed, _shiftPressed);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.Skill.checkCondition()

        activeChar.sendPacket(Msg.YOUR_TARGET_IS_OUT_OF_RANGE);
        activeChar.sendActionFailed();
        return;
      }
      Creature target = skill.getAimingTarget(activeChar, activeChar.getTarget());
      if (skill.checkCondition(activeChar, target, _ctrlPressed, _shiftPressed, true))
      {
        activeChar.setGroundSkillLoc(_loc);
        activeChar.getAI().Cast(skill, target, _ctrlPressed, _shiftPressed);
      }
      else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.