Hello. Script not work
Unsolved
ScriptAPI
-
Hello. Who is not hard to help fix the script, it does not work.
function getBaseMoveSpeed() { var BaseSpeed = 0.2873; baseSpeed *= 1.0 + 0.2 * (0.20000000298023224 + 1); return baseSpeed; } var stage; var moveSpeed; var lastDist; var name1 = "KirkaLongJump" var category1 = "Movement" // Movement, Misc, Combat, Fun, Player, Exploit, World, Render var author1 = "ItsDoome1" var script = registerScript({ name: name1, version: "1.0.0", authors: [author1] }); script.registerModule({ name: name1, category: category1, description: author1 settings: { Boost: Setting.integer({ name: "Boost", default: 24, min: 4, max: 25 }) } }, function (module) { module.on("enable", function() { stage = 0; }); module.on("move", function() { if (mc.thePlayer.moveForward != 0 || mc.thePlayer.moveStrafing != 0) { if (stage == 0) { moveSpeed = 1 + getBaseMoveSpeed() - 0.05; } else { mc.thePlayer.motionY = 0.42; moveSpeed *= 2.13; if (stage == 2) { var d = 0.66 * (lastDist - getBaseMoveSpeed()); moveSpeed = lastDist - d; } else { moveSpeed = lastDist - lastDist / 159; } } moveSpeed = Math.max(getBaseMoveSpeed(), moveSpeed) mc.setMoveSpeed = moveSpeed if (!mc.thePlayer.isCollidedVertically) { mc.thePlayer.setY(mc.thePlayer.motionY = -1.0-4) stage++; } else if (stage > 0) { moduleManager.getModule('KirkaLongJump').setState(false); } } }); module.on("update", function() { if (mc.thePlayer.moveForward != 0.0 || mc.thePlayer.moveStrafing != 0.0) { var d1 = mc.thePlayer.x - mc.thePlayer.prevPosX; var d2 = mc.thePlayer.z - mc.thePlayer.prevPosZ; lastDist = Math.sqrt(d1 * d1 + d2 * d2); } else { moduleManager.getModule('KirkaLongJump').setState(false); } }); });
-
@its-domme fix your fucking formatting. What IDE are you using? Notepad? get VS code it does the formatting for you
function getBaseMoveSpeed() { var BaseSpeed = 0.2873; baseSpeed *= 1.0 + 0.2 * (0.20000000298023224 + 1); return baseSpeed; } var stage; var moveSpeed; var lastDist; var name1 = "KirkaLongJump" var category1 = "Movement" // Movement, Misc, Combat, Fun, Player, Exploit, World, Render var author1 = "ItsDoome1" var script = registerScript({ name: name1, version: "1.0.0", authors: [author1] }); script.registerModule({ name: name1, category: category1, description: author1 settings: { Boost: Setting.integer({ name: "Boost", default: 24, min: 4, max: 25 }) } }, function (module) { module.on("enable", function() { stage = 0; }); module.on("move", function() { if (mc.thePlayer.moveForward != 0 || mc.thePlayer.moveStrafing != 0) { if (stage == 0) { moveSpeed = 1 + getBaseMoveSpeed() - 0.05; } else { mc.thePlayer.motionY = 0.42; moveSpeed *= 2.13; if (stage == 2) { var d = 0.66 * (lastDist - getBaseMoveSpeed()); moveSpeed = lastDist - d; } else { moveSpeed = lastDist - lastDist / 159; } } moveSpeed = Math.max(getBaseMoveSpeed(), moveSpeed) mc.setMoveSpeed = moveSpeed if (!mc.thePlayer.isCollidedVertically) { mc.thePlayer.setY(mc.thePlayer.motionY = -1.0-4) stage++; } else if (stage > 0) { moduleManager.getModule('KirkaLongJump').setState(false); } } }); module.on("update", function() { if (mc.thePlayer.moveForward != 0.0 || mc.thePlayer.moveStrafing != 0.0) { var d1 = mc.thePlayer.x - mc.thePlayer.prevPosX; var d2 = mc.thePlayer.z - mc.thePlayer.prevPosZ; lastDist = Math.sqrt(d1 * d1 + d2 * d2); } else { moduleManager.getModule('KirkaLongJump').setState(false); } }); });
there, fixed it for you, if it doesnt work anyway, i dont care
the last few things are probably formatted wrong by me