Jump to content

Archived

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

marken

help me please lua

Recommended Posts

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

Share this post


Link to post
Share on other sites

Use lua loops.

Read about it in lua books, reference manual or google about it.

Share this post


Link to post
Share on other sites
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 

 

 

Share this post


Link to post
Share on other sites
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'

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×
×
  • Create New...