Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------
- ----DISPLAY TOGGLES----
- -----------------------
- local enemylife = true
- local playerlife = true
- local caxis = true
- local cheat = true
- -------------------
- ----END TOGGLES----
- -------------------
- local pbase = 0x8A0
- local ebase = 0x6a0
- local ehp = 0x2C
- local php = 0x7E001D
- local ux = 0x02
- local uy = 0x04
- local bx1 = 0x0A -- left
- local bx2 = 0x0E -- Right
- local by1 = 0x0C -- Top
- local by2 = 0x10 -- Bottom
- local camx = 0x7E0022
- local camy = 0x7E0024
- local timer = 0x7E00E5
- local function centeraxis(x,y)
- gui.line(x-6,y,x+6,y,"#FFFFFFFF")
- gui.line(x,y-6,x,y+6,"#FFFFFFFF")
- end
- local function player()
- local LE = memory.readword(camx)
- local TE = memory.readword(camy)
- local x = memory.readword(pbase + ux) - LE
- local y = memory.readword(pbase + uy) - TE
- local x1 = memory.readword(pbase+bx1)
- local x2 = memory.readword(pbase+bx2)
- local y1 = memory.readword(pbase+by1)
- local y2 = memory.readword(pbase+by2)
- local hitpt = memory.readword(0x8C0)
- -- Hard coded attack pointers until I figure out what makes them active
- if hitpt == 0x87A6 or hitpt == 0x886F or hitpt == 0x890E or hitpt == 0x899F or hitpt == 0x8bb9 or hitpt == 0x8c58 or hitpt == 0x8cdb or hitpt == 0x8A97 or hitpt == 0x8A0D or hitpt == 0x8B44 or hitpt == 0x8E38 or hitpt == 0x8ED7 or hitpt == 0x8F53 then
- gui.box(x-x1,y-y1,x+x2,y+y2,"#FFFFFF40","#FFFFFFFF")
- else
- gui.box(x-x1,y-y1,x+x2,y+y2,"#0000FF40","#0000FFFF")
- end
- if playerlife == true then
- gui.text(x-x1+4,y-y1-10,"HP: " .. memory.readbyte(php))
- end
- if caxis == true then
- centeraxis(x,y,y1,y2)
- end
- end
- local function cheats()
- memory.writeword(timer,36363)
- memory.writebyte(php,8)
- end
- local function enemy()
- local LE = memory.readword(camx)
- local TE = memory.readword(camy)
- local base = 0
- local oend = 64
- for i = 0,oend,1 do
- base = ebase + (i * 0x40)
- if i == 0 then
- base = ebase
- end
- if memory.readword(base) == 0 and base ~= pbase then
- local x = memory.readword(base + ux) - LE
- local y = memory.readword(base + uy) - TE
- local x1 = memory.readword(base+bx1)
- local x2 = memory.readword(base+bx2)
- local y1 = memory.readword(base+by1)
- local y2 = memory.readword(base+by2)
- gui.box(x-x1,y-y1,x+x2,y+y2,"#FF000040","#FF0000FF")
- if enemylife == true then
- gui.text(x-x1+4,y-y1-10, "HP: " .. memory.readbyte(base+ehp))
- end
- if caxis == true then
- centeraxis(x,y,false)
- end
- end
- end
- end
- gui.register(function()
- player()
- if cheat == true then
- cheats()
- end
- enemy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment