User File #70484949602926996

Upload All User Files

#70484949602926996 (unlisted) -

april2021_luasync.lua
212 downloads
Uploaded 4/1/2021 7:01 AM by Masterjun (see all 19)
event.onmemoryexecute(function()
  -- $10 -> offset loading time by one frame
  -- $13 -> global framecounter
  -- $14 -> local framecounter
  local fct = emu.framecount()
  if     fct== 1550 then memory.write_u8(0x10,0)
  elseif fct== 9857 then memory.write_u8(0x13,0x75)
  elseif fct==18447 then memory.write_u8(0x13,0xA8)
  elseif fct==27170 then memory.write_u8(0x13,0xB9)
  elseif fct==35656 then memory.write_u8(0x13,0x1E)
  elseif fct==44259 then memory.write_u8(0x13,0x89) memory.write_u8(0x10,0)
  elseif fct==52807 then memory.write_u8(0x13,0x02)
  elseif fct==61358 then memory.write_u8(0x13,0x8A)
  elseif fct==70033 then memory.write_u8(0x13,0x55)
  elseif fct==78530 then memory.write_u8(0x13,0xF1)
  elseif fct==83520 or fct==83849 or fct==83854 or fct==83859 or fct==83864 or fct==83974 or fct==83979 then memory.write_u8(0x10,0)
  elseif fct==87186 then memory.write_u8(0x13,0x79) memory.write_u8(0x14,0xE7)
  end
end,0x0082C3)