Navigation

    CCBlueX Forum

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

    AutoREG

    Scripts
    4
    5
    241
    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.
    • qwq Liulihaocai
      qwq Liulihaocai last edited by

      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)
          })
      })
      
      CzechHek 1 Reply Last reply Reply Quote 0
      • CzechHek
        CzechHek @qwq Liulihaocai last edited by CzechHek

        @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 Liulihaocai 1 Reply Last reply Reply Quote 0
        • qwq Liulihaocai
          qwq Liulihaocai @CzechHek last edited by

          @czechhek said in AutoREG:

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

          thanks,i'll fix it XD

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

            truly an amazing script

            1 Reply Last reply Reply Quote 0
            • P
              port 3000 last edited by

              scriptolotl's autologin is way better than this

              1 Reply Last reply Reply Quote 0
              • First post
                Last post