Examples of AutoAttackStop


Examples of com.l2client.network.game.ServerPackets.AutoAttackStop

        break;
      case 0x25:
        pa = new AutoAttackStart();
        break;
      case 0x26:
        pa = new AutoAttackStop();
        break;
      case 0x27:
        pa = new SocialAction();
        break;
      case 0x28:
View Full Code Here

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

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

   */
  @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

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

    // 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

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

      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

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

          {
            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

Examples of l2p.gameserver.serverpackets.AutoAttackStop

    _stanceTask = ThreadPoolManager.getInstance().scheduleAi(new CancelAttackStanceTask(this), 15000, isPlayable());
  }

  public void stopAttackStanceTask()
  {
    broadcastPacket(new AutoAttackStop(getObjectId()));
    _stanceTask.cancel(false);
    _stanceTask = null;
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.AutoAttackStop

    final Future<?> task = _stanceTask;
    if (task != null)
    {
      task.cancel(false);
      _stanceTask = null;
      broadcastPacket(new AutoAttackStop(getObjectId()));
    }
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.AutoAttackStop

                synchronized (this) {
                  for(L2Character actor : _attackStanceTasks.keySet())
                  {
                    if((current - _attackStanceTasks.get(actor)) > 15000)
                    {
                      actor.broadcastPacket(new AutoAttackStop(actor.getObjectId()));
                      actor.getAI().setAutoAttacking(false);
                      _attackStanceTasks.remove(actor);
                    }
                  }
                }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.AutoAttackStop

            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
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.