CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Solved How to send a packet?

    ScriptAPI
    10
    18
    403
    Loading More Posts
    • 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.
    • ?
      A Former User last edited by

      ok so im trying to send the c17custompayload from this in liquidbounce but i dont know how https://github.com/Rilshrink/Minecraft-Disablers/blob/main/earthpoldisabler.java

      DreamWasFucked 1 Reply Last reply Reply Quote 1
      • DreamWasFucked
        DreamWasFucked Banned @Guest last edited by 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) {
        
                        }
                    }
                }
        
        ? 1 Reply Last reply Reply Quote 1
        • ?
          A Former User @DreamWasFucked last edited by

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

          DreamWasFucked 1 Reply Last reply Reply Quote 0
          • DreamWasFucked
            DreamWasFucked Banned @Guest last edited by

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

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @DreamWasFucked last edited by

              @auto-reply-bot morez vars plz

              FaaatPotato ? 2 Replies Last reply Reply Quote 0
              • FaaatPotato
                FaaatPotato @Guest last edited by FaaatPotato

                @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 Reply Quote 0
                • ?
                  A Former User @Guest last edited by 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) {
                  
                                  }
                              }
                          }
                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @Guest last edited by

                    @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

                    ? Painis Bot 3 Replies Last reply Reply Quote 0
                    • ?
                      A Former User @Guest last edited by

                      @sigma-bot ty

                      1 Reply Last reply Reply Quote 0
                      • Painis Bot
                        Painis Bot Banned @Guest last edited by Painis Bot

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

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @Painis Bot last edited by

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

                          Painis Bot 1 Reply Last reply Reply Quote 0
                          • Painis Bot
                            Painis Bot Banned @Guest last edited by

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

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @Painis Bot last edited by

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

                              M END3R1355 2 Replies Last reply Reply Quote 0
                              • M
                                mems Moderator @Guest last edited by

                                @sigma-bot xd

                                END3R1355 1 Reply Last reply Reply Quote 0
                                • Painis Bot
                                  Painis Bot Banned @Guest last edited by

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

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User last edited by A Former User

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

                                    1 Reply Last reply Reply Quote 0
                                    • END3R1355
                                      END3R1355 Banned @Guest last edited by

                                      yes

                                      1 Reply Last reply Reply Quote 0
                                      • END3R1355
                                        END3R1355 Banned @mems last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        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