Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1.  
  2. local function objects()
  3.     for i = 0,12,1 do
  4.         local x, y, hp, base
  5.         base = 0xFFC700 + (0x80 * i)
  6.         if memory.readword(base) ~= 0 then
  7.             x = memory.readword(base + 0x0A)
  8.             y = memory.readword(base + 0x0E) + memory.readwordsigned(base + 0x12)
  9.             hp = memory.readwordsigned(base + 0x58)
  10.             gui.text(x,y,"HP: " .. hp)
  11.         end
  12.     end
  13. end
  14.  
  15. while true do
  16.     objects()
  17.     emu.frameadvance()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement