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. Why does not it work? help me please

Why does not it work? help me please

Scheduled Pinned Locked Moved ScriptAPI
6 Posts 5 Posters 437 Views
  • 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 DommeI Offline
    Its DommeI Offline
    Its Domme
    wrote on last edited by
    #1

    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 DreamWasFuckedD 2 Replies Last reply
    0
    • Its DommeI Its Domme

      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 Offline
      O Offline
      ohno
      wrote on last edited by
      #2

      @its-domme maybe you need float idk

      Its DommeI 1 Reply Last reply
      0
      • O ohno

        @its-domme maybe you need float idk

        Its DommeI Offline
        Its DommeI Offline
        Its Domme
        wrote on last edited by
        #3

        @ohno I tried. Does not work.

        1 Reply Last reply
        0
        • Its DommeI Its Domme

          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);
                  }
              });
          });
          
          DreamWasFuckedD Offline
          DreamWasFuckedD Offline
          DreamWasFucked
          wrote on last edited by
          #4

          @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);
                  }
              });
          });
          
          ? 1 Reply Last reply
          0
          • DreamWasFuckedD DreamWasFucked

            @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);
                    }
                });
            });
            
            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

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

            ? 1 Reply Last reply
            0
            • ? A Former User

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

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

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

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