LUA - Geode compatible speedhack

Posts 1–9 of 9 · Page 1 of 1
LUA - Geode compatible speedhack
Ok, here is my speedhack that I use in geode - The if statement is very neccisarry on this one as it prevents you from getting reported by other players for zooming across the map. This speedhack works in adventure worlds, but I wrote it specifically for geode


Code:
function sprint() --OP speedhack
  if main.speedenable.checked == true then --verifies that the speedhack is turned on
    local xper=(readFloat("trove.exe+CF30B8"))*-1 --Checks where you are looking
    local yper=readFloat("trove.exe+CF30BC")
    local zper=readFloat("trove.exe+CF30C0")
    local xaccel=xper * 15 --Calculates xyz speed values for a speed of 15
    local yaccel=yper * 15
    local zaccel=zper * 15
    writeFloat("[[[[[trove.exe+00E629C4]+0]+28]+BC]+4]+90",xaccel) --Writes speed values
    writeFloat("[[[[[trove.exe+00E629C4]+0]+28]+BC]+4]+94",yaccel)
    writeFloat("[[[[[trove.exe+00E629C4]+0]+28]+BC]+4]+98",zaccel)
  end
end

speedkey = createHotkey("sprint",VK_W) --sprint hotkey set to W
Quote Originally Posted by ninjadude1 View Post
Ok, here is my speedhack that I use in geode - The if statement is very neccisarry on this one as it prevents you from getting reported by other players for zooming across the map. This speedhack works in adventure worlds, but I wrote it specifically for geode


Code:
function sprint() --OP speedhack
  if main.speedenable.checked == true then --verifies that the speedhack is turned on
    local xper=(readFloat("trove.exe+CF30B8"))*-1 --Checks where you are looking
    local yper=readFloat("trove.exe+CF30BC")
    local zper=readFloat("trove.exe+CF30C0")
    local xaccel=xper * 15 --Calculates xyz speed values for a speed of 15
    local yaccel=yper * 15
    local zaccel=zper * 15
    writeFloat("[[[[[trove.exe+00E629C4]+0]+28]+BC]+4]+90",xaccel) --Writes speed values
    writeFloat("[[[[[trove.exe+00E629C4]+0]+28]+BC]+4]+94",yaccel)
    writeFloat("[[[[[trove.exe+00E629C4]+0]+28]+BC]+4]+98",zaccel)
  end
end

speedkey = createHotkey("sprint",VK_W) --sprint hotkey set to W
"Error:[string "function sprint() -- OP speedhack ..."]:2: attempt to index a nil value (global "main") when executing and pressing w

- - - Updated - - -

if anyone else has shis issue, you can fix it by removing the 2nd line and the first "end" and just using an other key, for example lshift
"The if statement is very neccisarry on this one as it prevents you from getting reported by other players for zooming across the map."

I should clarify what I said previously - You need to use some sort of if statement here to prevent this script from running when you don't want it to. If you run it from the spawn in geode you will get reported.
Quote Originally Posted by ninjadude1 View Post
"The if statement is very neccisarry on this one as it prevents you from getting reported by other players for zooming across the map."

I should clarify what I said previously - You need to use some sort of if statement here to prevent this script from running when you don't want it to. If you run it from the spawn in geode you will get reported.
if you use an other key than w, you can run around normally and only use the key when you are allone, noone will report you
Quote Originally Posted by xoetirc View Post
if you use an other key than w, you can run around normally and only use the key when you are allone, noone will report you
Very true. I made a version of my Geode hack previous to Geode11 called Geode10 - it had the speedhack bound to 3 and the if statement was
Updated code for this

Code:
function sprint() --OP speedhack
  if main.speedenable.checked == true then
    local xper=(readFloat("trove.exe+CDE228"))*-1
    local yper=readFloat("trove.exe+CDE22C")
    local zper=readFloat("trove.exe+ CDE230")
    local xaccel=xper * 15
    local yaccel=yper * 15
    local zaccel=zper * 15
    writeFloat("[[[[[trove.exe+00E62A28]+0]+28]+BC]+4]+90",xaccel)
    writeFloat("[[[[[trove.exe+00E62A28]+0]+28]+BC]+4]+94",yaccel)
    writeFloat("[[[[[trove.exe+00E62A28]+0]+28]+BC]+4]+98",zaccel)
  end
end
where to put the code
Where to put code
Where do i need to put the code?
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?