Advertisement
Cronokirby

CT elixir glitch

Sep 27th, 2016
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. while true do
  2. green = 0xFF47e778
  3. red = 0xFFff7979
  4. black = 0xFF000000
  5. Lvals = {mainmemory.read_u8(0x968c),mainmemory.read_u8(0x06db),mainmemory.read_u8(0x0027)}
  6.  
  7. C = {}
  8.  
  9. if Lvals[1] > 0 then
  10. C[1] = green
  11. else
  12. C[1] = red
  13. end
  14.  
  15. if Lvals[2] == 0 then
  16. C[2] = green
  17. else
  18. C[2] = red
  19. end
  20.  
  21. if Lvals[3] == 171 then
  22. C[3] = green
  23. else
  24. C[3] = red
  25. end
  26.  
  27. for i = 1,3 do
  28.     gui.text(10,100+((i-1)*15),i .. ":   " .. Lvals[i],black,C[i])
  29.     end
  30.  
  31.     if Lvals[1] > 0 and Lvals[2] == 0 and Lvals[3] == 171 then
  32.     Poss = "Elixir glitch IS possible"
  33.     Color = green
  34.     else
  35.     Poss = "Elixir glitch is NOT possible"
  36.     Color = red
  37.     end
  38.    
  39.     gui.text(10,160,Poss,black,Color)
  40.  
  41. emu.frameadvance()
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement