CCBlueX Forum

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

    Unsolved What is the method of sending packets(Or usage)

    ScriptAPI
    7
    9
    262
    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.
    • WOWIESOCL
      WOWIESOCL last edited by

      When I write my JS, I need to send a c0epacket, but I use the method in V1, that is, the mc.thePlayer.sendQueue.addToSendQueue method, but it doesn't work. It tells me that this method doesn't exist. So who can tell me how to send packet(Or usage .One possibility is that this function exists, but its method has changed)

      Plumer Man 1 Reply Last reply Reply Quote 0
      • Plumer Man
        Plumer Man @WOWIESOCL last edited by

        Core

        sendPacket(new C0EPacketClickWindow);
        
        WOWIESOCL 1 Reply Last reply Reply Quote 1
        • WOWIESOCL
          WOWIESOCL @Plumer Man last edited by

          @plumer-man I found the sendpacket function from the core. The content is: function sendpacket (packet, trigger event){

          _networkManager = mc.getNetHandler().getNetworkManager();

          if (triggerEvent) _networkManager.sendPacket(packet);

          else 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();

          }

          }

          M Ali00035 2 Replies Last reply Reply Quote 0
          • M
            mems Moderator @WOWIESOCL last edited by

            @wowiesocl said in What is the method of sending packets(Or usage):

            @plumer-man I found the sendpacket function from the core. The content is: function sendpacket (packet, trigger event){

            _networkManager = mc.getNetHandler().getNetworkManager();

            if (triggerEvent) _networkManager.sendPacket(packet);

            else 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();

            }

            }

            Well, this is the silent way of sending a packet.

            END3R1355 1 Reply Last reply Reply Quote 0
            • CzechHek
              CzechHek last edited by

              @fart not triggering onPacket event

              1 Reply Last reply Reply Quote 2
              • CzechHek
                CzechHek last edited by CzechHek

                @fart no, it doesn't trigger onPacket event

                and dyskord.cc is dead

                END3R1355 1 Reply Last reply Reply Quote 2
                • END3R1355
                  END3R1355 Banned @CzechHek last edited by

                  @czechhek my patch only disables connections to dyskord.cc but idk why some of ur scripts are still not working

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

                    @mems said in What is the method of sending packets(Or usage):

                    nigger

                    reported.

                    1 Reply Last reply Reply Quote 0
                    • Ali00035
                      Ali00035 Banned @WOWIESOCL last edited by

                      @wowiesocl use the inline code option pls

                      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