Package com.l2client.network.game.ClientPackets

Examples of com.l2client.network.game.ClientPackets.AttackRequest


    if(gameSocket != null)
      gameSocket.setKey(key);   
  }

  public void sendAction(int target, float x, float y, float z, boolean shiftclick, boolean noAttack) {
    GameClientPacket p = new AttackRequest(target, x, y, z, shiftclick, noAttack);
    sendGamePacket(p);   
  }
View Full Code Here


//    // only execute on button/key release
    if (!isPressed) {
      ClientFacade f = Singleton.get().getClientFacade();
      TargetComponent com = (TargetComponent) Singleton.get().getEntityManager().getComponent(f.getCharHandler().getSelectedObjectId(), TargetComponent.class);
      if(com != null){
        GameClientPacket p = new AttackRequest(com.getCurrentTarget(), com.pos.x, com.pos.y, com.pos.z, false, false);
        f.sendGamePacket(p);   
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.l2client.network.game.ClientPackets.AttackRequest

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.