Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. How to send a packet?

How to send a packet?

Scheduled Pinned Locked Moved Solved ScriptAPI
18 Posts 10 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DreamWasFuckedD DreamWasFucked

    import ByteArrayOutputStream, DataOutputStream, PacketBuffer, Unpooled, C17PacketCustomPayload, IOException, C03PacketPlayer

            if(packet instanceof C03PacketPlayer) {
                if(mc.thePlayer.ticksExisted % 15 == 0) { 
                  try {
                      b = new ByteArrayOutputStream();
                      out = new DataOutputStream(b);
                      out.writeUTF(mc.thePlayer.getGameProfile().getName());
                      buf = new PacketBuffer(Unpooled.buffer());
                      buf.writeBytes(b.toByteArray());
                      mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf));
                    } catch (IOException) {
    
                    }
                }
            }
    
    ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #3

    @auto-reply-bot what are the vars in liquid script that i need to use to import those though?

    DreamWasFuckedD 1 Reply Last reply
    0
    • ? A Former User

      @auto-reply-bot what are the vars in liquid script that i need to use to import those though?

      DreamWasFuckedD Offline
      DreamWasFuckedD Offline
      DreamWasFucked
      wrote on last edited by
      #4

      var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream")
      var DataOutputStream = Java.type("java.io.DataOutputStream")
      ...
      https://google.com

      ? 1 Reply Last reply
      0
      • DreamWasFuckedD DreamWasFucked

        var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream")
        var DataOutputStream = Java.type("java.io.DataOutputStream")
        ...
        https://google.com

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #5

        @auto-reply-bot morez vars plz

        FaaatPotatoF ? 2 Replies Last reply
        0
        • ? A Former User

          @auto-reply-bot morez vars plz

          FaaatPotatoF Offline
          FaaatPotatoF Offline
          FaaatPotato
          wrote on last edited by FaaatPotato
          #6

          @ez-chan-osu

          you can google it easily

          it's like:

          var [varname] = Java.type("thing you wanna import -> lang object")
          

          look after the lang object.

          i googled 1 of em and instantly found them.

          same with PacketBuffer, and the rest that is comming from minecraft

          1 Reply Last reply
          0
          • ? A Former User

            @auto-reply-bot morez vars plz

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by A Former User
            #7

            @ez-chan-osu ```

            var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream")
            var DataOutputStream = Java.type("java.io.DataOutputStream")
            var PacketBuffer = Java.type("net.minecraft.network.PacketBuffer")
            var Unpooled = Java.type("io.netty.buffer.Unpooled")
            var C17PacketCustomPayload = Java.type("net.minecraft.network.play.client.C17PacketCustomPayload")
            var IOException = Java.type("java.io.IOException")
            var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer")
            //and for the module, just paste what auto reply bot said, 
                    if(packet instanceof C03PacketPlayer) {
                        if(mc.thePlayer.ticksExisted % 15 == 0) { 
                          try {
                              b = new ByteArrayOutputStream();
                              out = new DataOutputStream(b);
                              out.writeUTF(mc.thePlayer.getGameProfile().getName());
                              buf = new PacketBuffer(Unpooled.buffer());
                              buf.writeBytes(b.toByteArray());
                              mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf));
                            } catch (IOException) {
            
                            }
                        }
                    }
            ? 1 Reply Last reply
            0
            • ? A Former User

              @ez-chan-osu ```

              var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream")
              var DataOutputStream = Java.type("java.io.DataOutputStream")
              var PacketBuffer = Java.type("net.minecraft.network.PacketBuffer")
              var Unpooled = Java.type("io.netty.buffer.Unpooled")
              var C17PacketCustomPayload = Java.type("net.minecraft.network.play.client.C17PacketCustomPayload")
              var IOException = Java.type("java.io.IOException")
              var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer")
              //and for the module, just paste what auto reply bot said, 
                      if(packet instanceof C03PacketPlayer) {
                          if(mc.thePlayer.ticksExisted % 15 == 0) { 
                            try {
                                b = new ByteArrayOutputStream();
                                out = new DataOutputStream(b);
                                out.writeUTF(mc.thePlayer.getGameProfile().getName());
                                buf = new PacketBuffer(Unpooled.buffer());
                                buf.writeBytes(b.toByteArray());
                                mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf));
                              } catch (IOException) {
              
                              }
                          }
                      }
              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #8

              @mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain

              ? ENDER1355v1E 3 Replies Last reply
              0
              • ? A Former User

                @mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain

                ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #9

                @sigma-bot ty

                1 Reply Last reply
                0
                • ? A Former User

                  @mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain

                  ENDER1355v1E Offline
                  ENDER1355v1E Offline
                  ENDER1355v1
                  wrote on last edited by ENDER1355v1
                  #10

                  @sigma-bot begging? also unlike you, i do other things, since coding is not my job

                  ? 1 Reply Last reply
                  0
                  • ENDER1355v1E ENDER1355v1

                    @sigma-bot begging? also unlike you, i do other things, since coding is not my job

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #11

                    @ender1355 i doubt you can do anything else other than being braindead

                    ENDER1355v1E 1 Reply Last reply
                    0
                    • ? A Former User

                      @ender1355 i doubt you can do anything else other than being braindead

                      ENDER1355v1E Offline
                      ENDER1355v1E Offline
                      ENDER1355v1
                      wrote on last edited by
                      #12

                      @sigma-bot cmon did you even make a script?

                      ? 1 Reply Last reply
                      0
                      • ENDER1355v1E ENDER1355v1

                        @sigma-bot cmon did you even make a script?

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #13

                        @ender1355 yes, I made an useful one that is used by many people, unlike you retard can't even read scriptapi docs

                        ? END3R1355E 2 Replies Last reply
                        0
                        • ? A Former User

                          @ender1355 yes, I made an useful one that is used by many people, unlike you retard can't even read scriptapi docs

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #14

                          @sigma-bot xd

                          END3R1355E 1 Reply Last reply
                          0
                          • ? A Former User

                            @mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain

                            ENDER1355v1E Offline
                            ENDER1355v1E Offline
                            ENDER1355v1
                            wrote on last edited by
                            #15

                            @sigma-bot we are not begging, i just asked a simple question.

                            1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by A Former User
                              #16

                              oh wow that's a lot of fucking imports for a char array
                              with utf8 support, I guess

                              1 Reply Last reply
                              0
                              • ? A Former User

                                @ender1355 yes, I made an useful one that is used by many people, unlike you retard can't even read scriptapi docs

                                END3R1355E Offline
                                END3R1355E Offline
                                END3R1355
                                wrote on last edited by
                                #17

                                yes

                                1 Reply Last reply
                                0
                                • ? A Former User

                                  @sigma-bot xd

                                  END3R1355E Offline
                                  END3R1355E Offline
                                  END3R1355
                                  wrote on last edited by
                                  #18
                                  This post is deleted!
                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  About
                                  • Terms of Service
                                  • Privacy Policy
                                  • Status
                                  • Contact Us
                                  Downloads
                                  • Releases
                                  • Source code
                                  • License
                                  Docs
                                  • Tutorials
                                  • CustomHUD
                                  • AutoSettings
                                  • ScriptAPI
                                  Community
                                  • Forum
                                  • Guilded
                                  • YouTube
                                  • Twitter
                                  • D.Tube
                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups