Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.AutoAttackStop


   */
  @Override
  protected void onEvtStunned(L2Character attacker)
  {
    // Stop the actor auto-attack client side by sending Server->Client packet AutoAttackStop (broadcast)
    _actor.broadcastPacket(new AutoAttackStop(_actor.getObjectId()));

    if(AttackStanceTaskManager.getInstance().getAttackStanceTask(_actor))
    {
      AttackStanceTaskManager.getInstance().removeAttackStanceTask(_actor);
    }
View Full Code Here


   */
  @Override
  protected void onEvtSleeping(L2Character attacker)
  {
    // Stop the actor auto-attack client side by sending Server->Client packet AutoAttackStop (broadcast)
    _actor.broadcastPacket(new AutoAttackStop(_actor.getObjectId()));

    if(AttackStanceTaskManager.getInstance().getAttackStanceTask(_actor))
    {
      AttackStanceTaskManager.getInstance().removeAttackStanceTask(_actor);
    }
View Full Code Here

    // Stop an AI Follow Task
    stopFollow();

    if(!AttackStanceTaskManager.getInstance().getAttackStanceTask(_actor))
    {
      _actor.broadcastPacket(new AutoAttackStop(_actor.getObjectId()));
    }

    // Launch actions corresponding to the Event Think
    onEvtThink();
  }
View Full Code Here

      if (!AttackStanceTaskManager.getInstance().getAttackStanceTask(_actor) && isAutoAttacking)
        AttackStanceTaskManager.getInstance().addAttackStanceTask(_actor);
    }
    else if (isAutoAttacking)
    {
      _actor.broadcastPacket(new AutoAttackStop(_actor.getObjectId()));
      setAutoAttacking(false);
    }
  }
View Full Code Here

          {
            for (L2Character actor : _attackStanceTasks.keySet())
            {
              if ((current - _attackStanceTasks.get(actor)) > 15000)
              {
                actor.broadcastPacket(new AutoAttackStop(actor.getObjectId()));
                if (actor instanceof L2PcInstance && ((L2PcInstance) actor).getPet() != null)
                  ((L2PcInstance) actor).getPet().broadcastPacket(new AutoAttackStop(((L2PcInstance) actor).getPet().getObjectId()));
                actor.getAI().setAutoAttacking(false);
                _attackStanceTasks.remove(actor);
              }
            }
          }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.AutoAttackStop

Copyright © 2018 www.massapicom. 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.