Jump to content

LUA scripting


Enyby
 Share

Recommended Posts

6 minutes ago, SolarHacks said:

Help
if menu == nil then end goto Mainmenu end

It should be like this :

if menu == nil then goto Mainmenu end  

Edited by AjayP
Link to comment
Share on other sites

::mainmenu::
mainmenu = gg.choice({'1. GodMode','2. Unlimited Ammo','3.Exit'})
if mainmenu == 1 then goto godmode end
if mainmenu == 2 then goto ammo end
if mainmenu == 3 then goto exit end
if mainmenu == nil then goto mainmenu end


::godmode::
go = gg.choice({'1. Click Me For GodMode','2.Back'})
if godmode == 1 then goto godmode1 end
if godmode == 2 then goto mainmenu end


-- godmode1
::godmode1::
 gg.clearResults()
gg.searchNumber('500', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('500', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('999999', gg.TYPE_FLOAT)
gg.toast('')
goto mainmenu


-- ammo
::ammo::
ammo = gg.choice({'1. CLICK ME FOR UNLIMITED AMMO...','2. Back'})
if ammo == 1 then goto ammo1 end
if ammo == 2 then goto mainmenu end

-- ammo1
::ammo1::
a = gg.prompt({A='Your ammo'},{A='number'}) 
goto ammo2

::ammo2::
gg.clearResults()
gg.searchNumber(a.A..';30~30', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber(a.A..';1~100', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber(a.A, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(1000)
goto ammo3

::ammo3::
b = gg.prompt({B='Change Ammo To'},{B='number'}) 
goto ammo4

::ammo4::
gg.editAll(b.B, gg.TYPE_DWORD)
gg.clearResults()
gg.toast('Ammo Hacked Successfully')
goto mainmenu


::exit::
gg.toast('done')
os.exit()

Edited by SolarHacks
Link to comment
Share on other sites

7 hours ago, SolarHacks said:

::godmode::
go = gg.choice({'1. Click Me For GodMode','2.Back'})
if godmode == 1 then goto godmode1 end
if godmode == 2 then goto mainmenu end

It should be : 

if go == 1 then ........

Not godmode 

And same for the ammo.

And did u just copy my script? 

Link to comment
Share on other sites

Phew finally got SpeedHack|GodMode|Full Stamina|Arena Hacks Ready but now i gotta work on Unlimited ammo so the problem is my script does what i ask but it finds too many addresses (about 6k)

And if i change all game crash

So is there enyway to have specific search???

Link to comment
Share on other sites

On 24/07/2017 at 12:43 AM, Enyby said:

Updated gg table:

  Hide contents


gg =   table(538aa1ec): {
       [BUILD] = 5713
       [CACHE_DIR] = /data/data/catch_.me_.if_.you_.can_/cache
       [EXT_CACHE_DIR] = /mnt/sdcard/Android/data/catch_.me_.if_.you_.can_/cache
       [EXT_FILES_DIR] = /mnt/sdcard/Android/data/catch_.me_.if_.you_.can_/files
       [FILES_DIR] = /data/data/catch_.me_.if_.you_.can_/files
       [PACKAGE] = catch_.me_.if_.you_.can_
       [REGION_ANONYMOUS] = 32
       [REGION_ASHMEM] = 524288
       [REGION_BAD] = 131072
       [REGION_CODE_APP] = 16384
       [REGION_CODE_SYS] = 32768
       [REGION_C_ALLOC] = 4
       [REGION_C_BSS] = 16
       [REGION_C_DATA] = 8
       [REGION_C_HEAP] = 1
       [REGION_JAVA] = 65536
       [REGION_JAVA_HEAP] = 2
       [REGION_OTHER] = -1032320
       [REGION_PPSSPP] = 262144
       [REGION_STACK] = 64
       [SIGN_EQUAL] = 536870912
       [SIGN_INEQUAL] = 268435456
       [SIGN_LARGER] = 67108864
       [SIGN_SMALLER] = 134217728
       [TYPE_AUTO] = 127
       [TYPE_BYTE] = 1
       [TYPE_DOUBLE] = 64
       [TYPE_DWORD] = 4
       [TYPE_FLOAT] = 16
       [TYPE_QWORD] = 32
       [TYPE_WORD] = 2
       [TYPE_XOR] = 8
       [VERSION] = 8.29.0
       [VERSION_INT] = 82900
       [alert] = function: alert /* gg.alert(string text[, string positive[, string negative[, string neutral]]]) -> int: 0 = cancel, 1 = positive, 2 = negative, 3 = neutral */
       [choice] = function: choice /* gg.choice(table items[, string selected]) -> string || nil */
       [clearResults] = function: clearResults /* gg.clearResults() -> nil */
       [copyMemory] = function: copyMemory /* gg.copyMemory(long from, long to, int bytes) -> true || string with error */
       [dumpMemory] = function: dumpMemory /* gg.dumpMemory(long from, long to, string dir) -> true || string with error */
       [editAll] = function: editAll /* gg.editAll(string value, int type) -> count of changed || string with error */
       [getRanges] = function: getRanges /* gg.getRanges() -> int */
       [getResultCount] = function: getResultCount /* gg.getResultCount() -> long */
       [getResults] = function: getResults /* gg.getResults(int count) -> array || string with error */
       [getSelectedPackage] = function: getSelectedPackage /* gg.getSelectedPackage() -> string || nil */
       [getSpeed] = function: getSpeed /* gg.getSpeed() -> double */
       [getValuesRange] = function: getValuesRange /* gg.getValuesRange(table values) -> table || string with error */
       [getValues] = function: getValues /* gg.getValues(table values) -> table || string with error */
       [gotoAddress] = function: gotoAddress /* gg.gotoAddress(long address) -> nil */
       [isPackageInstalled] = function: isPackageInstalled /* gg.isPackageInstalled(string pkg) -> bool */
       [isProcessPaused] = function: isProcessPaused /* gg.isProcessPaused() -> bool */
       [isVisible] = function: isVisible /* gg.isVisible() -> bool */
       [multiChoice] = function: multiChoice /* gg.choice(table items[, table selection]) -> table || nil */
       [processKill] = function: processKill /* gg.processKill() -> bool */
       [processPause] = function: processPause /* gg.processPause() -> bool */
       [processResume] = function: processResume /* gg.processResume() -> bool */
       [processToggle] = function: processToggle /* gg.processToggle() -> bool */
       [prompt] = function: prompt /* gg.prompt(table prompts[, table defaults[, table types]]) -> nil || table with keys from prompts and values from inputs */
       [removeResults] = function: removeResults /* gg.removeResults(table results) -> true || string with error */
       [searchAddress] = function: searchAddress /* gg.searchAddress(string text[, long mask[, int type[, int sign[, long memoryFrom[, long memoryTo]]]]]) -> true || string with error */
       [searchFuzzy] = function: searchFuzzy /* gg.searchFuzzy([string difference[, int type[, int sign[, long memoryFrom[, long memoryTo]]]]]) -> true || string with error */
       [searchNumber] = function: searchNumber /* gg.searchNumber(string text[, int type[, bool encrypted[, int sign[, long memoryFrom[, long memoryTo]]]]]) -> true || string with error */
       [setRanges] = function: setRanges /* gg.setRanges(int ranges) -> nil */
       [setSpeed] = function: setSpeed /* gg.setSpeed(double speed) -> true || string with error */
       [setValues] = function: setValues /* gg.setValues(table values) -> true || string with error */
       [setVisible] = function: setVisible /* gg.setVisible(bool visible) -> nil */
       [sleep] = function: sleep /* gg.sleep(int milliseconds) -> nil */
       [startFuzzy] = function: startFuzzy /* gg.startFuzzy([int type[, long memoryFrom[, long memoryTo]]]) -> true || string with error */
       [timeJump] = function: timeJump /* gg.timeJump(string time) -> true || string with error */
       [toast] = function: toast /* gg.toast(string text[, bool fast]) -> nil */
}

 

 

Plz on the next update make sure to  add this functions (gg.saveAll) (gg.selectAll) (gg.changeAddress) its realy help us to modify lot of values and thnx gg

Link to comment
Share on other sites

2 hours ago, Enyby said:

You must describe what these functions should do.

If you need the function clearResults, then call it, and do not ask for another function called saveAll, but does the same.

 

Thnx for reply, function gg.saveAll ==>save resultIMG-20180225-WA0008.thumb.jpg.8ed20f10dacdc3da16ee59646db67f8d.jpg in the saved list ,then i want to change address of the saved results using change Adresse IMG-20180225-WA0007.thumb.jpg.2375a0c6cbdbac798f346b2e21669087.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.