Confirmed that still works changing the search type to FLOAT instead of DWORD.
My old script to modify Clone Sergeant (lvl 1, with 1 star and gear 1, without any gear equiped) was like this (the values searched are "Health;Speed;Offense"):
::menu::
if gg.isVisible(true)
then gg.setVisible(false)
end
gg.clearResults()
var2 = gg.choice({
'Exit',
'Clone Sergeant (1 star - lvl 1 G1)',
}, nil)
if var2 == 1
then goto exit
elseif var2 == 2
then goto Clone1G1
elseif var2 == nil
then goto sleep
end
::Clone1G1::
gg.clearResults()
gg.searchNumber('487;80;40', gg.TYPE_DWORD)
gg.getResults(1000)
gg.editAll('800000;850000;900000', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('OK')
goto sleep
::sleep::
gg.setVisible(false)
::sleepphase2::
gg.sleep(100)
if gg.isVisible(true)
then goto menu
else goto sleepphase2
end
::exit::
os.exit()
So is needed change the TYPE_DWORD to TYPE_FLOAT, like this:
::menu::
if gg.isVisible(true)
then gg.setVisible(false)
end
gg.clearResults()
var2 = gg.choice({
'Exit',
'Clone Sergeant (1 star - lvl 1 G1)',
}, nil)
if var2 == 1
then goto exit
elseif var2 == 2
then goto Clone1G1
elseif var2 == nil
then goto sleep
end
::Clone1G1::
gg.clearResults()
gg.searchNumber('487;80;40', gg.TYPE_FLOAT)
gg.getResults(1000)
gg.editAll('800000;850000;900000', gg.TYPE_FLOAT)
gg.clearResults()
gg.toast('OK')
goto sleep
::sleep::
gg.setVisible(false)
::sleepphase2::
gg.sleep(100)
if gg.isVisible(true)
then goto menu
else goto sleepphase2
end
::exit::
os.exit()
By this way it works well as always, the only bad thing is that the search delays 20 seconds instead of 3 seconds.
I tried with other type of search like TYPE_AUTO, TYPE_BYTE, TYPE_DOUBLE, TYPE_QWORD, TYPE_WORD and TYPE_XOR but any of them worked, so only TYPE_FLOAT is working.
Thanks to @Lyana for the advice