spinninglink Posted June 6, 2019 Posted June 6, 2019 Currently I'm using a script to search for values then edit them, such as: gg.searchNumber('"3483;698;210"', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0xb0b00000, 0xbf7fffff) revert = gg.getResults(100) gg.editAll('"1500"', gg.TYPE_DWORD) However, I want to just add 1500 to the current values, I dont want to CHANGE IT completely. Something like a gg.AddAll() command? or something? Thank you!
Administrators Enyby Posted June 6, 2019 Administrators Posted June 6, 2019 Load values to table via getResults. Loop over table and add to value desired amount. Set values back by setValues.
spinninglink Posted June 7, 2019 Author Posted June 7, 2019 What do you mean "loop over table and add to value" . I'm using gg.getResults(100) already, but even when I record the script from game guardian and use the "add to value" option, it doesn't reflect it in the script.
Administrators Enyby Posted June 7, 2019 Administrators Posted June 7, 2019 Google what is that lua loop. I am not going to explain to you every silly question. Learn yourself or forget about scripts. There is enough information on the Internet.
Administrators Enyby Posted June 7, 2019 Administrators Posted June 7, 2019 gg.clearResults() gg.searchNumber('42', gg.TYPE_DWORD) local t = gg.getResults(100) for i, v in ipairs(t) do v.value = v.value + 10 end gg.setValues(t)
Question
spinninglink
Currently I'm using a script to search for values then edit them, such as:
gg.searchNumber('"3483;698;210"', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0xb0b00000, 0xbf7fffff)
revert = gg.getResults(100)
gg.editAll('"1500"', gg.TYPE_DWORD)
However, I want to just add 1500 to the current values, I dont want to CHANGE IT completely. Something like a gg.AddAll() command? or something?
Thank you!
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.