My idea is find word with Item name: and find word with Status: then swap it
But I am not sure how to do correctly....
function getItemName()
utf16 =falselocal bytes = parse("Item name:",1,false)local len =#bytes
gg.clearResults()local used = len
if used > lim then used = lim endlocal search = tbl2hex(bytes)if used < len then search = search:sub(1, used*3)end
gg.searchNumber('h '..search)local found = gg.getResultCount()local results ={}local count =0local checked =0whiletruedoif checked >= found thenbreakendlocal all = gg.getResults(100000)local total =#all
local start = checked
if checked + used > total thenbreakendwhile start < total dolocal good =truelocal offset = all[1+ start].address -1if used < len thenlocal get ={}for i = lim +1, len do
get[i - lim]={address = offset + i, flags = gg.TYPE_BYTE, value =0}end
get = gg.getValues(get)for i = lim +1, len doif get[i - lim].value +0~= bytes[i]then
good =falsebreakendendendif good then
count = count +1
results[count]= offset
checked = checked + used
elselocal del ={}for i =1, used do
del[i]= all[i + start]end
gg.removeResults(del)end
start = start + used
endendreturn results
endlocal itemNameResult = getItemName()-- SO HOW TO DO NEXT...
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.
Question
1001z
Example In-game has:
Item name: Hello
Status: +7
Result should be:
Status: +7
Item name: Hello
My idea is find word with Item name: and find word with Status: then swap it
But I am not sure how to do correctly....
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.