Jump to content
  • 0

how to search for a value if it is larger by the script


Mustang4409281

Question

I need to modify a certain value in the game, I already have the address: 13 ??????, But I want to filter further, for this I want to search for a value less than 20 and I have no idea how..

function AgeTest()
--<
local choice=gg.choice({'BalaInfinita','sair'})
if choice == 1 then BalaInfinita() end
if choice == 2 then sair() end
end
-->
function BalaInfinita()
gg.setRanges(gg.REGION_JAVA_HEAP)
gg.searchAddress('13??????', 0xFFFFFFFF, gg.TYPE_DWORD)
gg.searchNumber('20')
gg.getResults("3000")
end
function sair()
os.exit()
end
while true do
if gg.isVisible() then
gg.setVisible(false)
AgeTest()
end
end

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

 you can use the function gg.refineNumber with the parameters SIGN_LESS_OR_EQUAL.

add this code after your gg.searchNumber.

gg.refineNumber("20", gg.TYPE_DWORD, false, SIGN_LESS_OR_EQUAL , 0, -1, 0)

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.