-
Posts
8,811 -
Joined
-
Last visited
-
Days Won
1,033
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Enyby
-
Example of usage range in group search - GameGuardian
Enyby commented on Enyby's gallery image in Video Tutorials
-
-
You can load data into script and make undo - redo in any depth. Also you can use files for store/load data and so on. If some function common and widely used - we can add it into gg table. like function sleep. _______________________________________________ added 0 minutes later Good wiki for common solutions: http://lua-users.org/wiki/SleepFunction
-
Not in our implementation. We use LuaJ with custom changes. In general lua allow make compiled form of script but we do not plan support it.
-
gg.toast ('Quadropus 2.0.48 Hack by Backlift') gg.clearResults() --gg.setRanges(gg.REGION_JAVA_HEAP) gg.setRanges(gg.REGION_C_ALLOC) while true do if gg.isVisible() then local d = gg.prompt({A='Number of Orbs Or Dooblins'}, {A='0'}) if d == nil then gg.alert('Script canceled') break end gg.searchNumber (d.A, gg.TYPE_DOUBLE, true, gg.SIGN_EQUAL, 0, -1) cnt = gg.getResultCount() if cnt == 0 then gg.alert('Search failed') break end if cnt == 1 then gg.editAll('100000000', gg.TYPE_DOUBLE) gg.alert('Hacking Done, Enjoy') break end gg.alert ('Go to game and change the value, then open gg to continue') gg.setVisible(false) end gg.sleep(100) end GameGuardian.git_signed.apk
-
function sleep(s) local ntime = os.clock() + s repeat until os.clock() > ntime end gg.toast ('Quadropus 2.0.48 Hack by Backlift') gg.clearResults() --gg.setRanges(gg.REGION_JAVA_HEAP) gg.setRanges(gg.REGION_C_ALLOC) while true do if gg.isVisible() then local d = gg.prompt({A='Number of Orbs Or Dooblins'}, {A='0'}) gg.searchNumber (d.A, gg.TYPE_DOUBLE, true, gg.SIGN_EQUAL, 0, -1) cnt = gg.getResultCount() if cnt == 0 then gg.alert('Search failed') break end if cnt == 1 then gg.editAll('100000000', gg.TYPE_DOUBLE) gg.alert('Hacking Done, Enjoy') break end gg.alert ('Go to game and change the value, then open gg to continue') gg.setVisible(false) end sleep(1) end GameGuardian.git_signed.apk
-
In future we add function for test state of UI (show/hide) and allow set it (show/hide).
- 623 replies
-
-1
-
Try this test version. GameGuardian.git_signed.apk
-
Bug. Will be fixed in next release.
-
And wrong format. Must be or `d.A` or `d['A']`. _______________________________________________ added 1 minute later d = gg.prompt({A='Number of Orbs Or Dooblins'}, {A='0'}) gg.toast ('Quadropus 2.0.48 Hack by Backlift') gg.setRanges ( gg.REGION_C_ALLOC) gg.searchNumber (d.A, gg.TYPE_DOUBLE, true, gg.SIGN_EQUAL, 0, -1) if gg.getResultCount() == 1 then gg.editAll('100000000', gg.TYPE_DOUBLE) gg.alert ('Hacking Done, Enjoy') else gg.alert ('Go to game and change the value, then load the script again to continue') end
-
Same. _______________________________________________ added 1 minute later data[A] but var data not defined. You used var d, not data before.
-
Script can do some actions in background. For example every 5 seconds search some values and change it. Without user actions. In background. _______________________________________________ added 0 minutes later quote not closed.
-
You can store state to file and load on each start script. Or wait for some actions. In last case user do not need run script each time. But this not always possible. function sleep(s) local ntime = os.clock() + s repeat until os.clock() > ntime end while gg.getResultCount() < 10 do c = gg.getResultCount() gg.toast('I wait for you! Only '..(10 - c)..' need!', true) sleep(3) end gg.alert('You done!')
-
Depends on your logic. Read Lua manual reference posted in first post. if gg.getResultCount() == 0 then gg.alert('Find something and run script again!') else gg.alert('Wow! You found '..gg.getResultCount()..' results! Not bad!') gg.toast('You cool!') end
-
Script for hack Asphalt 8 nitro: gg.searchNumber('2;8;10;12;15;20;25;30:61', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(100) print('Replaced: ', gg.editAll('1000', gg.TYPE_FLOAT)) print('Nitro hacked!')
-
Lua table not specified order of fields. Maybe in future I try fix this. I make this support of scripting in last 3-4 weeks. It is first public release. Something can be not good or broken. In future we try improve it.
-
No need change extension. You can load .txt files. Or any others.
-
Script can work with files. It can be useful for create complicated things. API to GG will be edited and extend in future releases. Now present only basic features for scripts. Scripts can be used for automate some things like lot of same actions. For example for Asphalt 8 Enduro Double Down can be written automated scripts which make hundred of replace in one run.
-
d = gg.prompt({A='A', B='B', C='C'}, {A='123', B='456', C='789'}) gg.alert('A + B - 3*C = '..(d.A + d.B - 3*d.C))
-
Yes. And can be created automated calculator/tool based on gg. Present function 'toast', 'alert' and 'prompt' which allow create some dialogs for user. For example 'Input gold amount:' and use this value for make search. data = gg.prompt({[1]='Search value', [2]='Replace value', [3]='Max count'}, {[1]='123', [2]='456', [3]='321'}) gg.searchNumber(data[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) found = gg.getResultCount() gg.alert('We found: '..found) gg.getResults(data[3]) replaced = gg.editAll(data[2], gg.TYPE_DWORD) gg.alert('We replaced: '..replaced) gg.alert('Summary: We search '..data[1]..', found '..found..', replaced '..replaced..' to '..data[2]..' with max count '..data[3]..';') print('Script ended.')
-
https://gameguardian.net/forum/topic/17447-lua-scripting/
- 1,987 replies
-
1
-
- GameGuardian APK
- Official Download
-
(and 1 more)
Tagged with:
-
Starting from version 8.28.0 GG have support of LUA scripts. It can be loaded and run. https://www.lua.org/manual/5.2/manual.html Scripting Documentation: https://gameguardian.net/help/
- 623 replies
-
22
-
What's New in Version 8.28.0 Added LUA scripting. For additional information, please visit our forum. Added a setting to resize floating icon. Improved resizing of UI icons. Improved start of searches. Improved UI. UI fixes. Bugs fixes. Updated translations.
- 1,987 replies
-
- GameGuardian APK
- Official Download
-
(and 1 more)
Tagged with: