external7772 Posted January 9, 2022 Share Posted January 9, 2022 gg.clearResults() gg.clearList() gg.clearResults() gg.searchNumber("104000~107000;104000~107000;0;104000~107000;104000~107000;0;104000~107000;104000~107000;0;0;0;0;0;0;-139100160;144670709::61", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("104000~107000;104000~107000;0;104000~107000;104000~107000;0;104000~107000;104000~107000::29", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("104000~107000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.sleep(10000) gg.searchFuzzy("0", gg.SIGN_FUZZY_NOT_EQUAL, gg.TYPE_DWORD, 0, -1, 0) gg.refineNumber("104000~107000",gg.TYPE_DWORD) t=gg.getResults(5,1) gg.removeResults(t) gg.getResults(1) rr = gg.getResults(1) local du = {} du[1] = {} du[1].address = rr[1].address + 116 du[1].flags = gg.TYPE_DWORD gg.addListItems(du) local zz = {} zz[1] = {} zz[1].address = rr[1].address + 120 zz[1].flags = gg.TYPE_DWORD gg.addListItems(zz) local uu= {} uu[1] = {} uu[1].address = rr[1].address + 124 uu[1].flags = gg.TYPE_DWORD gg.addListItems(uu) local vv = {} vv[1] = {} vv[1].address = rr[1].address + 128 vv[1].flags = gg.TYPE_DWORD gg.addListItems(vv) local ww = {} ww[1] = {} ww[1].address = rr[1].address + 132 ww[1].flags = gg.TYPE_DWORD gg.addListItems(ww) local ss = {} ss[1] = {} ss[1].address = rr[1].address + 136 ss[1].flags = gg.TYPE_DWORD gg.addListItems(ss) local ppp = {} ppp[1] = {} ppp[1].address = rr[1].address + 140 ppp[1].flags = gg.TYPE_DWORD gg.addListItems(ppp) local mm = {} mm[1] = {} mm[1].address = rr[1].address + 144 mm[1].flags = gg.TYPE_DWORD gg.addListItems(mm) p = gg.getListItems() edits = {6, 6, 9, 6, 6, 9, 0, 0} --this table store the values you will edit for i, v in ipairs(p) do v.value=edits[i] v.freeze=true end gg.setValues(p) gg.addListItems(p) end Idk why this thing don't freeze value, i should freeze 6;6;9;6;6;9;0;0 but it values not freezing. Can anyone help me? Link to comment Share on other sites More sharing options...
blocx Posted January 10, 2022 Share Posted January 10, 2022 what is this game ? i dont understand this code ( it give u no error ? ) Link to comment Share on other sites More sharing options...
blocx Posted January 10, 2022 Share Posted January 10, 2022 i dont understand too gg.sleep(10000) gg.searchFuzzy("0", gg.SIGN_FUZZY_NOT_EQUAL, gg.TYPE_DWORD, 0, -1, 0) gg.refineNumber("104000~107000",gg.TYPE_DWORD) if understand this this erase previous refine ? right ? so no sense ? Link to comment Share on other sites More sharing options...
blocx Posted January 10, 2022 Share Posted January 10, 2022 gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("104000~107000;104000~107000;0;104000~107000;104000~107000;0;104000~107000;104000~107000;0;0;0;0;0;0;-139100160;144670709::61", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("104000~107000;104000~107000;0;104000~107000;104000~107000;0;104000~107000;104000~107000::29", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("104000~107000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) local results = gg.getResults(10) local address = results[1].address local edits = { {offset = 116, value = "6"}, {offset = 120, value = "6"}, {offset = 124, value = "9"}, {offset = 126, value = "6"}, {offset = 132, value = "9"}, {offset = 136, value = "9"}, {offset = 140, value = "0"}, {offset = 144, value = "0"} } local values = {} for i, v in ipairs(edits) do values[i] = {address = address + v.offset, flags = gg.TYPE_DWORD, value = v.value, freeze = true} end gg.setValues(values) gg.addListItems(values) gg.clearResults() end Link to comment Share on other sites More sharing options...
external7772 Posted January 10, 2022 Author Share Posted January 10, 2022 not working bro... Freeze from my code edit values but not freeze it... Link to comment Share on other sites More sharing options...
CmP Posted January 11, 2022 Share Posted January 11, 2022 Could be that "addListItems" function fails for whatever reason. To find out whether it does, need to check the value it returns. In case of failure function returns string with error message. In your code replace gg.addListItems(p) with print("addListItems:", gg.addListItems(p)) Then execute the script and check it's output. Link to comment Share on other sites More sharing options...
Question
external7772
Idk why this thing don't freeze value, i should freeze 6;6;9;6;6;9;0;0 but it values not freezing. Can anyone help me?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.