User File #12097261121443848

Upload All User Files

#12097261121443848 - Crash Nitro Kart (GBA) - v1.0 lua

CNKGBA - v1.0.lua
1035 downloads
Uploaded 1/18/2014 6:50 PM by Spikestuff (see all 287)
Done, finished... Just one version that's all... I just hope the lua issue gets fixed... oh wait there's a watch version for all the important values.
-- Crash Nitro Kart v1.0
-- 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

while true do
local section = memory.readbytesigned(0x0200C518)
local item = memory.readbytesigned(0x00300450C)
local item2 = memory.readbytesigned(0x030035DC)
local item3 = memory.readbytesigned(0x03003354)
local shot = memory.readbyte(0x03004518)
local shot2 = memory.readbyte(0x030035E8)
local cdwn = memory.readbyte(0x03004510)
local cdwn2 = memory.readbyte(0x030035E0)
local cdwn3 = memory.readbyte(0x03003358)



if section == 1 or section == -12 or section == 16  or section == 36 then -- Speed
	gui.text(37,93,"Speed: " .. memory.readwordsigned(0x03003384))
else if section == 56 then
	gui.text(37,93,"Speed: " .. memory.readwordsigned(0x0300453C))
else if section == 2 then
	gui.text(37,93,"Speed: " .. memory.readwordsigned(0x0300360C))
end end end

if section == 1 then -- Frame Timers : In Game + Total Time
	gui.text(42,17,"Time: " .. memory.readword(0x02005E3C)) else
if section == 16 then
	gui.text(42,17,"Time: " .. memory.readword(0x02005E3C))
	gui.text(42,0,"In: " .. memory.readword(0x02000D30),"#f8f870")
if cdwn3 ~= 0 then
	gui.text(96,44,"Wait: " .. memory.readbyte(0x03003358)-60) end else
if section == 2 then
	gui.text(42,17,"Time: " .. memory.readword(0x02005E3C))
	gui.text(42,0,"In: " .. memory.readword(0x02000D30),"#f8f870")
if cdwn2 ~= 0 then
	gui.text(96,44,"Wait: " .. memory.readbyte(0x030035E0)-60) end else
if section == -12 or section == 56 or section == 36 then
	gui.text(42,17,"Time: " .. memory.readword(0x02005E3C))
	gui.text(42,0,"In: " .. memory.readword(0x02000D30),"#f8f870")
if cdwn ~= 0 then
	gui.text(96,44,"Wait: " .. memory.readbyte(0x03004510)-60) end
end end end end

if section == 56 then -- XYZ Position
	gui.text(37,67,"Y POS: " .. memory.readbyte(0x03004379))
	gui.text(37,75,"Z/X POS: " .. memory.readword(0x03004371)) -- Left/Right
	gui.text(37,83,"X/Z POS: " .. memory.readword(0x03004375)) -- Up/Down	
else if section == 1 or section == -12 or section == 16  or section == 36 then
	gui.text(37,67,"Y POS: " .. memory.readbyte(0x030031C1))
	gui.text(37,75,"Z/X POS: " .. memory.readword(0x030031B9)) -- Left/Right
	gui.text(37,83,"X/Z POS: " .. memory.readword(0x030031BD)) -- Up/Down
else if section == 2 then
	gui.text(37,67,"Y POS: " .. memory.readbyte(0x03003449))
	gui.text(37,75,"Z/X POS: " .. memory.readword(0x03003441)) -- Left/Right
	gui.text(37,83,"X/Z POS: " .. memory.readword(0x03003445)) -- Up/Down	
end end end

if section == 56 then -- Normal/CNK Event (ITEMS)
if item == -1 then
else if item == 0 then
	gui.text(95,29,"TNT/NITRO")
else if item == 1 then
	gui.text(101,29,"SHIELD")
else if item == 2 or item >= 13 then
	gui.text(99,29,"AKU/UKA")
else if item == 3 then
	gui.text(103,29,"BOOST")
else if item == 5 or item == 11 then
	gui.text(99,29,"MISSILE")
if shot > 1 then
gui.text(112,36,memory.readbyte(0x03004518)) end
else if item == 6 then
	gui.text(103,29,"CLOCK")
else if item == 8 then
	gui.text(96,29,"ICE MINE")
else if item == 9 then
	gui.text(99,29,"TORNADO")
else if item == 10 or item == 12 then
	gui.text(106,29,"BOMB")
if shot > 1 then
gui.text(112,36,memory.readbyte(0x03004518)) end
end end end end end end end end end end end
 
if section == 2 then -- Boss Event (ITEMS)
if item2 == -1 then
else if item2 == 0 then
	gui.text(95,29,"TNT/NITRO")
else if item2 == 1 then
	gui.text(101,29,"SHIELD")
else if item2 == 2 or item2 >= 13 then
	gui.text(99,29,"AKU/UKA")
else if item2 == 3 then
	gui.text(103,29,"BOOST")
else if item2 == 5 or item2 == 11 then
	gui.text(99,29,"MISSILE")
if shot2 > 1 then
gui.text(112,36,memory.readbyte(0x030035E8)) end
else if item2 == 6 then
	gui.text(103,29,"CLOCK")
else if item2 == 8 then
	gui.text(96,29,"ICE MINE")
else if item2 == 9 then
	gui.text(99,29,"TORNADO")
else if item2 == 10 or item2 == 12 then
	gui.text(106,29,"BOMB")
if shot2 > 1 then
gui.text(112,36,memory.readbyte(0x030035E8)) end
end end end end end end end end end end end

if section == 16 then -- Purple Token Event (ITEMS)
if item3 == -1 then
else if item3 == 10 or item3 == 12 then
	gui.text(106,29,"BOMB")
end end end

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