SHOW:
|
|
- or go back to the newest paste.
| 1 | local px, cx, py, pxs, pys | |
| 2 | local lpx = 0 | |
| 3 | local lpy = 0 | |
| 4 | ||
| 5 | local function axis(x,y,x2,y2,color) | |
| 6 | gui.box(x,y,x2,y2,color,"#00000040") | |
| 7 | end | |
| 8 | ||
| 9 | local function objects() | |
| 10 | --X1 at 0x260: leftside hitbox X. | |
| 11 | gui.text(94,8,"FLG X1 Y1 ??? ??? HP TMR","#FFFFFF","#000000f0") | |
| 12 | for i = 0, 15 do | |
| 13 | if (i ~= 3 and i ~= 7 and i ~= 11 and i~= 15) then axis(memory.readbyteunsigned(0x260+i)*2,memory.readbyteunsigned(0x240+i)*2+36,memory.readbyteunsigned(0x270+i)*2,memory.readbyteunsigned(0x250+i)*2+36,"#FFFF0010") end | |
| 14 | gui.text(memory.readbyte(0x260+i)*2,memory.readbyte(0x240+i)*2+28,string.format("%d",i),"#000000","#ff0000f0")
| |
| 15 | gui.text(94,7*i+16,string.format("%2X %3d %3d %3d %3d %3d %3d",
| |
| 16 | memory.readbyte(0xe0+i), | |
| 17 | memory.readbyte(0x260+i),memory.readbyte(0x240+i),memory.readbyte(0x2a0+i), | |
| 18 | memory.readbyte(0x2b0+i), | |
| 19 | memory.readbyte(0x2c0+i),memory.readbyte(0x2f0+i)),"#FFFFFFC0","#00000030") | |
| 20 | end | |
| 21 | end | |
| 22 | ||
| 23 | local function Stuff() | |
| 24 | ||
| 25 | --260, 270, 002a, 0064, 065 X | |
| 26 | px = memory.readwordunsigned(0x10, 0x11) + memory.readbyte(0x260) | |
| 27 | py = memory.readbyte(0x250) | |
| 28 | ||
| 29 | pxs = px - lpx | |
| 30 | pys = py - lpy | |
| 31 | ||
| 32 | if (pxs == 0) then gui.text(100,180,"0 X speed!") end | |
| 33 | gui.text(100,200,string.format("X:%3d (%3d)\nY:%3d (%3d)\nLevel: %d", px, pxs, py, pys, memory.readbyte(0xa6)))
| |
| 34 | ||
| 35 | lpx = px | |
| 36 | lpy = py | |
| 37 | ||
| 38 | if (memory.readbyte(0x24) ~= 0x0e) then gui.text(100,170,"LAG!") emu.setlagflag(true) end | |
| 39 | --if (memory.readbyte(0x1ff) ~= 0xc4) then gui.text(100,170,"LAG!") emu.setlagflag(true) end | |
| 40 | ||
| 41 | objects() | |
| 42 | end | |
| 43 | ||
| 44 | emu.registerafter(Stuff) |