Jump to content
  • 0

After i put the input = gg.prompt what next?


ToxicLuaMods23
 Share

Question

so im making an ammo hack script for zombie age 2 and the user needs 3 and a half of stars which gives u 142 ammo

so i did the input=gg.prompt({'Enter your ammo')

so what next? i need the users input so i can refine and edit it pls help ill be launching this script in no time!!!!!!

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
5 minutes ago, Lover1500 said:

Show addresses around in goto address interface. And which ones are you think static values which wont change on another virtual spaces or 32 and 64 bit(so that you can use nice group search script). 

Then I can make some codes for you. 

i dont understand that =/ , i am new to goto adresses and i have not used them before

Link to comment
Share on other sites

  • 0

Play game and search ammo value manually. When you get desire value,use goto and check its address around(check both of above and under values of your address). Memorize them or screenshot them. 

Exit game, play and search ammo value again. Goto address and check. And you will notice unchanged values of your ammo address around.  

Use them to make script for others. 

USER_SCOPED_TEMP_DATA_orca-image--457697823.jpeg

USER_SCOPED_TEMP_DATA_orca-image-159723997.jpeg

USER_SCOPED_TEMP_DATA_orca-image-1888930936.jpeg

Link to comment
Share on other sites

  • 0
42 minutes ago, ToxicLuaMods23 said:

so im making an ammo hack script for zombie age 2 and the user needs 3 and a half of stars which gives u 142 ammo

so i did the input=gg.prompt({'Enter your ammo')

so what next? i need the users input so i can refine and edit it pls help ill be launching this script in no time!!!!!!

https://gameguardian.net/help/classgg.html#afe6c5b86ba0ae295899fd259232aac2b

Link to comment
Share on other sites

  • 0

the address changes everytime between restart but those values before(above) and after(below) ammo value didnt as far i know so...

you can use ordered group search like this

dwords = 20;10;130;680;30;1,049,414,861::25

then refine to ammo value = 130

the range use is Java_heap so it may take a while to get results or maybe it depend on the device...fast device = fast search...slow device = slow search(like mine)

on my part i found that it much faster to find the ammo value itself then refine and edit as shown in video below :

<no video speed>

 

Link to comment
Share on other sites

  • 0

So gg.setRanges(REGION_JAVA_HEAP)

then search the provided numbers

why cant i just refine the adress then edit all?

Sorry but this is very hard because im not undestanding , i see u used gg.sleep(5) to give the user 5 seconds to

fire some shots and refine the fired shots

Edited by ToxicLuaMods23
not understanding goto/ ranges
Link to comment
Share on other sites

  • 0
14 minutes ago, ToxicLuaMods23 said:

So gg.setRanges(REGION_JAVA_HEAP)

then search the provided numbers

why cant i just refine the adress then edit all?

Sorry but this is very hard because im not undestanding , i see u used gg.sleep(5) to give the user 5 seconds to

fire some shots and refine the fired shots

After compileing everyrhing together play the game and search the value , next get the adress code then check its adress , memorize it screenshot then search the adrress refine edit all , 

Link to comment
Share on other sites

  • 0
1 hour ago, ToxicLuaMods23 said:

why cant i just refine the adress then edit all?

you can actually but that will get you too many results to edit in which can make the game crash.

i already done that.

while the way i show you in the video gave only few results after refine.

here is how i would make the script:

local gg = gg
gg.setVisible(false)
gg.setRanges(2) --Java_heap

d = gg.prompt({
    "Enter Your Ammo"},{0})

if d == nil then os.exit() else
  
gg.searchNumber(d[1],4)--4 is TYPE_DWORD
gg.toast("Done")
gg.alert("Now fire some shots...you have 5 seconds.")
gg.sleep(5000)--5 seconds

d = gg.prompt({
    "Enter Your Ammo"},{0})

if d == nil then gg.clearResults() os.exit()
else   
    
gg.refineNumber(d[1], 4)
gg.getResults(5)
gg.editAll("999999", 4)
gg.clearResults()
gg.toast("Done")
end
end

 

Edited by MonkeySAN
Link to comment
Share on other sites

  • 0
2 minutes ago, MonkeySAN said:

you can actually but that will get you too many results to edit in which can make the game crash.

i already done that.

while the way i show you in the video gave only few results after refine.

here is how i would make the script:


local gg = gg
gg.setVisible(false)
gg.setRanges(2) --Java_heap

d = gg.prompt({
    "Enter Your Ammo"},{0})

if d == nil then os.exit() else
  
gg.searchNumber(d[1],4)--4 is TYPE_DWORD
gg.toast("Done")
gg.alert("Fire some shot...you have 5 seconds.")
gg.sleep(5000)--5 seconds

d = gg.prompt({
    "Enter Your Ammo"},{0})

if d == nil then gg.clearResults() os.exit()
else   
    
gg.refineNumber(d[1], 4)
gg.getResults(5)
gg.editAll("999999", 4)
gg.clearResults()
gg.toast("Done")
end
end

 

OMG THANKS IT WORKED!!!!!!!,  now i can release it to help others!!!!

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.