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. hi I need help

hi I need help

Scheduled Pinned Locked Moved ScriptAPI
12 Posts 5 Posters 457 Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    So im trying to send a packet in scriptapi without triggering the packet event, but seems like there's no function to do this. Anyway to do this?

    CzechHekC Q skiddermaster412S 3 Replies Last reply
    1
    • ? A Former User

      So im trying to send a packet in scriptapi without triggering the packet event, but seems like there's no function to do this. Anyway to do this?

      CzechHekC Offline
      CzechHekC Offline
      CzechHek
      wrote on last edited by
      #2

      @chocopiexd sendPacket() with Core

      ? 1 Reply Last reply
      1
      • ? A Former User

        So im trying to send a packet in scriptapi without triggering the packet event, but seems like there's no function to do this. Anyway to do this?

        Q Offline
        Q Offline
        quadro
        wrote on last edited by
        #3

        @chocopiexd said in hi I need help:

        So im trying to send a packet in scriptapi without triggering the packet event, but seems like there's no function to do this. Anyway to do this?

        why

        1 Reply Last reply
        1
        • CzechHekC CzechHek

          @chocopiexd sendPacket() with Core

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

          @czechhek said in hi I need help:

          @chocopiexd sendPacket() with Core

          is there any other way cuz I don't really like using core

          CzechHekC 1 Reply Last reply
          1
          • ? A Former User

            @czechhek said in hi I need help:

            @chocopiexd sendPacket() with Core

            is there any other way cuz I don't really like using core

            CzechHekC Offline
            CzechHekC Offline
            CzechHek
            wrote on last edited by CzechHek
            #5

            @chocopiexd L

            as if core wasn't open src

            ? 1 Reply Last reply
            1
            • Q Offline
              Q Offline
              quadro
              wrote on last edited by
              #6

              scripts are automatically open source as there are no good public obfuscators

              1 Reply Last reply
              2
              • CzechHekC CzechHek

                @chocopiexd L

                as if core wasn't open src

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

                @czechhek said in hi I need help:

                @chocopiexd L

                as if core wasn't open src

                I guess skidding is the only way

                1 Reply Last reply
                1
                • C Offline
                  C Offline
                  Co丶Dynamic
                  wrote on last edited by
                  #8

                  @chocopiexd you can try to "mark" the packet
                  example:
                  NoEvent=true;
                  Send some Packets
                  NoEvent=false;
                  on Packet event
                  if (NoEvent) return;

                  1 Reply Last reply
                  1
                  • ? A Former User

                    So im trying to send a packet in scriptapi without triggering the packet event, but seems like there's no function to do this. Anyway to do this?

                    skiddermaster412S Offline
                    skiddermaster412S Offline
                    skiddermaster412
                    wrote on last edited by
                    #9

                    @chocopiexd mc.thePlayer.sendQueue.addToSendQueue(epic packet);

                    ? 1 Reply Last reply
                    1
                    • skiddermaster412S skiddermaster412

                      @chocopiexd mc.thePlayer.sendQueue.addToSendQueue(epic packet);

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

                      @skiddermaster412 said in hi I need help:

                      @chocopiexd mc.thePlayer.sendQueue.addToSendQueue(epic packet);

                      this triggers packet event

                      skiddermaster412S 1 Reply Last reply
                      1
                      • ? A Former User

                        @skiddermaster412 said in hi I need help:

                        @chocopiexd mc.thePlayer.sendQueue.addToSendQueue(epic packet);

                        this triggers packet event

                        skiddermaster412S Offline
                        skiddermaster412S Offline
                        skiddermaster412
                        wrote on last edited by
                        #11

                        @chocopiexd so you are trying to send a packet in packet event?
                        idk if this works

                        function sendPacket(packet) {
                        		var Class = Java.type("java.lang.Class");
                        		Object.defineProperty(Array.prototype, "find", {
                        		    value: function (func, returnIndex) {
                        		        for (i in this) if (func(this[i], i, this)) return returnIndex ? +i : this[i];
                        		        return returnIndex ? -1 : null;
                        		    }
                        		});
                        		function getMethod(clazz, methodName) ((_method = Java.from((clazz instanceof Class ? clazz : clazz.class).getDeclaredMethods()).find(function (m) m.getName() == methodName)) && _method.setAccessible(true), _method);
                        
                        		function getField(clazz, fieldName) ((_field = getFields(clazz instanceof Class ? clazz : clazz.class).find(function (f) f.getName() == fieldName)) && _field.setAccessible(true), _field);
                        
                        		function getFields(clazz) {_fields = Java.from((clazz = clazz instanceof Class ? clazz : clazz.class).getDeclaredFields());while (clazz = clazz.superclass) _fields = _fields.concat(Java.from(clazz.getDeclaredFields()));return _fields;}
                        	    var networkManager = mc.getNetHandler().getNetworkManager();
                        	    var flushOutboundQueueMethod = getMethod(NetworkManager, "func_150733_h")
                        	    var dispatchPacketMethod = getMethod(NetworkManager, "func_150732_b");
                        	    var readWriteLockField = getField(NetworkManager, "field_181680_j");
                        	    var outboundPacketsQueueField = getField(NetworkManager, "field_150745_j");
                        
                        	    if (networkManager.isChannelOpen()) {
                        	        flushOutboundQueueMethod.invoke(networkManager);
                        	        dispatchPacketMethod.invoke(networkManager, packet, null);
                        	    } else {
                        	        readWriteLockField.get(networkManager).writeLock().lock();
                        	        try {
                        	            outboundPackets = outboundPacketsQueueField.get(networkManager);
                        	            outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));
                        	            outboundPacketsQueueField.set(networkManager, _outboundPackets);
                        	        } finally {
                        	            readWriteLockField.get(networkManager).writeLock().unlock();
                        	        }
                        	    }
                        	}
                        

                        skidded from core

                        ? 1 Reply Last reply
                        1
                        • skiddermaster412S skiddermaster412

                          @chocopiexd so you are trying to send a packet in packet event?
                          idk if this works

                          function sendPacket(packet) {
                          		var Class = Java.type("java.lang.Class");
                          		Object.defineProperty(Array.prototype, "find", {
                          		    value: function (func, returnIndex) {
                          		        for (i in this) if (func(this[i], i, this)) return returnIndex ? +i : this[i];
                          		        return returnIndex ? -1 : null;
                          		    }
                          		});
                          		function getMethod(clazz, methodName) ((_method = Java.from((clazz instanceof Class ? clazz : clazz.class).getDeclaredMethods()).find(function (m) m.getName() == methodName)) && _method.setAccessible(true), _method);
                          
                          		function getField(clazz, fieldName) ((_field = getFields(clazz instanceof Class ? clazz : clazz.class).find(function (f) f.getName() == fieldName)) && _field.setAccessible(true), _field);
                          
                          		function getFields(clazz) {_fields = Java.from((clazz = clazz instanceof Class ? clazz : clazz.class).getDeclaredFields());while (clazz = clazz.superclass) _fields = _fields.concat(Java.from(clazz.getDeclaredFields()));return _fields;}
                          	    var networkManager = mc.getNetHandler().getNetworkManager();
                          	    var flushOutboundQueueMethod = getMethod(NetworkManager, "func_150733_h")
                          	    var dispatchPacketMethod = getMethod(NetworkManager, "func_150732_b");
                          	    var readWriteLockField = getField(NetworkManager, "field_181680_j");
                          	    var outboundPacketsQueueField = getField(NetworkManager, "field_150745_j");
                          
                          	    if (networkManager.isChannelOpen()) {
                          	        flushOutboundQueueMethod.invoke(networkManager);
                          	        dispatchPacketMethod.invoke(networkManager, packet, null);
                          	    } else {
                          	        readWriteLockField.get(networkManager).writeLock().lock();
                          	        try {
                          	            outboundPackets = outboundPacketsQueueField.get(networkManager);
                          	            outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));
                          	            outboundPacketsQueueField.set(networkManager, _outboundPackets);
                          	        } finally {
                          	            readWriteLockField.get(networkManager).writeLock().unlock();
                          	        }
                          	    }
                          	}
                          

                          skidded from core

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

                          @skiddermaster412 said in hi I need help:

                          @chocopiexd so you are trying to send a packet in packet event?
                          idk if this works

                          function sendPacket(packet) {
                          		var Class = Java.type("java.lang.Class");
                          		Object.defineProperty(Array.prototype, "find", {
                          		    value: function (func, returnIndex) {
                          		        for (i in this) if (func(this[i], i, this)) return returnIndex ? +i : this[i];
                          		        return returnIndex ? -1 : null;
                          		    }
                          		});
                          		function getMethod(clazz, methodName) ((_method = Java.from((clazz instanceof Class ? clazz : clazz.class).getDeclaredMethods()).find(function (m) m.getName() == methodName)) && _method.setAccessible(true), _method);
                          
                          		function getField(clazz, fieldName) ((_field = getFields(clazz instanceof Class ? clazz : clazz.class).find(function (f) f.getName() == fieldName)) && _field.setAccessible(true), _field);
                          
                          		function getFields(clazz) {_fields = Java.from((clazz = clazz instanceof Class ? clazz : clazz.class).getDeclaredFields());while (clazz = clazz.superclass) _fields = _fields.concat(Java.from(clazz.getDeclaredFields()));return _fields;}
                          	    var networkManager = mc.getNetHandler().getNetworkManager();
                          	    var flushOutboundQueueMethod = getMethod(NetworkManager, "func_150733_h")
                          	    var dispatchPacketMethod = getMethod(NetworkManager, "func_150732_b");
                          	    var readWriteLockField = getField(NetworkManager, "field_181680_j");
                          	    var outboundPacketsQueueField = getField(NetworkManager, "field_150745_j");
                          
                          	    if (networkManager.isChannelOpen()) {
                          	        flushOutboundQueueMethod.invoke(networkManager);
                          	        dispatchPacketMethod.invoke(networkManager, packet, null);
                          	    } else {
                          	        readWriteLockField.get(networkManager).writeLock().lock();
                          	        try {
                          	            outboundPackets = outboundPacketsQueueField.get(networkManager);
                          	            outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));
                          	            outboundPacketsQueueField.set(networkManager, _outboundPackets);
                          	        } finally {
                          	            readWriteLockField.get(networkManager).writeLock().unlock();
                          	        }
                          	    }
                          	}
                          

                          skidded from core

                          probably it should work since it's skidded from core

                          1 Reply Last reply
                          1
                          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