Examples of abortAttack()


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

      {
        npc2.setAttackingBodypart();

        double _dmg2 = Formulas.calcPhysDam(npc2, npc1, null, _shld2, _crit2, false, false);
        dmg2 += _dmg2;
        npc2.abortAttack();
      }
    }

    miss1 /= 100;
    miss2 /= 100;
View Full Code Here

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

     
      /*
       * if(item.getItem().getType2() == L2Item.TYPE2_WEAPON) { activeChar.checkIfWeaponIsAllowed(); }
       */
     
      activeChar.abortAttack();
     
      activeChar.sendPacket(new EtcStatusUpdate(activeChar));
      // if an "invisible" item has changed (Jewels, helmet),
      // we dont need to send broadcast packet to all other users
      if (!((item.getItem().getBodyPart() & L2Item.SLOT_HEAD) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_NECK) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_L_EAR) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_R_EAR) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_L_FINGER) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_R_FINGER) > 0))
View Full Code Here

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

                  else
                  {
                    player.setCurrentHp(0);
                    if (player.isInOlympiadMode())
                    {
                      player.abortAttack();
                      player.abortCast();
                      player.getStatus().stopHpMpRegeneration();
                    }
                    else
                      player.doDie(activeChar);
View Full Code Here

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

                else
                {
                  player.setCurrentHp(0);
                  if (player.isInOlympiadMode())
                  {
                    player.abortAttack();
                    player.abortCast();
                    player.getStatus().stopHpMpRegeneration();
                    // player.setIsDead(true);
                    player.setIsPendingRevive(true);
                    if (player.getPet() != null)
View Full Code Here

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

        {
          owner.abortCast();
        }
        if(owner.isAttackingNow())
        {
          owner.abortAttack();
        }
        unEquipItemInSlot(PAPERDOLL_RHAND);
        unEquipItemInSlot(PAPERDOLL_LHAND);
        unEquipItemInSlot(PAPERDOLL_LRHAND);
      }
View Full Code Here

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

    {
      return;
    }
    if(actor.isAttackingNow() && getAttackTarget() == object)
    {
      actor.abortAttack(true, true);
    }
    if(actor.isCastingNow() && getAttackTarget() == object)
    {
      actor.abortCast(true);
    }
View Full Code Here

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

  protected void onEvtDead(L2Character killer)
  {
    L2Character actor = getActor();
    if(actor != null)
    {
      actor.abortAttack(true, true);
      actor.abortCast(true);
      actor.stopMove();
      actor.broadcastPacket(new Die(actor));
    }
    setIntention(CtrlIntention.AI_INTENTION_IDLE);
View Full Code Here

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

      cha.sendDisarmMessage(uneq);
      if(weapon != null && uneq == weapon)
      {
        uneq.setChargedSpiritshot(L2ItemInstance.CHARGED_NONE);
        uneq.setChargedSoulshot(L2ItemInstance.CHARGED_NONE);
        cha.abortAttack(true, true);
        cha.abortCast(true);
      }
    }
    cha.refreshExpertisePenalty();
    cha.broadcastUserInfo(true);
View Full Code Here

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

      // Remove Hero weapons
      L2ItemInstance wpn = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND);
      if(wpn != null && wpn.isHeroWeapon())
      {
        player.getInventory().unEquipItem(wpn);
        player.abortAttack(true, true);
        player.refreshExpertisePenalty();
      }
      // remove bsps/sps/ss automation
      ConcurrentSkipListSet<Integer> activeSoulShots = player.getAutoSoulShot();
      for(int itemId : activeSoulShots)
View Full Code Here

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

      L2Player player = cw.getOnlineOwner();
      if(player != null)
      {
        // Remove from player
        _log.info("CursedWeaponsManager: " + cw.getName() + " being removed online from " + player + ".");
        player.abortAttack(true, true);
        player.setKarma(cw.getPlayerKarma());
        player.setPkKills(cw.getPlayerPkKills());
        player.setCursedWeaponEquippedId(0);
        player.setTransformation(0);
        player.setTransformationName(null);
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.