quarta-feira, 26 de outubro de 2016

DUCKMITE FCEUX NES LUA SCRIPT G.I. JOE ENERGY RECOVER


--G.I Joe (USA)
--Original Written by -- http://www.gamefaqs.com/boards/587689-teenage-mutant-ninja-turtles/70056188
--2016 By Márcio Adriano ( Duckmite)
--This script is an edited compilation of the references above.
--For G.I.Joes the armament levels are auto incremented
--and the bullets will always be recovered. If you enjoy!
--Este script é uma compilação editada da referencia acima.
--Para os G.I.Joes os niveis do armamento são auto incrementados
--e as balas sempre serão recuperadas. Se divirta-se!

local function text(x,y,str)
if (x > 0 and x < 255 and y > 0 and y < 240) then
gui.text(x,y,str)

end;
end;

frame_count=0;

while (true) do

frame_count = frame_count + 1

--Duke
if (frame_count>=60) then
local Stamina1 = memory.readbyte(0x0649)
if (Stamina1 <= 10) then
memory.writebyte(0x0649,Stamina1+1);
end;
end;


--Blizzard
if (frame_count>=60) then
local Stamina2 = memory.readbyte(0x064A)
if (Stamina2 <= 9) then
memory.writebyte(0x064A,Stamina2+1);
end;
end;


--Snake
if (frame_count>=60) then
local Stamina3 = memory.readbyte(0x064B)
if (Stamina3 <= 7) then
memory.writebyte(0x064B,Stamina3+1);
end;
end;

--Cap Grid
if (frame_count>=60) then
local Stamina4 = memory.readbyte(0x064C)
if (Stamina4 <= 6) then
memory.writebyte(0x064C,Stamina4+1);
end;

--Rock
if (frame_count>=60) then
local Stamina5 = memory.readbyte(0x064D)
if (Stamina5 <= 5) then
memory.writebyte(0x064D,Stamina5+1);
end;
end;

--Guns
if (frame_count>=30) then
local Stamina6 = memory.readbyte(0x0727)
if (Stamina6 <= 50) then
memory.writebyte(0x0727,Stamina6+1);
end;
end;

frame_count=0
end;



text(10,10,"Duke"..memory.readbyte(0x0649));
text(10,20,"Blizzard"..memory.readbyte(0x064A));
text(10,30,"Snake"..memory.readbyte(0x064B));
text(10,40,"Cap.Grid"..memory.readbyte(0x064c));
text(10,50,"Rock'n"..memory.readbyte(0x064d));
text(10,60,"Bullet"..memory.readbyte(0x0727));
--text(10,50,"Frames "..frame_count);

emu.frameadvance(3);
end;

Nenhum comentário:

Postar um comentário