Velocity modifier not working in hypixel
Unsolved
ScriptAPI
-
@make-joke-of Please search a bit next time before making the same topic on the wrong category.
-
@make-joke-of
@mems help me?? -
This post is deleted!
-
/// api_version=2 var script = registerScript({ name: "HypikleVelo", version: "1.0", authors: ["nvinci"] }); var S27 = Java.type("net.minecraft.network.play.server.S27PacketExplosion"); var S12 = Java.type("net.minecraft.network.play.server.S12PacketEntityVelocity"); script.registerModule({ name: "HypikleVelo", category: "Combat", description: "grr", settings: { horizontal: Setting.float({ name: "Horizontal", default: 100.0, min: 0.0, max: 100.0 }) } }, function(module) { module.on('packet', function(e) { try { packet = e.getPacket(); if (packet instanceof S12) { packet.motionX *= module.settings.horizontal.get() / 100.0; packet.motionZ *= module.settings.horizontal.get() / 100.0; } else if (packet instanceof S27) { // too lazy to use core's reflector var motionX_fid = packet.class.getDeclaredField("field_149152_f"); var motionZ_fid = packet.class.getDeclaredField("field_149159_h"); motionX_fid.setAccessible(true); motionZ_fid.setAccessible(true); motionX_fid.setFloat(packet, motionX_fid.get(packet) * (module.settings.horizontal.get() / 100.0)); motionZ_fid.setFloat(packet, motionZ_fid.get(packet) * (module.settings.horizontal.get() / 100.0)); motionX_fid.setAccessible(false); motionZ_fid.setAccessible(false); } } catch (err) { Chat.print(err); }; }); });
scripts (2).zip for the scriptolotl zip file, including the hypixel velocity (extract all of them into the scripts folder).
I tested on b72, working well. Not sure about b73.
-
@wysi i tried it in hypixel and it dont work for me
-
@vapeisexpensive which script?
-
@wysi the 1st one
name: "HypikleVelo",
version: "1.0",
authors: ["nvinci"]