marken Posted March 30, 2019 Share Posted March 30, 2019 gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD) gg.processResume() gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll('523533591', gg.TYPE_DWORD) how do i repeat this process to an infinite like gg.repeatAll 100x like that im a noob Link to comment Share on other sites More sharing options...
Administrators Enyby Posted March 30, 2019 Administrators Share Posted March 30, 2019 Use lua loops. Read about it in lua books, reference manual or google about it. Link to comment Share on other sites More sharing options...
RONO_PLAYS Posted March 30, 2019 Share Posted March 30, 2019 1 hour ago, marken said: gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD) gg.processResume() gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll('523533591', gg.TYPE_DWORD) how do i repeat this process to an infinite like gg.repeatAll 100x like that im a noob Very basic Infinite repeat (will run till interrupt) ::START:: function infinite() -- insert your code here e.g gg.searchNumber('523533590',gg.TYPE_DWORD) end infinite() -- call your function goto START --repeats till interrupt Link to comment Share on other sites More sharing options...
bukandewa Posted March 30, 2019 Share Posted March 30, 2019 2 hours ago, marken said: gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD) gg.processResume() gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll('523533591', gg.TYPE_DWORD) how do i repeat this process to an infinite like gg.repeatAll 100x like that im a noob You can use 'while' or 'repeat until' Link to comment Share on other sites More sharing options...
CmP Posted March 30, 2019 Share Posted March 30, 2019 3 hours ago, marken said: like gg.repeatAll 100x If you need to repeat the code for a known amount of times, use numerical "for" loop. Example: -- repeat 25 times for i = 1, 25 do -- the code to repeat here end References: https://www.lua.org/manual/5.3/manual.html#3.3.5 http://lua-users.org/wiki/ForTutorial Link to comment Share on other sites More sharing options...
marken Posted March 30, 2019 Author Share Posted March 30, 2019 1 hour ago, CmP said: If you need to repeat the code for a known amount of times, use numerical "for" loop. Example: -- repeat 25 times for i = 1, 25 do -- the code to repeat here end References: https://www.lua.org/manual/5.3/manual.html#3.3.5 http://lua-users.org/wiki/ForTutorial tnx for the references Link to comment Share on other sites More sharing options...
Question
marken
gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS | gg.REGION_BAD)
gg.processResume()
gg.searchNumber('523533590', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll('523533591', gg.TYPE_DWORD)
how do i repeat this process to an infinite
like gg.repeatAll 100x like that im a noob
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.