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. Scripts
  3. AutoREG

AutoREG

Scheduled Pinned Locked Moved Scripts
5 Posts 4 Posters 394 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • qwq LiulihaocaiQ Offline
    qwq LiulihaocaiQ Offline
    qwq Liulihaocai
    wrote on last edited by
    #1

    This Script allows you to register in servers with one key
    it will send register messages automaticly when you enable this module
    thanks for use!

    var script = registerScript({
    	name: "AutoREG",
    	version: "1.0",
    	authors: ["liulihaocai"]
    }); 
    var Timer = Java.type("java.util.Timer");
    function setTimeout(func, milliseconds) {
        var timer = new Timer("setTimeout", true);
        timer.schedule(function() { 
            func();
        }, milliseconds);
        return timer;
    }
    script.registerModule({
    	name: "AutoREG",
    	description: "Register/Login with one key",
        category: "Fun",
    	settings: {
    		RegisterMode: Setting.list({
    			name: "RegisterMode",
    			default: "/reg",
    			values: ["/reg","/register",".reg"]
    		}),
    		LoginMode: Setting.list({
    			name: "LoginMode",
    			default: "/l",
    			values: ["/l","/login",".login"]
    		}),
    		Password: Setting.list({
    			name: "Password",
    			default: "233333",
    			values: ["233333","23333333","12345678"]
    		}),
    		reg: Setting.boolean({
    			name: "Register",
    			default: true
    		}),
    		log: Setting.boolean({
    			name: "Login",
    			default: false
    		})
    	}
    }, function (module) {
    	module.on("enable", function () {
            if(module.settings.log.get() == true) {
                mc.thePlayer.sendChatMessage(module.settings.LoginMode.get()+" "+module.settings.Password.get());
    		}
            if(module.settings.reg.get() == true) {
                mc.thePlayer.sendChatMessage(module.settings.RegisterMode.get()+" "+module.settings.Password.get()+" "+module.settings.Password.get());
    		}
            Chat.print("DONE.")
            setTimeout(function() {
                commandManager.executeCommand(".t AutoREG");
            }, 100)
        })
    })
    
    CzechHekC 1 Reply Last reply
    0
    • CzechHekC Offline
      CzechHekC Offline
      CzechHek
      replied to qwq Liulihaocai on last edited by CzechHek
      #2

      @qwq-liulihaocai

      1. This is one of many scripts doing this.
      2. Why onEnable, could have made it automatic
      3. What if the syntax is different? eg. /register <password>
      4. Why are you disabling the module using commandManager? module.state = false;
      5. Why if (smth == true)? if (smth)
      6. Why does it have register and login mods? Pretty much any server supports /register and /login, not every server supports /reg and /l tho. Didn't have to include it or could have made it a text value.
      7. Password is also a list value? That makes no sense.
      qwq LiulihaocaiQ 1 Reply Last reply
      0
      • qwq LiulihaocaiQ Offline
        qwq LiulihaocaiQ Offline
        qwq Liulihaocai
        replied to CzechHek on last edited by
        #3

        @czechhek said in AutoREG:

        assword is also a list value? That makes no sense.

        thanks,i'll fix it XD

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Aftery
          wrote on last edited by
          #4

          truly an amazing script

          1 Reply Last reply
          0
          • P Offline
            P Offline
            port 3000
            wrote on last edited by
            #5

            scriptolotl's autologin is way better than this

            1 Reply Last reply
            0

            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