Examples of checkCondition()


Examples of com.l2jfrozen.gameserver.model.L2Skill.checkCondition()

                if(skill == null){
                  _log.warning("ATTENTION: Skill "+e.getKey()+" cannot be loaded.. Verify Skill definition into data/stats/skill folder...");
                  continue;
                }
               
                if (skill.checkCondition(temp, temp, false))
                  if (temp.getFirstEffect(e.getKey()) == null){
                   
                    skill.getEffects(temp, temp);
                   
                  }
View Full Code Here

Examples of l2p.gameserver.model.L2Skill.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 l2p.gameserver.model.L2Skill.checkCondition()

          {
            stopAttackAction();
            return;
          }
          L2Skill skill = _offensiveSkills.get(Rnd.get(_offensiveSkills.size()));
          if(Rnd.chance(_type.chance) && skill.checkCondition(owner, target, false, false, true))
          {
            owner.altUseSkill(skill, target);
            return;
          }
        }
View Full Code Here

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

        skill = (L2Skill) nextAction_arg0;
        target = (L2Character) 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(l2p.gameserver.ai.L2PlayableAI.nextAction.ATTACK, target, null, _forceUse, false);
            return setNextIntention();
View Full Code Here

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

        }
        return;
      }
      try
      {
        if(Rnd.chance(50) && skill.checkCondition(owner, target, false, false, true))
        {
          owner.altUseSkill(skill, target);
          owner.broadcastPacket(new MagicSkillUse(owner, target, skill.getId(), 1, 0, 0));
        }
      }
View Full Code Here

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

        activeChar.sendPacket(Msg.YOUR_TARGET_IS_OUT_OF_RANGE);
        activeChar.sendActionFailed();
        return;
      }
      L2Character 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

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

    if (player.isCastingNow() || player.isActionsDisabled())
    {
      return false;
    }
    L2Skill skill = SkillTable.getInstance().getInfo(_skillId, 1);
    if (!skill.checkCondition(player, player, false, true, true))
    {
      return false;
    }
    if (player.getPet() != null)
    {
View Full Code Here

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

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

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

    {
      player.sendPacket(Msg.THAT_IS_THE_INCORRECT_TARGET);
      return;
    }
    L2Skill skill = SkillTable.getInstance().getInfo(2098, 1);
    if(skill != null && skill.checkCondition(player, target, false, false, true))
    {
      player.getAI().Cast(skill, target);
    }
    else
    {
View Full Code Here

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

    {
      activeChar.sendPacket(Msg.THE_PET_IS_TOO_HIGH_LEVEL_TO_CONTROL);
      return;
    }
    L2Character aimingTarget = skill.getAimingTarget(pet, activeChar.getTarget());
    if(skill.checkCondition(pet, aimingTarget, _ctrlPressed, _shiftPressed, true))
    {
      pet.getAI().Cast(skill, aimingTarget, _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.