Package be.demmel.jgws.packets.gameserver.outbound

Examples of be.demmel.jgws.packets.gameserver.outbound.P391_InstanceLoadSpawnPoint


  @Override
  public void handlePacket(ChannelHandlerContext ctx, P129_RequestSpawnPoint packet, GameServerSession serverData, List<QueueAction> actions) throws Exception {
    CharacterData character = serverData.getCurrentCharacter();

    P391_InstanceLoadSpawnPoint instanceLoadSpawnPoint = new P391_InstanceLoadSpawnPoint();
    instanceLoadSpawnPoint.setMapFile(character.getGameFileID());
    Vector2 spawn = new Vector2(character.getPosition().getX(), character.getPosition().getY());
    instanceLoadSpawnPoint.setPosition(spawn);
    instanceLoadSpawnPoint.setPlane(character.getPosition().getZ());
    ctx.write(instanceLoadSpawnPoint);
  }
View Full Code Here

TOP

Related Classes of be.demmel.jgws.packets.gameserver.outbound.P391_InstanceLoadSpawnPoint

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.