- 0
Saving adress after First search and edit future call automatically Edit
-
Similar Content
-
- 1 answer
- 544 views
-
Call methods
By LTC,
- 1 reply
- 2,955 views
-
Call methods
By LTC,
- 0 comments
- 7,126 views
-
- 2 answers
- 3,702 views
-
- 1 answer
- 675 views
-
Question
Zeps
HEll oanyone know how to actually do it
after the frist call it will search and edit it and then save and so the future calls it directly edit on the user prompt??
local s = gg.prompt(
{"★►ᴇɴᴛᴇʀ ᴠᴀʟᴜᴇ ғᴏʀ ᴄᴀᴛ ᴛɪᴄᴋᴇᴛ◄★: [1;50]",
"★►ᴇɴᴛᴇʀ ᴠᴀʟᴜᴇ ғᴏʀ ʀᴀʀᴇ ᴛɪᴄᴋᴇᴛ◄★: [1;50]"},
{1, 1},
{"number", "number"}
)
if s == nil then
gg.alert("★[►ᴏᴘᴇʀᴀᴛɪᴏɴ ᴄᴀɴᴄᴇʟᴇᴅ◄]★..")
Game()
end
local lib = "libnative-lib.so:bss"
local pi = gg.getRangesList(lib)[1].start
local firstAddr = pi + 0x2B92D8
local lastAddr = pi + 0x2B92E4
local value1 = gg.getValues({{address = firstAddr, flags = gg.TYPE_DWORD}})[1].value
local value2 = gg.getValues({{address = lastAddr, flags = gg.TYPE_DWORD}})[1].value
gg.searchNumber(value1 .. ";0~~0;" .. value2 .. "::45", gg.TYPE_DWORD)
for i = 1, 4 do
local results = gg.getResults(gg.getResultsCount())
if #results < 2 then
gg.alert("★[►ɴᴏᴛ ᴇɴᴏᴜɢʜ ʀᴇsᴜʟᴛs ʀᴇᴍᴀɪɴɪɴɢ ғᴏʀ ɪᴛᴇᴍ◄]★" .. i)
return
end
results[1].value = s[i]
results[2].value = 0
gg.setValues({results[1], results[2]})
gg.removeResults({results[1], results[2]})
end
gg.clearResults()
gg.toast("★[►ᴀʟʟ ɪᴛᴇᴍs ᴜᴘᴅᴀᴛᴇᴅ sᴜᴄᴄᴇssғᴜʟʟʏ!◄]★")
gg.clearResults()
5 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