Starter1 Posted November 22, 2021 Posted November 22, 2021 how do I write a script that looks for the number 17 (in the dword value) and changes it to 0 17-my speed
0 Starter1 Posted November 27, 2021 Author Posted November 27, 2021 On 11/23/2021 at 2:51 AM, CmP said: Such script is pretty simple, just need to call several functions of GG API: gg.clearResults() -- Clear results list to ensure that new search will be started gg.searchNumber("17", gg.TYPE_DWORD) -- Search for the value gg.getResults(100) -- Load first 100 results gg.editAll("0", gg.TYPE_DWORD) -- Edit loaded results Information about GG API functions including descriptions and examples of usage can be found in the documentation, link to which is in the post above by @blocx. why is this script not looking for the right value, what is the error? speed.lua
0 MonkeySAN Posted November 27, 2021 Posted November 27, 2021 maybe the value in that script wasnt the right value to begin with? have you double check it. value may change between restart.
0 Starter1 Posted November 27, 2021 Author Posted November 27, 2021 1 hour ago, MonkeySAN said: maybe the value in that script wasnt the right value to begin with? have you double check it. value may change between restart. Value-right
0 CmP Posted November 27, 2021 Posted November 27, 2021 52 minutes ago, Starter1 said: why is this script not looking for the right value, what is the error? speed.lua 540 B · 3 downloads The problem is because you use comma (",") as decimal separator. Use dot (".") instead. gg.searchNumber('2.38220739e-44', gg.TYPE_FLOAT) This is also mentioned in documentation: https://gameguardian.net/help/scripts_locale.html 2
Question
Starter1
how do I write a script that looks for the number 17 (in the dword value) and changes it to 0
17-my speed
19 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now