[help] Error in the script
-
@its-domme your grammar is the worst in this fucking world
@idk-my-name said in [help] Error in the script:
your grammar is the worst in this fucking world
Ahah, I didn't fully learn javascirpt
-
@its-domme your grammar is the worst in this fucking world
@idk-my-name its 100% google translator
-
@idk-my-name said in [help] Error in the script:
your grammar is the worst in this fucking world
Ahah, I didn't fully learn javascirpt
@its-domme why are you laughing?
also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know -
@its-domme why are you laughing?
also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know@idk-my-name said in [help] Error in the script:
why are you laughing?
also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i knowIm from rus. Pls send me Core.Lib
-
@its-domme why are you laughing?
also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know@idk-my-name oh really
-
@idk-my-name said in [help] Error in the script:
why are you laughing?
also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i knowIm from rus. Pls send me Core.Lib
@its-domme rus = rush?
-
@idk-my-name said in [help] Error in the script:
why are you laughing?
also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i knowIm from rus. Pls send me Core.Lib
@its-domme i have left da link for it
-
@its-domme rus = rush?
@skidma yeah
-
@its-domme rus = rush?
-
@its-domme rus = rush?
-
@its-domme b74
-
@its-domme who is she
-
@its-domme who is she
@idk-my-name LiquidBounce b74
-
@idk-my-name LiquidBounce b74
@its-domme is liquidbounce she
-
I wanted to write a timer that will turn on and off every second, but the script did not appear
/// api_version=2 var script = registerScript({ name: "AacTimer", version: "1.0.0", authors: ["ItsDoome1"] }); script.registerModule({ name: "AacTimer", category: "Fun", description: "Timer For Aac" }, function (module) { }); module.on("update", function() { }); var secounds = java.("java.lang.System.currentTimeMillis"); function timer() { moduleManager.getModule("Timer").getValue("Speed").set(1.5); //Делает таймер со скоростью 1.5 }; function timer1() { moduleManager.getModule("Timer").getValue("Speed").set(1.0); //Делает таймер со скоростью 1.0 } if secounds = 1000 { timer() }; if secounds = 2000 { timer1() }; module.on("disable", function() { });
var scriptName = "DommeTimer"; var scriptVersion = 0.1; var scriptAuthor = "Domme" var Title = new Title() var client; function Title() { this.getName = function() { return "DommeTimer" } this.getDescription = function() { return "on-off Timer thing" } this.getCategory = function() { return "Fun" } var i = false, secs = 1.0; this.onUpdate = function(event) { if (mc.thePlayer.timerSpeed % (secs * 20) == 0) { if (i) { mc.timer.timerSpeed = 1.5; } else { mc.timer.timerSpeed = 1; } i = !i; } } this.onDisable = function() { mc.timer.timerSpeed = 1; } } function onEnable() { client = moduleManager.registerModule(Title) } function onDisable() { moduleManager.unregisterModule(client) }
Let's go through the main code one by one:
var i = false, secs = 1.0;
This declares 2 variables,i
andsecs
.
secs is the amount of seconds you want it to timer for, i determines whether to make timer faster or slower.if(i)
This is a shorthand fori == true
.mc.timer.timerSpeed = 1.5;
This sets the timer value to 1.5, making the game 50% faster.else
This is like saying "if the previous statement is false, do this".i = !i;
This sets i to it's inverse. In programming,!
is a way of saying "not". Not i is therefore true if i is false, and vice versa. -
var scriptName = "DommeTimer"; var scriptVersion = 0.1; var scriptAuthor = "Domme" var Title = new Title() var client; function Title() { this.getName = function() { return "DommeTimer" } this.getDescription = function() { return "on-off Timer thing" } this.getCategory = function() { return "Fun" } var i = false, secs = 1.0; this.onUpdate = function(event) { if (mc.thePlayer.timerSpeed % (secs * 20) == 0) { if (i) { mc.timer.timerSpeed = 1.5; } else { mc.timer.timerSpeed = 1; } i = !i; } } this.onDisable = function() { mc.timer.timerSpeed = 1; } } function onEnable() { client = moduleManager.registerModule(Title) } function onDisable() { moduleManager.unregisterModule(client) }
Let's go through the main code one by one:
var i = false, secs = 1.0;
This declares 2 variables,i
andsecs
.
secs is the amount of seconds you want it to timer for, i determines whether to make timer faster or slower.if(i)
This is a shorthand fori == true
.mc.timer.timerSpeed = 1.5;
This sets the timer value to 1.5, making the game 50% faster.else
This is like saying "if the previous statement is false, do this".i = !i;
This sets i to it's inverse. In programming,!
is a way of saying "not". Not i is therefore true if i is false, and vice versa.@cancernameu said in [help] Error in the script:
! is a way of saying "not". Not i is therefore true if i is false, and vice versa.
You are a genius, can I have children for you? xd
-
@its-domme why are you laughing?
also, as fact, in English countries people do not use 'haha' or 'ahah' when typing. They use 'LMAO' as far as i know@idk-my-name you are a literal savage