Skip to content

Instantly share code, notes, and snippets.

@ylxdzsw
Created November 28, 2018 15:29
Show Gist options
  • Save ylxdzsw/13789a69a91cc9e5efc2a6c17fb8afde to your computer and use it in GitHub Desktop.
Save ylxdzsw/13789a69a91cc9e5efc2a6c17fb8afde to your computer and use it in GitHub Desktop.
cheat engine regenerate
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