So I have the next cheat:
<cheat desc="Mai's boobs bouncing">
-<script state="run">
<action>maincpu.pb@10AC22=00</action>
And I try to convert to lua like this:
while true do
memory.writebyte (0x10AC22,0x00)
emu.frameadvance()
end
But it simply doesn't work. However, I did the same for infinite credits and it's working. I tried this cheat on MAME and it's working without issues, what am I doing wrong?