CCBlueX Forum

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

    Why does not it work? help me please

    ScriptAPI
    5
    6
    110
    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.
    • Its Domme
      Its Domme last edited by

      Stopped working when I added module where
      you need to specify hp

      ///api_version=2
      var Kick = moduleManager.getModule('Kick');
      var script = registerScript({
          name: "AutoKick",
          version: "1.0.0",
          authors: ["My Name"]
      });
      script.registerModule({
          name: "AutoKick",
          category: "Fun",
          description: "Automatically kicks you when you are low on health"
          settings: {
             myHealth: Setting.integer({
                  name: "Health",
                  default: 4,
                  min: 1,
                  max: 20
              })
          };
      }, function (module) {
          module.on("update", function() {
              if ( mc.thePlayer.getHealth() <= module.settings.myHealth.get() ) {
                  Kick.setState(true);
              }
          });
      });
      
      O DreamWasFucked 2 Replies Last reply Reply Quote 0
      • O
        ohno @Its Domme last edited by

        @its-domme maybe you need float idk

        Its Domme 1 Reply Last reply Reply Quote 0
        • Its Domme
          Its Domme @ohno last edited by

          @ohno I tried. Does not work.

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

            @its-domme fixed shit

            ///api_version=2
            var Kick = moduleManager.getModule('Kick');
            var script = registerScript({
                name: "AutoKick",
                version: "1.0.0",
                authors: ["My Name"]
            });
            script.registerModule({
                name: "AutoKick",
                category: "Fun",
                description: "Automatically kicks you when you are low on health",
                settings: {
                   myHealth: Setting.integer({
                        name: "Health",
                        default: 4,
                        min: 1,
                        max: 20
                    })
                }
            }, function (module) {
                module.on("update", function() {
                    if ( mc.thePlayer.getHealth() <= module.settings.myHealth.get() ) {
                        Kick.setState(true);
                    }
                });
            });
            
            M 1 Reply Last reply Reply Quote 0
            • M
              mems Moderator @DreamWasFucked last edited by

              @Its-Domme Why would you need that script? You already have one in LiquidBounce.

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

                @mems They wanted to reimplement it, probably to learn ScriptAPI better. I see absolutely nothing wrong with that.

                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