Examples of reduceCurrentMp()


Examples of com.l2jfrozen.gameserver.model.L2Character.reduceCurrentMp()

      else
      {
        double damage = Formulas.getInstance().calcManaDam(activeChar, target, skill, sps, bss);

        double mp = (damage > target.getCurrentMp() ? target.getCurrentMp() : damage);
        target.reduceCurrentMp(mp);

        if(damage > 0)
          if(target.isSleeping())
            target.stopSleeping(null);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Character.reduceCurrentMp()

    {
      setChameleon(retval);
    }
    else
    {
      effected.reduceCurrentMp(manaDam);
    }

    return retval;
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.reduceCurrentMp()

        {
          caster.sendPacket(new SystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
          return false;
        }

        caster.reduceCurrentMp(mpConsume);

        if(cha instanceof L2PlayableInstance)
        {
          if(!(cha instanceof L2Summon
            && ((L2Summon) cha).getOwner() == caster))
View Full Code Here

Examples of l2p.gameserver.model.L2Character.reduceCurrentMp()

    if(mpConsume > effector.getCurrentMp())
    {
      effector.sendPacket(Msg.NOT_ENOUGH_MP);
      return false;
    }
    effector.reduceCurrentMp(mpConsume, effector);
    // Использовать разрешено только скиллы типа TARGET_ONE
    for(L2Character cha : L2World.getAroundCharacters(symbol, getSkill().getSkillRadius(), 200))
    {
      if(cha.getEffectList().getEffectsBySkill(skill) == null && skill.checkTarget(effector, cha, cha, false, false) == null)
      {
View Full Code Here

Examples of l2p.gameserver.model.L2Player.reduceCurrentMp()

    {
      player.sendPacket(Msg.NOT_ENOUGH_MP, new SystemMessage(SystemMessage.THE_EFFECT_OF_S1_HAS_BEEN_REMOVED).addSkillName(getSkill().getId(), getSkill().getDisplayLevel()));
      player.setRelax(false);
      return false;
    }
    player.reduceCurrentMp(manaDam, null);
    return true;
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.Creature.reduceCurrentMp()

    if (mpConsume > effector.getCurrentMp())
    {
      effector.sendPacket(Msg.NOT_ENOUGH_MP);
      return false;
    }
    effector.reduceCurrentMp(mpConsume, effector);
    for (Creature cha : World.getAroundCharacters(symbol, getSkill().getSkillRadius(), 200))
    {
      if (!cha.isDoor() && (cha.getEffectList().getEffectsBySkill(skill) == null) && (skill.checkTarget(effector, cha, cha, false, false) == null))
      {
        if (skill.isOffensive() && !GeoEngine.canSeeTarget(symbol, cha, false))
View Full Code Here

Examples of lineage2.gameserver.model.Player.reduceCurrentMp()

    finally
    {
      activeChar.getInventory().writeUnlock();
    }
    activeChar.resetWaitSitTime();
    activeChar.reduceCurrentMp(recipe.getMpConsume(), null);
    RecipeComponent product = recipe.getRandomProduct();
    int itemId = product.getItemId();
    long itemsCount = product.getCount();
    int success = 0;
    if (Rnd.chance(recipe.getSuccessRate()))
View Full Code Here

Examples of lineage2.gameserver.model.Player.reduceCurrentMp()

    }
    finally
    {
      buyer.getInventory().writeUnlock();
    }
    manufacturer.reduceCurrentMp(recipe.getMpConsume(), null);
    manufacturer.sendStatusUpdate(false, false, StatusUpdateField.CUR_MP);
    RecipeTemplate.RecipeComponent product = recipe.getRandomProduct();
    int itemId = product.getItemId();
    long itemsCount = product.getCount();
    if (Rnd.chance(recipe.getSuccessRate()))
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Character.reduceCurrentMp()

      } else
      {
        double damage = Formulas.getInstance().calcManaDam(activeChar, target, skill, ss, bss);

        double mp = ( damage > target.getCurrentMp() ? target.getCurrentMp() : damage);
        target.reduceCurrentMp(mp);
        if (damage > 0)
          if (target.isSleeping()) target.stopSleeping(null);

        StatusUpdate sump = new StatusUpdate(target.getObjectId());
        sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
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.