Examples of reduceCurrentHp()


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

    while(it.hasNext())
    {
      try
      {
        L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
        target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar);
        target = null;
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
View Full Code Here

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

        obj = plyr;
      }
      if(obj != null && obj.isCharacter())
      {
        L2Character target = (L2Character) obj;
        target.reduceCurrentHp(target.getMaxHp() + 1, activeChar, null, true, true, true, false);
      }
      else
      {
        activeChar.sendPacket(Msg.INVALID_TARGET);
      }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.reduceCurrentHp()

      for(int i = 0; i < _crystaline.length; i++)
      {
        L2NpcInstance npc = _crystaline[i];
        if(npc != null)
        {
          npc.reduceCurrentHp(npc.getMaxHp() + 1, npc, null, true, true, false, false);
        }
      }
    }
  }
View Full Code Here

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

        reflected = target.checkReflectSkill(activeChar, this);
        realTarget = reflected ? activeChar : target;
        Formulas.AttackInfo info = Formulas.calcMagicDam(activeChar, realTarget, this, sps);
        if (info.damage >= 1)
        {
          realTarget.reduceCurrentHp(info.damage, info.reflectableDamage, activeChar, this, true, true, false, true, false, false, true);
        }
        getEffects(activeChar, target, getActivateRate() > 0, false, reflected);
      }
    }
    if (isSuicideAttack())
View Full Code Here

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

        reflected = target.checkReflectSkill(activeChar, this);
        realTarget = reflected ? activeChar : target;
        Formulas.AttackInfo info = Formulas.calcMagicDam(activeChar, realTarget, this, sps);
        if (info.damage >= 1)
        {
          realTarget.reduceCurrentHp(info.damage, info.reflectableDamage, activeChar, this, true, true, false, true, false, false, true);
        }
        getEffects(activeChar, target, getActivateRate() > 0, false, reflected);
      }
    }
    if (isSuicideAttack())
View Full Code Here

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

        double lethal2 = _lethal2 * mult;
        if ((lethal1 > 0) && Rnd.chance(lethal1))
        {
          if (realTarget.isPlayer())
          {
            realTarget.reduceCurrentHp(realTarget.getCurrentCp(), 0, activeChar, this, true, true, false, true, false, false, true);
            realTarget.sendPacket(SystemMsg.LETHAL_STRIKE);
            activeChar.sendPacket(SystemMsg.YOUR_LETHAL_STRIKE_WAS_SUCCESSFUL);
          }
          else if (realTarget.isNpc() && !realTarget.isLethalImmune())
          {
View Full Code Here

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

            realTarget.sendPacket(SystemMsg.LETHAL_STRIKE);
            activeChar.sendPacket(SystemMsg.YOUR_LETHAL_STRIKE_WAS_SUCCESSFUL);
          }
          else if (realTarget.isNpc() && !realTarget.isLethalImmune())
          {
            realTarget.reduceCurrentHp(realTarget.getCurrentHp() / 2, 0, activeChar, this, true, true, false, true, false, false, true);
            activeChar.sendPacket(SystemMsg.YOUR_LETHAL_STRIKE_WAS_SUCCESSFUL);
          }
        }
        else if ((lethal2 > 0) && Rnd.chance(lethal2))
        {
View Full Code Here

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

        }
        else if ((lethal2 > 0) && Rnd.chance(lethal2))
        {
          if (realTarget.isPlayer())
          {
            realTarget.reduceCurrentHp((realTarget.getCurrentHp() + realTarget.getCurrentCp()) - 1, 0, activeChar, this, true, true, false, true, false, false, true);
            realTarget.sendPacket(SystemMsg.LETHAL_STRIKE);
            activeChar.sendPacket(SystemMsg.YOUR_LETHAL_STRIKE_WAS_SUCCESSFUL);
          }
          else if (realTarget.isNpc() && !realTarget.isLethalImmune())
          {
View Full Code Here

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

            realTarget.sendPacket(SystemMsg.LETHAL_STRIKE);
            activeChar.sendPacket(SystemMsg.YOUR_LETHAL_STRIKE_WAS_SUCCESSFUL);
          }
          else if (realTarget.isNpc() && !realTarget.isLethalImmune())
          {
            realTarget.reduceCurrentHp(realTarget.getCurrentHp() - 1, 0, activeChar, this, true, true, false, true, false, false, true);
            activeChar.sendPacket(SystemMsg.YOUR_LETHAL_STRIKE_WAS_SUCCESSFUL);
          }
        }
        getEffects(activeChar, target, getActivateRate() > 0, false, reflected);
      }
View Full Code Here

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

        if (getPower() > 0)
        {
          AttackInfo info = Formulas.calcPhysDam(activeChar, realTarget, this, false, false, ss, false);
          if (info.lethal_dmg > 0)
          {
            realTarget.reduceCurrentHp(info.lethal_dmg, info.reflectableDamage, activeChar, this, true, true, false, false, false, false, false);
          }
          realTarget.reduceCurrentHp(info.damage, info.reflectableDamage, activeChar, this, true, true, false, true, false, false, true);
          if (!reflected)
          {
            realTarget.doCounterAttack(this, activeChar, false);
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.