RyanFialcowitz How do I cheat? Reputation: 0
Joined: 16 Mar 2012 Posts: 8
|
Posted: Mon Mar 19, 2012 8:00 am Post subject: Need Help Turning A Script Into An Executable |
|
|
I'd like to turn this script I found for Deus Ex: Human Revolution into an executable. Currently, I run the game then Cheat Engine and add the script via the Show Cheat Table Lua Script option and everything works fine in game. But I've met with no success at turning this script into an executable.
If possible I would also like the the executable to run the game itself and shut itself down when I quit the game. I also would prefer the executable to not display a menu, not sure that's viable though.
The script:
Code: | -- set this to the max number of batteries to regenerate
local batteries = 5;
local addr = "[[[[dxhr.exe+01723728]+14]+44]+11c]+1fc";
local f = createForm( true );
local t = createTimer( f, true );
timer_setInterval( t, 1000 );
timer_onTimer( t, function( )
local energy = readFloat(addr);
if math.abs(energy % 30.0) < 0.005 and energy < 30*batteries then
writeFloat(addr, energy + 0.01);
end
end ); |
- Ryan Paul Fialcowitz
|
|