Created
November 28, 2018 15:29
-
-
Save ylxdzsw/13789a69a91cc9e5efc2a6c17fb8afde to your computer and use it in GitHub Desktop.
cheat engine regenerate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function regen(t) | |
local cv1 = readInteger(0x93CCB120) | |
local cv2 = readInteger(0x93CCB0E4) | |
if cv1 < 34 then | |
writeInteger(0x93CCB120, cv1 + 1) | |
end | |
if cv2 < 4 then | |
writeInteger(0x93CCB0E4, cv2 + 1) | |
end | |
end | |
function timerOn() | |
t = createTimer(nil) | |
t.Interval = 500 | |
t.OnTimer = regen | |
t.Enabled = true | |
end | |
[enable] | |
luacall(timerOn()) | |
[disable] | |
luacall(t.destroy()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment