CCBlueX Forum

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

    Script support.

    ScriptAPI
    4
    13
    265
    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.
    • Gridzz
      Gridzz last edited by Senk Ju

      /// api_version=2
      var script = registerScript({
          name: "Double Click",
          version: "1.0",
          authors: ["Gridzz"]
      });
      
      script.registerModule({
          name: "Double Click",
          category: "Combat", 
          description: "Click Twice!",
          tag: "Hm."}),
      
      function (DoubleClick) {
          DoubleClick.on("enable", function() {
          if (mc.gameSettings.keyBindAttack.isKeyDown() || Mouse.isKeyDown(0)) {
          Robot bot = new Robot();
          bot.mousePress(InputEvent.BUTTON2_DOWN_MASK);
          bot.mouseRelease(InputEvent.BUTTON2_DOWN_MASK);
      }
      

      It's not showing up in the GUI in-game, I think I butchered the code any help?

      skiddermaster412 DreamWasFucked 2 Replies Last reply Reply Quote 0
      • skiddermaster412
        skiddermaster412 Banned @Gridzz last edited by

        @gridzz 6f8ded5e-73ee-486a-a4fe-cd8e45715bb5-image.png

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

          6.png

          Gridzz 1 Reply Last reply Reply Quote 0
          • Gridzz
            Gridzz @skiddermaster412 last edited by

            @skiddermaster412 Removed it but it's still not showing up. ;(

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

              @auto-reply-bot said in Script support.:

              6.png

              Ok instead of quoting this can you send me an alternative?

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

                import InputEvent, Robot

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

                  @auto-reply-bot Ty but idk what to do with that, maybe more thorough like actually putting it in the code and sending me it

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

                    var Mouse = Java.type('org.lwjgl.input.Mouse');
                    var Robot = Java.type('java.awt.Robot');
                    var InputEvent = Java.type('java.awt.event.InputEvent');
                    var script = registerScript({
                        name: 'DoubleClick',
                        version: '1.0',
                        authors: ['Gridzz']
                    });
                    script.registerModule({
                        name: 'DoubleClick',
                        description: 'Click Twice!',
                        category: 'Fun'
                    
                    }, function (module) {
                        module.on('update', function () {
                            if (mc.gameSettings.keyBindAttack.isKeyDown() || Mouse.isButtonDown(0)) {
                                var bot = new Robot();
                                bot.mousePress(InputEvent.BUTTON2_DOWN_MASK);
                                bot.mouseRelease(InputEvent.BUTTON2_DOWN_MASK);
                            }
                        });
                    });
                    
                    Gridzz 2 Replies Last reply Reply Quote 0
                    • Gridzz
                      Gridzz @DreamWasFucked last edited by

                      @auto-reply-bot said in Script support.:

                      var Mouse = Java.type('org.lwjgl.input.Mouse');
                      var Robot = Java.type('java.awt.Robot');
                      var InputEvent = Java.type('java.awt.event.InputEvent');
                      var script = registerScript({
                          name: 'DoubleClick',
                          version: '1.0',
                          authors: ['Gridzz']
                      });
                      script.registerModule({
                          name: 'DoubleClick',
                          description: 'Click Twice!',
                          category: 'Fun'
                      
                      }, function (module) {
                          module.on('update', function () {
                              if (mc.gameSettings.keyBindAttack.isKeyDown() || Mouse.isButtonDown(0)) {
                                  var bot = new Robot();
                                  bot.mousePress(InputEvent.BUTTON2_DOWN_MASK);
                                  bot.mouseRelease(InputEvent.BUTTON2_DOWN_MASK);
                              }
                          });
                      });
                      

                      Thanks! Definitely owe you a favour that I'm going to regret ±

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

                        @auto-reply-bot Hey it still doesn't detect the 'DoubleClick' script in the combat GUI, how can I make it detectable?

                        Edit 1: Never-mind. LOL
                        Edit 2: It works but it doesn't show up in any of the arrow-gui lists, such as combat. I can bind it but I cant find it.
                        Edit 3: It doesn't work scam

                        Gridzz 1 Reply Last reply Reply Quote 0
                        • Gridzz
                          Gridzz @Gridzz last edited by Gridzz

                          Anyone?!>!?!?!?

                          CzechHek 1 Reply Last reply Reply Quote 0
                          • CzechHek
                            CzechHek @Gridzz last edited by CzechHek

                            @gridzz there should be
                            ///api_version=2
                            as the first line

                            edit: you had it there before ah

                            Gridzz 1 Reply Last reply Reply Quote 0
                            • Gridzz
                              Gridzz @CzechHek last edited by

                              @czechhek said in Script support.:

                              @gridzz there should be
                              ///api_version=2
                              as the first line

                              edit: you had it there before ah

                              Yeah, still doesn't work. What can I do, as I think it's the codes fault. I want to place blocks twice (aka the double clicking) and also set an option to double click on LMB later.

                              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