Results 1 to 9 of 9
  1. #1
    ninjadude1's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    281

    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

  2. #2
    xoetirc's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    83
    Reputation
    10
    Thanks
    5
    My Mood
    Relaxed
    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

  3. #3
    ninjadude1's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    281
    "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.

  4. #4
    xoetirc's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    83
    Reputation
    10
    Thanks
    5
    My Mood
    Relaxed
    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

  5. #5
    ninjadude1's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    281
    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

  6. #6
    ninjadude1's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    281
    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

  7. #7
    djahfjkaslda's Avatar
    Join Date
    Jan 2019
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    where to put the code

    Where to put code

  8. #8
    3JIOU_KOTE's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    77
    Reputation
    10
    Thanks
    530
    My Mood
    Mellow
    Quote Originally Posted by djahfjkaslda View Post
    Where to put code
    Change commas for dots.
    https://wiki,cheatengine,org/index.p...als:Lua:Basics

    And also google how to use cheat engine in general, it will help you alot.

  9. #9
    Invoker04's Avatar
    Join Date
    Apr 2019
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Where do i need to put the code?

Similar Threads

  1. [Help] 2 different cheat engine lua speedhacks scripts at the same time?
    By tverik in forum Dead by Daylight Hacks & Cheats
    Replies: 3
    Last Post: 12-04-2017, 07:30 AM
  2. [Release] lSpeed - lua speedhack
    By rip_cdriza in forum Garry's Mod Hacks & Cheats
    Replies: 7
    Last Post: 03-20-2015, 10:37 AM
  3. [Solved] Help Coding Speedhack - New to Lua
    By lil ricky in forum Garry's Mod Discussions & Help
    Replies: 5
    Last Post: 07-18-2014, 02:18 AM
  4. HOSC LUA|DLL - [AMPLIFIED HACKS | SPEEDHACK | GODMODE | ULXFORCEADMIN]
    By RustyBallz in forum Garry's Mod Discussions & Help
    Replies: 6
    Last Post: 07-10-2014, 11:13 AM
  5. how to create speedhacks?
    By LiLLeO in forum General Game Hacking
    Replies: 5
    Last Post: 01-28-2006, 08:52 AM