Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slide_count = 0
- while true do
- area = memory.readbyte(0x03001644)
- areab = memory.readbyte(0x0200000E)
- mask = memory.readbyte(0x0200009C)
- 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.
- then joypad.set(1,{right = true, R = true});
- slide_count = slide_count + 1; end
- if slide_count == 2 and memory.readwordsigned(0x2010A74) <= 608 and memory.readwordsigned(0x2010A74) >= 552 then
- joypad.set(1,{right = true, B = true});
- if memory.readwordsigned(0x2010DDC) > 0 then -- Checking if spin is greater than 0 to run it. It's messy, I know.
- slide_count = slide_count-4;
- end end
- gui.text(2,1,"Count: "..slide_count)
- vba.print("Slide: "..slide_count);
- if area == 16 then
- slide_count = 0 -- Clears the count when in Warp Room
- aku = memory.readbyte(0x0200009C)
- gui.text(2,9,"Mask Level: " .. aku,"yellow") else
- end
- if area == 0 and areab == 1 then -- Normal
- gui.text(2,32,"Pixel X: " .. memory.readword(0x2010A15))
- gui.text(2,40,"Pixel Y: " .. memory.readword(0x2010A19))
- gui.text(2,48,"Speed X: " .. memory.readwordsigned(0x2010A74))
- gui.text(2,56,"Speed Y: " .. memory.readwordsigned(0x2010A78))
- if area == 1 or area == 8 then
- gui.text(2,136," Spin Dur.: 24/" .. memory.readwordsigned(0x2010DDC),"green")
- else
- gui.text(2,128,"Slide Time: 22/" .. memory.readwordsigned(0x2010DDC),"yellow")
- gui.text(2,136," Spin Time: 23/" .. memory.readwordsigned(0x2010DDC),"yellow") end
- end
- if memory.readwordsigned(0x2010A78) ~= 0 or memory.readwordsigned(0x2010A74) < 100 then
- -- Checking to see if not on ground or checking to see if speed is gone to restart process.
- slide_count = 0 end
- vba.frameadvance() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement