Download JP.luaLanguage: lua
function stuff()
camX = memory.readwordsigned(0x7b,0x7c)
camY = memory.readwordsigned(0x7d,0x7e)
youX = memory.readword(0xab,0xbd)
youY = memory.readword(0xcf,0xe1)
gui.text(100,1,string.format("X: %d\nY: %d",youX,youY))
for i=0,18 do
id = memory.readbyte(0x3da+i)
hp = memory.readbytesigned(0x47c+i)
x = memory.readword(0xab+i,0xbd+i)-camX-40
y = memory.readword(0xcf+i,0xe1+i)-camY-40
if id>0 then
gui.text(x,y,string.format("%d\n%X",i,id))
end
end
end
emu.registerafter(stuff)
The level starts with that egg object spawning in slot 11. When you destroy it, it instantly respawns in slot 4
at the same place. If you despawn the egg by walking down a bit and then respawn it by walking up again, it is in slot 4 now, and you can still dup it. But if you go down so much that an enemy spawns in slot 4, even if you kill that enemy before destroying the egg, it won't dub anymore.
This is
what happens.
Why - will see tomorrow.