CCBlueX Forum

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

    Does anyone know what wrong ah?

    Scripts
    5
    10
    237
    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.
    • I
      ItzHackzz last edited by ItzHackzz

      var script = registerScript({
      name: 'RegenTest',
      version: '1.0',
      authors: ['Itz']
      });
      script.registerModule({
      name: 'RegenTest',
      category: 'Combat',
      description: 'RegenTest'
      }
      var C03PacketPlayer = Java.type('net.minecraft.network.play.client.C03PacketPlayer');
      var Potion = Java.type('net.minecraft.potion.Potion');
      var client = new client()
      var clientClient

      function client() {
      this.getName = function() {
      }
      var packets = value.createFloat("Packets", 32, 10, 100)
      var potionPackets = value.createFloat("PacketsOnlyPackets", 32, 10, 100)
      var Health = value.createFloat("Health", 20, 1, 20)
      var potion = value.createFloat("PotionOnly", true)

      this.addValues = function(Test) {
            Test.add(Health)
           Test.add(potion)
            Test.add(potionPackets)
            Test.add(packets)
        }
      
      this.onUpdate = function() {
          if (potion.get()) {
              if (mc.thePlayer.getActivePotionEffect(Potion.regeneration) != null && mc.thePlayer.getActivePotionEffect(Potion.regeneration).getDuration() > 0 && mc.thePlayer.getHealth() <= eblan.get() && mc.thePlayer.onGround) {
                  for (var i = 0; i < potionPackets.get(); ++i) {
                      mc.thePlayer.getActivePotionEffect(Potion.regeneration).deincrementDuration();
                      mc.getNetHandler().addToSendQueue(new C03PacketPlayer(true));
                  }
              }
          }
          else if (mc.thePlayer.getHealth() <= eblan.get() && mc.thePlayer.onGround) {
              for (var i = 0; i < packets.get(); ++i) {
                  mc.getNetHandler().addToSendQueue(new C03PacketPlayer(true));
              }
          }
      }
      

      }

      function onLoad() {}

      function onEnable() {
      clientClient = moduleManager.registerModule(client)
      }

      function onDisable() {
      moduleManager.unregisterModule(clientClient)
      }

      LiquidScript 1 Reply Last reply Reply Quote 0
      • LiquidScript
        LiquidScript @ItzHackzz last edited by

        @itzhackzz stop doing scripts without learning any javascript

        G 1 Reply Last reply Reply Quote 0
        • G
          Gabriel @LiquidScript last edited by

          @liquidscript This is LITERALLY mixed ScriptAPI v1 and v2
          Ofc it won't work for him.
          There shouldnt be any "var" things in scriptapiv2

          1 Reply Last reply Reply Quote 1
          • O
            ohno last edited by

            stop spamming faggot

            G 1 Reply Last reply Reply Quote 0
            • G
              Gabriel @ohno last edited by

              @ohno Yes, he or she will need to stop.
              Imagine mixing scriptapi v1 and v2 lfmaoooooooo
              That's skidding alot bruh

              O 1 Reply Last reply Reply Quote 0
              • O
                ohno @Gabriel last edited by ohno

                @gabriel it is not even script api v1-v2; its just bloody mess of kotlin, java and scriptapi (v1,v2)

                G 1 Reply Last reply Reply Quote 0
                • G
                  Gabriel @ohno last edited by

                  @ohno Really? But was i right that "var" is no longer used in scriptapi v2?

                  O 1 Reply Last reply Reply Quote 0
                  • O
                    ohno last edited by

                    ofc he took @idk-my-name's paste-L

                    1 Reply Last reply Reply Quote 0
                    • O
                      ohno @Gabriel last edited by ohno

                      @gabriel this trick can be also used in v1:

                      var
                         Sex = 1
                         Sigma = false
                         Rat = true
                      

                      these variables will use one type: 'var'

                      1 Reply Last reply Reply Quote 0
                      • A
                        Aftery last edited by

                        var

                        no longer used in scriptapi v2

                        its official bros no more var in javascript

                        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