Beispiel #1
0
        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();
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
 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();
 }