Language: Lua
cage = {}
gui.register(function()
camx = memory.readwordsigned(0xffc000)
camy = memory.readwordsigned(0xffc002)
base = 0xffbec0
while true do
this = memory.readlong(base)
if this == 0 then break end
this = this - 0xff000000
x, y = nil,nil
if this ~= 0 and this ~= 0xff6298 then -- and this == 0xff633c or this == 0xff654e then
x = memory.readwordsigned(this+0x1a)-camx
y = memory.readwordsigned(this+0x1c)-camy
--gui.drawtext(x,y,string.format("%X",this))
end
base = this
end
for i,v in ipairs(cage) do
gui.drawtext(0,i*8,string.format("%X",memory.readwordunsigned(v+0x2A)))
end
end)
gens.registerbefore(function()
cage = {}
end)
memory.registerexec(0x1DEB62,function()
table.insert(cage,AND(memory.getregister('a6'),0xFFFFFF))
end)
на экране в левом верхнем углу кажет значение когда есть клетка.