User File #11960556454390149

Upload All User Files

#11960556454390149 - Crash HA lua v1.7

CrashGBA - 1.7.lua
978 downloads
Uploaded 1/12/2014 3:05 PM by Spikestuff (see all 287)
-- Crash Huge Adventure lua v1.7
-- This is Community Work Please Help
-- Join in add updates of your own and add your name

-- Values found by: Spikestuff, Got4n
-- Script Edited by: Spikestuff, Warepire, Ilari, Diam
-- Thanks to: true (FALSE!)

while true do
local air = memory.readbyte(0x02010A7C)
local airb = memory.readbyte(0x03007C82)
local pack = memory.readbyte(0x02010A71)
local area = memory.readbyte(0x02010E06)
local areab = memory.readbyte(0x02010DD1)
local mask = memory.readbyte(0x0200009C)
boss = memory.readbyte(0x02003AB8)
-- bossn = memory.readshort(0x030015D8)
lvl = memory.readbyte(0x020000E8)
bossc = memory.readbyte(0x020002A7)
local bombhealth = memory.readbyte(0x03004130)
local turthealth = memory.readbyte(0x030040B0)
dshi = memory.readbyte(0x02003EFC)
cdw = memory.readbyte(0x02010DE7)


-- SPEED AND/OR PIXEL POS.
if boss == 64 or boss == 132 then else
if lvl == 23 then --Cortex
	gui.text(94,8,"PixelX: " .. memory.readshort(0x02010A15))
	gui.text(94,16,"PixelY: " .. memory.readshort(0x02010A19))
	gui.text(169,8,"SpeedX: " .. memory.readwordsigned(0x02010A74))
	gui.text(169,16,"SpeedY: " .. memory.readwordsigned(0x02010A78))
	gui.text(1,120,"Camera: " .. memory.readshort(0x02006E5D),"teal")
	gui.text(1,129,"Spin Time 23/" .. memory.readbyte(0x02010DDC))
	gui.text(1,138,"Slide Time: 22/" .. memory.readbyte(0x02010DDC))
	gui.text(94,138,"Cortex Cooldown: " .. memory.readbyte(0x020123F4))
else if areab == 0 then -- Polar
	gui.text(1,111,"Speed " .. memory.readbyte(0x03003F18) .. "/2","teal")
else if area == 1 or area == 2 then -- Normal
	gui.text(8,30," PixelX: " .. memory.readshort(0x02010A15),"orange")
	gui.text(8,38," PixelY: " .. memory.readshort(0x02010A19),"orange")
	gui.text(8,46," SpeedX: " .. memory.readwordsigned(0x02010A74),"orange")
	gui.text(8,54," SpeedY: " .. memory.readwordsigned(0x02010A78),"orange")
	gui.text(1,120,"Camera: " .. memory.readshort(0x02006E5D),"teal")
	gui.text(1,129,"Spin Time 23/" .. memory.readbyte(0x02010DDC))
	gui.text(1,138,"Slide Time: 22/" .. memory.readbyte(0x02010DDC))
else if area == 0 or area == 32 or area == 16 then -- Bonus
	gui.text(8,30," PixelX: " .. memory.readshort(0x02010E2D),"#CCFF33")
	gui.text(8,38," PixelY: " .. memory.readshort(0x02010E31),"#CCFF33")
	gui.text(8,46," SpeedX: " .. memory.readwordsigned(0x02010E8C),"#CCFF33")
	gui.text(8,54," SpeedY: " .. memory.readwordsigned(0x02010E81),"#CCFF33")
	gui.text(1,120,"Camera: " .. memory.readshort(0x02007275),"teal")
	gui.text(1,129,"Spin Time 23/" .. memory.readbyte(0x020111F4))
	gui.text(1,138,"Slide Time: 22/" .. memory.readbyte(0x020111F4))
else if area == 5 or lvl == 8 then -- Water
	gui.text(8,30," PixelX: " .. memory.readdwordunsigned(0x02010A80))
	gui.text(8,38," PixelY: " .. memory.readdwordunsigned(0x02010A84))
	gui.text(8,46," SpeedX: " .. memory.readwordsigned(0x02010A74))
	gui.text(8,54," SpeedY: " .. memory.readwordsigned(0x02010A78))
	gui.text(8,62," Swim: " .. memory.readbytesigned(0x02010DE6))
	gui.text(1,120,"Camera: " .. memory.readshort(0x02006E5D),"teal")
	gui.text(1,128,"Spin Dur.: 24/" .. memory.readshort(0x02010DDC),"teal")
