Examples of reduceCurrentHp()


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

    if(target != null)
    {
      if(target instanceof L2PcInstance)
      {
        target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar);
        filename = "charmanage.htm";
      }
      else if(Config.L2JMOD_CHAMPION_ENABLE && target.isChampion())
      {
        target.reduceCurrentHp(target.getMaxHp() * Config.L2JMOD_CHAMPION_HP + 1, activeChar);
View Full Code Here

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

        Formulas.getInstance();
        if(skill.getLethalChance2() > 0 && chance < Formulas.calcLethal(activeChar, target, skill.getLethalChance2()))
        {
          if(target instanceof L2NpcInstance)
          {
            target.reduceCurrentHp(target.getCurrentHp() - 1, activeChar);
            activeChar.sendPacket(new SystemMessage(SystemMessageId.LETHAL_STRIKE));
          }
        }
        else
        {
View Full Code Here

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

        target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar);
        filename = "charmanage.htm";
      }
      else if(Config.L2JMOD_CHAMPION_ENABLE && target.isChampion())
      {
        target.reduceCurrentHp(target.getMaxHp() * Config.L2JMOD_CHAMPION_HP + 1, activeChar);
      }
      else
      {
        target.reduceCurrentHp(target.getMaxHp() + 1, activeChar);
      }
View Full Code Here

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

          Formulas.getInstance();
          if(skill.getLethalChance1() > 0 && chance < Formulas.calcLethal(activeChar, target, skill.getLethalChance1()))
          {
            if(target instanceof L2NpcInstance)
            {
              target.reduceCurrentHp(target.getCurrentHp() / 2, activeChar);
              activeChar.sendPacket(new SystemMessage(SystemMessageId.LETHAL_STRIKE));
            }
          }
        }
      }
View Full Code Here

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

      {
        target.reduceCurrentHp(target.getMaxHp() * Config.L2JMOD_CHAMPION_HP + 1, activeChar);
      }
      else
      {
        target.reduceCurrentHp(target.getMaxHp() + 1, activeChar);
      }
    }
    else
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
View Full Code Here

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

              sm = null;
            }
          }
        }

        target.reduceCurrentHp(damage, activeChar);
      }
      target = null;
    }
   
    if (bss){
View Full Code Here

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

              activeChar.sendPacket(sm);
            }
          }
        }
       
        target.reduceCurrentHp(damage, activeChar);
      }
     
      // Check to see if we should do the decay right after the cast
      if (target.isDead() && getTargetType() == SkillTargetType.TARGET_CORPSE_MOB && target instanceof L2NpcInstance)
      {
View Full Code Here

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

              }
              player = null;
            }
            else if (target instanceof L2MonsterInstance) // If is a monster remove first damage and after 50% of current hp
            {
              target.reduceCurrentHp(damage, activeChar);
              target.reduceCurrentHp(target.getCurrentHp() / 2, activeChar);
            }
          }
          else
          // 2nd lethal effect activate (cp,hp to 1 or if target is npc then hp to 1)
View Full Code Here

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

              player = null;
            }
            else if (target instanceof L2MonsterInstance) // If is a monster remove first damage and after 50% of current hp
            {
              target.reduceCurrentHp(damage, activeChar);
              target.reduceCurrentHp(target.getCurrentHp() / 2, activeChar);
            }
          }
          else
          // 2nd lethal effect activate (cp,hp to 1 or if target is npc then hp to 1)
          {
View Full Code Here

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

          else
          // 2nd lethal effect activate (cp,hp to 1 or if target is npc then hp to 1)
          {
            // If is a monster damage is (CurrentHp - 1) so HP = 1
            if (target instanceof L2NpcInstance)
              target.reduceCurrentHp(target.getCurrentHp() - 1, activeChar);
            else if (target instanceof L2PcInstance) // If is a active player set his HP and CP to 1
            {
              L2PcInstance player = (L2PcInstance) target;
              if (!player.isInvul())
              {
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.