Jump to content

Question

Posted

Hello guys i need a help about lua script

For example, I have a basic line of values and i can only find these values just in this order and arrangement

gg.searchNumber("1000;2000;3000:9", gg.TYPE_DWORD)

and each value represents something in the game and in order to activate the cheat to a first value or any value in the line you must search for the same line once again okay?

So this line is basic to found this values, the problem lies about i activated the first value "1000" and edit this to "1111"

If I now want to activate second cheat, i can't because the main line "1000;2000;3000:9" is not the same as after the first cheat was activated "1111;2000;3000:9" and so on the rest of the values

Well my question is how to update the main search when I search for a second value, the search is updated according to whether a search was done before or not

For example, We do on this script

function home()
menu = gg.choice({"Hack 1","Hack 2","Hack 3")
if menu == 1 then hack_1() end
if menu == 2 then hack_2() end
if menu == 2 then hack_3() end
end

-- this basic search line gg.searchNumber("1000;2000;3000:9", gg.TYPE_DWORD)   and i can only find these values just in this order and arrangement

function hack_1()
gg.searchNumber("1000;2000;3000:9", gg.TYPE_DWORD) -- example user activate hack_3 before hack_1 so search hack_1 don't work or if user want to activated hack_1 don't work because basic search line is changed so how update this serach ?
gg.getResults(3)
gg.refineNumber("1000", gg.TYPE_DWORD)
gg.getResults(1)
gg.editAll("1111", gg.TYPE_DWORD)
end

function hack_2()
gg.searchNumber("1000;2000;3000:9", gg.TYPE_DWORD) -- example user activated hack_1 before hack_2 so search hack_2 don't work because basic search line is changed so how update this serach ?
gg.getResults(3)
gg.refineNumber("2000", gg.TYPE_DWORD)
gg.getResults(1)
gg.editAll("2222", gg.TYPE_DWORD)
end

function hack_3()
gg.searchNumber("1000;2000;3000:9", gg.TYPE_DWORD) -- example user activate hack_2 before hack_3 so search hack_3 don't work because basic search line is changed so how update this serach ?
gg.getResults(3)
gg.refineNumber("3000", gg.TYPE_DWORD)
gg.getResults(1)
gg.editAll("3333", gg.TYPE_DWORD)
end

This a simple process, i want solution for this problem that works in the big script lines and thanks you guys !!

12 answers to this question

Recommended Posts

  • 0
  • Administrators
Posted
17 minutes ago, g1doz said:

just in this order

 

18 minutes ago, g1doz said:

gg.searchNumber("1000;2000;3000:9", gg.TYPE_DWORD)

you need doubled colon before 9 if you want ordered group search.

  • 0
Posted

Try to add some of nearby value in your group search. 

For example, 1000;2000;3000

3 steps Above 1000 is 500, then you can try 500;1000;2000;3000.

3 steps below 3000 is 100, then you can change to 500;1000;2000;3000;100.

And so on, until the group search is find desire value, if group search is not direct to your desire value, restart, try different combinations. 

Yeah, it is so boring, you need to restart the game many times.

  • 0
  • Administrators
Posted

There can be many solutions.
1. Use files to save and restore state. Remember what has changed and look for changes.
2. Search once, remember and restore the address, change the value without re-searching.
3. Find values nearby and rely on them when searching.

  • 0
Posted
z=gg.searchNumber
x=gg.getResults
c=gg.clearResults

z('1000;2000;3000::9',4)
z('1000',4)
h1=x(3)

c()
z('1000;2000;3000::9',4)
z('2000',4)
h2=x(3)

c()
z('1000;2000;3000::9',4)
z('3000',4)
h3=x(3)

 

  • 0
Posted
54 minutes ago, bukandewa said:

Try to add some of nearby value in your group search. 

 For example, 1000;2000;3000

3 steps Above 1000 is 500, then you can try 500;1000;2000;3000.

3 steps below 3000 is 100, then you can change to 500;1000;2000;3000;100.

And so on, until the group search is find desire value, if group search is not direct to your desire value, restart, try different combinations. 

Yeah, it is so boring, you need to restart the game many times.

i can only find these values just in this order and arrangement

[added 0 minutes later]
55 minutes ago, Enyby said:

There can be many solutions.
 1. Use files to save and restore state. Remember what has changed and look for changes.
 2. Search once, remember and restore the address, change the value without re-searching.
 3. Find values nearby and rely on them when searching.

thank you dude ❤️

[added 3 minutes later]
50 minutes ago, Rs92ks said:

z=gg.searchNumber
x=gg.getResults
c=gg.clearResults

z('1000;2000;3000::9',4)
z('1000',4)
h1=x(3)

c()
z('1000;2000;3000::9',4)
z('2000',4)
h2=x(3)

c()
z('1000;2000;3000::9',4)
z('3000',4)
h3=x(3)

 

I didn't understand you well can you explain more !!

  • 0
Posted
59 minutes ago, Enyby said:

There can be many solutions.
 1. Use files to save and restore state. Remember what has changed and look for changes.
 2. Search once, remember and restore the address, change the value without re-searching.
 3. Find values nearby and rely on them when searching.

in step 2 Can you show me What I need from api ? example gg.ect...

  • 0
Posted
1 hour ago, Rs92ks said:

z=gg.searchNumber
x=gg.getResults
c=gg.clearResults

z('1000;2000;3000::9',4)
z('1000',4)
h1=x(3)

c()
z('1000;2000;3000::9',4)
z('2000',4)
h2=x(3)

c()
z('1000;2000;3000::9',4)
z('3000',4)
h3=x(3)

 

zxc is linked for search,clear and get results.

We searching 3 numbers and saving to h1,2,3. You can edit it. No more searches if your numbers not changes. Else u can search and set h1,2,3 again.

  • 0
Posted
56 minutes ago, Rs92ks said:

zxc is linked for search,clear and get results.

We searching 3 numbers and saving to h1,2,3. You can edit it. No more searches if your numbers not changes. Else u can search and set h1,2,3 again.

thx you so much

  • 0
Posted
On 8/30/2019 at 9:46 AM, Rs92ks said:

zxc is linked for search,clear and get results.

We searching 3 numbers and saving to h1,2,3. You can edit it. No more searches if your numbers not changes. Else u can search and set h1,2,3 again.

Rs92ks how to set h1=x(3) and h2,h3 without search again ? Because I will know 32 value i don't want to research again because this need many and many time

I also want all its values to be saved in gg.addListItems or are they the same with addListItems or = ?

  • 0
Posted
2 hours ago, g1doz said:

Rs92ks how to set h1=x(3) and h2,h3 without search again ? Because I will know 32 value i don't want to research again because this need many and many time

I also want all its values to be saved in gg.addListItems or are they the same with addListItems or = ?

Just edit it if vaue not recreated on other side. Already setted on h1=gg.getResults. You can edit h without searching again. Search only if values recreated.

  • 0
Posted
30 minutes ago, Rs92ks said:

Just edit it if vaue not recreated on other side. Already setted on h1=gg.getResults. You can edit h without searching again. Search only if values recreated.

You did not understand me look this post i I published it now

Help me script lua (#4r715njo)

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