if cdw ~= 0 then
	gui.text(1,136,"Cooldown: " .. memory.readbyte(0x02010DE7)-1,"teal") end
else if area == 119 then -- Flying
	gui.text(1,111,"Pack: " .. memory.readbyte(0x02003484),"teal")
	gui.text(1,120,"Cooldown: " .. memory.readbyte(0x030014E0),"teal")
if lvl == 21 then -- N.Gin
	gui.text(165,46," Rockets: " .. memory.readshort(0x030041B0)/2 .. "/" .. memory.readshort(0x03004230)/2,"teal")
	if bombhealth ~= 255 then gui.text(165,38," Bomb: " .. (bombhealth+1)/2,"teal") else gui.text(165,38," Bomb: 0", "teal") end
	if turthealth ~= 255 then gui.text(165,54," Turret: " .. (turthealth+1)/2,"teal") else gui.text(165,54," Turret: 0", "teal") end
end end end end end end end end

-- Instage time: This resets on deaths WE DON'T WANT DEATH
if boss == 64 or boss == 132 then else
if area == 1 or area == 2 or area == 5 or lvl == 8 or area == 0 or area == 32 or area == 16 then
	gui.text(1,111,"LTime: " .. memory.readshort(0x0300082C),"#CFCFCF") else
if areab == 0 then
	gui.text(1,119,"LTime: " .. memory.readshort(0x03001404),"#CFCFCF") else
if area == 119 then
	gui.text(1,129,"LTime: " .. memory.readshort(0x03001404),"#CFCFCF")
end end end end


--  Level Check
 if boss == 64 or boss == 132  then else
	if areab == 0 then gui.text(1,102,"POLAR","#D6AD33") else -- POLAR
	if area == 5 or lvl == 8 then gui.text(1,102,"WATER","teal") else -- WATER
	if area == 119 then gui.text(1,102,"FLYING","#DBB84D") else -- FLYING
-- Bonus
	if airb == 0 then gui.text(1,102,"GROUND","#999900") else
	if airb == 2 then gui.text(1,102,"AIR","#66FFCC") else
-- Normal
	if air == 8 then gui.text(1,102,"GROUND","#999900") else
	if air == 0 then gui.text(1,102,"AIR","#66FFCC") else
end end end end end end end end

if areab == 0 then
if mask == 3 then
	gui.text(84,54,"SAFE: " .. memory.readshort(0x0300147C),"yellow")end else
if mask == 3 then
	gui.text(84,54,"SAFE: 1025 / " .. memory.readshort(0x03001DD0),"yellow") else end end

-- Dingodile Check
if boss > 0 and boss < 4 then
	if lvl == 20 then gui.text(169,46,"Shield: " .. ((dshi == 1) and "ON" or "OFF")); end
end


-- Mask Check
if mask > 0 and mask < 4 then if boss == 64 then
	gui.text(84,26,"Mask Level: " .. memory.readshort(0x0200009C),"yellow") else
if area == 119 or boss == 132  then else
if lvl == 20 or lvl == 22 then
	gui.text(169,38,"Mask Level: " .. memory.readshort(0x0200009C),"yellow") else
if lvl == 23 then
	gui.text(94,24,"Mask Level: " .. memory.readshort(0x0200009C),"yellow") else
	gui.text(84,46,"Mask Level: " .. memory.readshort(0x0200009C),"yellow")
end end end end end


if boss == 64 or boss == 132 then gui.text(84,18,"Lives: " .. memory.readshort(0x02000098)) else
if lvl == 20 or lvl == 21 or lvl == 22 or lvl == 23 then
	gui.text(39,8,"Lives: " .. memory.readshort(0x02000098)) else
	gui.text(84,38,"Lives: " .. memory.readshort(0x02000098))
if lvl == 20 or lvl == 21 or lvl == 22 or lvl == 23 or boss == 64 or boss == 132 then else
	gui.text(84,30,"Boxes: " .. memory.readshort(0x02003474) .. " / " .. memory.readshort(0x02000094))
end end end

 
--things that don't need to change.
if movie.active()==false then gui.drawbox(150,148,240,160, "red")
if movie.active()==false then gui.text(158,151, "MOVIE NOT RECORDING") end end
if movie.active()==true then gui.text(1,0,"RR: " .. movie.rerecordcount()) end
  vba.frameadvance() end