Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- check = 15
- xpos = 0x000970AA
- frame = emu.framecount()
- finframe = frame + 230
- counter = 0
- local c={}
- c['r2']=1
- Save = savestate.create()
- savestate.save(Save)
- function printstuff(frame, pos)
- gui.text(4,28,"Frame: " .. frame)
- gui.text(4,40,"Position: " .. pos)
- end
- a = memory.readword(xpos)
- while true do
- memory.writeword(xpos, a)
- if emu.framecount() >= frame + counter and emu.framecount() < finframe then
- joypad.set(1, c)
- printstuff(frame+counter, memory.readwordsigned(xpos))
- emu.frameadvance()
- else
- if emu.framecount() > finframe then
- savestate.load(Save)
- counter = counter + 1
- if counter > check then
- counter = 0
- a = a + 1
- end
- end
- end
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement