Examples of GameClientPacket


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

    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

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

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

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

//    if (!isPressed) {
      ClientFacade f = Singleton.get().getClientFacade();
      TargetComponent com = (TargetComponent) Singleton.get().getEntityManager().getComponent(f.getCharHandler().getSelectedObjectId(), TargetComponent.class);
      if(com != null){
        //TODO shift click and ctrl click recognition
        GameClientPacket p = new RequestMagicSkillUse(id, false, false);
        f.sendGamePacket(p);   
      }
//    }
  }
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.