menu=gg.choice({'Pesquisa!',-- menu1'Altera!',-- menu2'cancelar atk!',-- menu3'Em caso de erro',-- menu4'atk final',-- menu5'Sair!'-- menu6})--------------Pesquisa--------------------------- if menu ==1then
input = gg.prompt ({'valor de cartas na mao!'},{[1]='valor atual!'},{[1]='number'})if input ==nilthen
os.exit()end
gg.clearList()-- limpa lista de salvos!
gg.getRanges (REGION_C_ALLOC)-- define a regia da pesquisa
gg.searchAddress('000C',0xFFFFFFFF, gg.TYPE_DWORD, gg.SING_EQUAL,0x50000000,0xA0000000)
gg.searchNumber(input[1], gg.TYPE_DWORD,false, gg.SING_EQUAL,0x50000000,0xA0000000)end--/////////////Pesquisa////////////////////////////////////////////---------------Altera-----------------------------------if menu ==2then
menu2 = gg.choice({'Primeiro!','Segundo'})if menu2 ==1then--Primeiro
gg.clearList()local t1 = gg.getResults(5)for i =1,100do
a ={{
address = t1[1].address,--my mao
flags =4},{
address = t1[1].address +0x4,-- my deck
flags =4,-- Dword },{
address = t1[1].address +0xD94,-- CPU MAO
flags =4,-- Dword}
freeze =true,
value =0},{
address = t1[1].address +0xD98,-- CPU deck
flags =4-- Dword} },{
address = t1[1].address +0x5884,-- Dano atk
flags =4,-- Dword}
freeze =true,
value =10000},{
address = t1[1].address +0x5894,-- atk stop
flags =4,-- Dword} }}end-- fecha o for
gg.addListItems(a)
os.exit()end-- fecha o if menu2 == 1if menu2 ==2then-- segundo
gg.clearList()local t1 = gg.getResults(5)for i =1,100do
a ={{
address = t1[1].address,--my mao
flags =4},{
address = t1[1].address +0x4,-- my deck
flags =4,-- Dword},{
address = t1[1].address +0xD94,-- CPU MAO
flags =4,-- Dword}
freeze =true,
value =0},{
address = t1[1].address +0xD98,-- CPU deck
flags =4-- Dword} },{
address = t1[1].address +0x5884,-- Dano atk
flags =4,-- Dword}
freeze =true,
value =0},{
address = t1[1].address +0x5894,-- atk stop
flags =4-- Dword} }}end-- fecha o for
gg.addListItems(a)
os.exit()end-- fecha o if menu2 == 2end--//////////////Altera///////////////////////////////////////////---------------Cancelar atk------------------------------------- if menu ==3then
gg.clearList()local t1 = gg.getResults(5)-- testa o gg.getList(6)for i =1,100do
a ={{
address = t1[1].address +0xD94,-- cpu mao
flags =4,-- Dword
freeze =true,
value =0},{
address = t1[1].address +0x5894,-- atk stop
flags =4,-- Dword}
freeze =true,
value =1}}end-- fecha o for
gg.addListItems(a)
os.exit()end--//////////////Cancelar atk///////////////////////////////////////////----------------Em caso de erro------------------------------------if menu ==4then
gg.clearList()local t1 = gg.getResults(5)for i =1,100do
a ={{
address = t1[1].address +0xD94,-- CPU MAO
flags =4,-- Dword}
freeze =true,
value =0},{
address = t1[1].address +0xD98,-- CPU deck
flags =4,-- Dword}
value =0},{
address = t1[1].address +0x5894,-- atk stop
flags =4,-- Dword}
freeze =true,
value ='1'}}
gg.addListItems(a)
os.exit()end-- fecha oend--///////////////Em caso de erro//////////////////////////////////////////----------------final------------------------------------if menu ==4then
gg.clearList()local t1 = gg.getResults(5)for i =1,100do
a ={{
address = t1[1].address +0xD94,-- my deck
flags =4,-- Dword
value =0},{
address = t1[1].address +0x5884,-- Dano atk
flags =4,-- Dword}
freeze =true,
value =10000},}
gg.addListItems(a)
gg.clearResults(t1)
os.exit()end-- fecha oend--///////////////final//////////////////////////////////////////-----------------Sair-----------------------------------if menu ==6then
os.exit()end--////////////////Sair/////////////////////////////////////////
in the part between:
-------------------Final--------------
and
//////////////Final//////////////////
the code is being executed correctly however, the first address I send it saves, freezes and changes to "0", and does everything right but it doesn't change the value to "0"! This makes no sense because everyone is working in the script but this is not! can you help me?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
Alexxagra
in the part between:
-------------------Final--------------
and
//////////////Final//////////////////
the code is being executed correctly however, the first address I send it saves, freezes and changes to "0", and does everything right but it doesn't change the value to "0"! This makes no sense because everyone is working in the script but this is not! can you help me?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.