public void sendPlayerSpawn(WorldClient receiverClient, WorldClient otherClient, UInt16 viewId) { PacketContent pak = new PacketContent(); byte[] spawnPaket = new BootingHelperRsi().generatePlayerSpawnPacket(otherClient, receiverClient.playerData.assignSpawnIdCounter()); pak.addByteArray(spawnPaket); pak.addUint16(viewId, 1); pak.addByte(0x00); receiverClient.messageQueue.addObjectMessage(pak.returnFinalPacket(), false); receiverClient.FlushQueue(); }
public void processSpawn() { if (Store.currentClient.playerData.getDistrict() != "la") { // REFACTOR!!!! byte[] rsiObject = new BootingHelperRsi().generateSelfSpawnPacket(Store.currentClient); //Store.world.sendViewPacketToAllPlayers(new BootingHelperRsi().generatePlayerSpawnPacket(Store.currentClient), Store.currentClient.playerData.getCharID(), NumericalUtils.ByteArrayToUint16(Store.currentClient.playerInstance.getGoid(), 1), Store.currentClient.playerData.getEntityId()); Store.currentClient.messageQueue.addObjectMessage(rsiObject, false); Store.currentClient.playerData.setOnWorld(true); } }
public void processSpawn() { if (Store.currentClient.playerData.getDistrict()!="la") { // REFACTOR!!!! byte[] rsiObject = new BootingHelperRsi().generateSelfSpawnPacket(Store.currentClient); //Store.world.sendViewPacketToAllPlayers(new BootingHelperRsi().generatePlayerSpawnPacket(Store.currentClient), Store.currentClient.playerData.getCharID(), NumericalUtils.ByteArrayToUint16(Store.currentClient.playerInstance.getGoid(), 1), Store.currentClient.playerData.getEntityId()); Store.currentClient.messageQueue.addObjectMessage(rsiObject, false); Store.currentClient.playerData.setOnWorld(true); } }
public void sendPlayerSpawn(WorldClient receiverClient, WorldClient otherClient, UInt16 viewId) { PacketContent pak = new PacketContent(); byte[] spawnPaket = new BootingHelperRsi().generatePlayerSpawnPacket(otherClient, receiverClient.playerData.assignSpawnIdCounter()); pak.addByteArray(spawnPaket); pak.addUint16(viewId,1); pak.addByte(0x00); receiverClient.messageQueue.addObjectMessage(pak.returnFinalPacket(),false); receiverClient.flushQueue(); }