Advertisement
Spikestuff

Crash Slide Slide Spin

Mar 29th, 2015
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.83 KB | None | 0 0
  1. slide_count = 0
  2.  
  3. while true do
  4. area = memory.readbyte(0x03001644)
  5. areab = memory.readbyte(0x0200000E)
  6. mask = memory.readbyte(0x0200009C)
  7.  
  8. if slide_count < 2 and memory.readwordsigned(0x2010A74) >= 100 and memory.readwordsigned(0x2010DDC) == 0 and memory.readwordsigned(0x2010A78) == 0 -- Checking if there is movement then checking if a spin is done then checking if there is no Y speed.
  9.     then joypad.set(1,{right = true, R = true});
  10.     slide_count = slide_count + 1; end
  11.                  
  12. if slide_count == 2 and memory.readwordsigned(0x2010A74) <= 608 and memory.readwordsigned(0x2010A74) >= 552 then
  13.     joypad.set(1,{right = true, B = true});
  14. if memory.readwordsigned(0x2010DDC) > 0 then -- Checking if spin is greater than 0 to run it. It's messy, I know.
  15.     slide_count = slide_count-4;
  16. end end
  17.  
  18. gui.text(2,1,"Count: "..slide_count)
  19. vba.print("Slide: "..slide_count);
  20.  
  21. if area == 16 then
  22.     slide_count = 0 -- Clears the count when in Warp Room
  23.     aku = memory.readbyte(0x0200009C)
  24.     gui.text(2,9,"Mask Level: " .. aku,"yellow") else
  25. end
  26.  
  27. if area == 0 and areab == 1 then -- Normal
  28.     gui.text(2,32,"Pixel X: " .. memory.readword(0x2010A15))
  29.     gui.text(2,40,"Pixel Y: " .. memory.readword(0x2010A19))
  30.     gui.text(2,48,"Speed X: " .. memory.readwordsigned(0x2010A74))
  31.     gui.text(2,56,"Speed Y: " .. memory.readwordsigned(0x2010A78))
  32.     if area == 1 or area == 8 then
  33.         gui.text(2,136," Spin Dur.: 24/" .. memory.readwordsigned(0x2010DDC),"green")
  34.     else
  35.         gui.text(2,128,"Slide Time: 22/" .. memory.readwordsigned(0x2010DDC),"yellow")
  36.         gui.text(2,136," Spin Time: 23/" .. memory.readwordsigned(0x2010DDC),"yellow") end
  37. end
  38.  
  39. if memory.readwordsigned(0x2010A78) ~= 0 or memory.readwordsigned(0x2010A74) < 100 then
  40. -- Checking to see if not on ground or checking to see if speed is gone to restart process.
  41. slide_count = 0 end
  42.  
  43. vba.frameadvance() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement