Jump to content
CandraY

Help for gg prompt searching:"

Recommended Posts

x= gg.prompt({[2]='Enter Value'}, {[1]='1;3;2;', [2]='22', [3]=',000~', [4]=',999;0::45'})

Quote

 

gg.searchNumber(x[1]x[2]x[3]x[2]x[4], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

found = gg.getResultCount()

gg.alert('We found: '..found)

Hi guys, please help for make it.

 

Where is my fault?

 

Final patten for search is:

1;3;2;22,000~22,999;0::70

 

In every search i just want to change two fisrt number of 22,000~22,999.

 

in gg.promp line i just wrote [2]= 'Enter Value' b'cuz it's variable.

 

I got this error:

 

Script ended:

Script error: org.luaj.vm2.LuaError: @/sdcard/Notes/tttttt.lua:2

`gg.searchNumber(x[2],x[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)`

bad argument #3 (number): boolean expected, got number

Share this post


Link to post
Share on other sites

You try pass two params instead of concatenate it to one.

Also you prompt is wrong. Second param is default values for first param. So you doing something wrong if pass second table with more elements from first table.

Read API help.

Share this post


Link to post
Share on other sites

 

1 minute ago, Enyby said:

You try pass two params instead of concatenate it to one.

Also you prompt is wrong. Second param is default values for first param. So you doing something wrong if pass second table with more elements from first table.

Read API help.

please give an example, I'm hard if there's no example 😞

Share this post


Link to post
Share on other sites

Examples about gg.prompt in API help.

concatenate is

a..b

two params is

a, b

 

Share this post


Link to post
Share on other sites
x = gg.prompt({"Enter Value"}, nil, {"number"})
if x == nil then gg.alert("Canceled") end
s = "1;3;2;"..x[1].."000~"..x[1].."999;0::70"
gg.searchNumber(s, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
f = gg.getResultCount()
gg.alert("We found: "..f)

 

Share this post


Link to post
Share on other sites
1 hour ago, Enyby said:

Examples about gg.prompt in API help.

concatenate is


a..b

two params is


a, b

 

Script Ended:

Script error: org.luaj.vm2.LuaError: @/storage/emulated/0/Script GG by can/Tidak2.lua:4

`gg.searchNumber (A, B, gg.TYPE_DOUBLE, true, gg.SIGN_EQUAL, 0, -1)`

bad argument #1 (nil): string expected, got nil

level = 1, pc = 31

stack traceback:

 /storage/emulated/0/Script GG by can/Tidak2.lua:4 in main chunk

 [Java]: in ?

 at org.luaj.vm2.Varargs.argerr(Varargs.java:282)

 at org.luaj.vm2.Varargs.checkjstring(Varargs.java:347)

 at android.ext.Script$searchNumber.invokeUi(Script.java:2762)

 at android.ext.Script$ApiFunction.run(Script.java:1197)

 at android.os.Handler.handleCallback(Handler.java:815)

 at android.os.Handler.dispatchMessage(Handler.java:104)

 at android.os.Looper.loop(Looper.java:210)

 at android.app.ActivityThread.main(ActivityThread.java:5839)

 at java.lang.reflect.Method.invoke(Native Method)

 at java.lang.reflect.Method.invoke(Method.java:372)

 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)

 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)

 

How to fix this?

Share this post


Link to post
Share on other sites

Learn Lua and write meaningful code, and not just combine text without meaning.

Share this post


Link to post
Share on other sites
17 minutes ago, maulz said:

x = gg.prompt({"Enter Value"}, nil, {"number"})
if x == nil then gg.alert("Canceled") end
s = "1;3;2;"..x[1].."000~"..x[1].."999;0::70"
gg.searchNumber(s, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
f = gg.getResultCount()
gg.alert("We found: "..f)

 

Quote

d = gg.prompt({A='Your Coin', B='Your DM'}, {A='0', B='0'})

gg.toast ('Can')

gg.setRanges ( gg.REGION_C_ALLOC)

gg.searchNumber (A..B, gg.TYPE_DOUBLE, true, gg.SIGN_EQUAL, 0, -1)

if gg.getResultCount() == 3 then 

 gg.editAll('999999', 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 

How to fix this:(

[added 3 minutes later]
4 minutes ago, Enyby said:

Learn Lua and write meaningful code, and not just combine text without meaning.

Help me plz:"

Share this post


Link to post
Share on other sites

Try see what you send to

searchNumber

For example replace gg.searchNumber with print and check all params.

 

 

Share this post


Link to post
Share on other sites
3 minutes ago, Enyby said:

Try see what you send to

searchNumber

For example replace gg.searchNumber with print and check all params.

 

 

example?

Share this post


Link to post
Share on other sites

What is an example? In your code, make a replacement and see what will be in the output, at the end of the script. Read what debugging is.

Share this post


Link to post
Share on other sites
3 minutes ago, Enyby said:

What is an example? In your code, make a replacement and see what will be in the output, at the end of the script. Read what debugging is.

function coin()
gg.clearResults()
d = gg.prompt({A='Your Coin🔮', B='Your Diamond💎'}, {A='0', B='0'})
gg.searchNumber(d.A, d.B, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 2 then
gg.editAll('10000', gg.TYPE_DWORD) 
gg.alert('Hacking Done!, Enjoy') 
gg.clearResults()
os.exit()
   else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again')
   end 

?

Share this post


Link to post
Share on other sites
function coin()gg.clearResults()d = gg.prompt({A='Your Coin', B='Your Diamond'}, {A='0', B='0'})gg.searchNumber(d.A, d.B, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)if gg.getResultCount() == 2 thengg.editAll('10000', gg.TYPE_DWORD) gg.alert('Hacking Done!, Enjoy') gg.clearResults()os.exit()  else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again')  end 

?

here is ur script

Sent from my Redmi Y1 Lite using Tapatalk

[added 0 minutes later]
here is ur script

Sent from my Redmi Y1 Lite using Tapatalk

::coin::
gg.clearResults()
d = gg.prompt({[1]='Your Coin', [2]='Your Diamond'})
value=d[1]..";"..d[2]
gg.searchNumber(value, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 2 then
gg.editAll('10000', gg.TYPE_DWORD) 
gg.alert('Hacking Done!, Enjoy')
gg.clearResults()
os.exit()
else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again')
end
--make other changes urselfhttp://cloud.tapatalk.com/s/5c8cef1e4637d/o.txt

Sent from my Redmi Y1 Lite using Tapatalk

Share this post


Link to post
Share on other sites
1 hour ago, SHUVAM said:

here is ur script

Sent from my Redmi Y1 Lite using Tapatalk
 

[added 0 minutes later]

::coin::
gg.clearResults()
d = gg.prompt({[1]='Your Coinemoji326.png', [2]='Your Diamondemoji184.png'})
value=d[1]..";"..d[2]
gg.searchNumber(value, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 2 then
gg.editAll('10000', gg.TYPE_DWORD) 
gg.alert('Hacking Done!, Enjoy')
gg.clearResults()
os.exit()
else gg.alert('Too much values found, Go to game and change the value, then open gameguardian again')
end 
--make other changes urselfhttp://cloud.tapatalk.com/s/5c8cef1e4637d/o.txt

Sent from my Redmi Y1 Lite using Tapatalk
 

Ty So much^^

Share this post


Link to post
Share on other sites
Ty So much^^
np

Sent from my Redmi Y1 Lite using Tapatalk

Share this post


Link to post
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

×
×
  • Create New...