function split(szFullString, szSeparator) local nFindStartIndex = 1 local nSplitIndex = 1 local nSplitArray = {} while true do local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex) if not nFindLastIndex then nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, string.len(szFullString)) break end nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, nFindLastIndex - 1) nFindStartIndex = nFindLastIndex + string.len(szSeparator) nSplitIndex = nSplitIndex + 1 end return nSplitArray end function xgxc(szpy, qmxg) for x = 1, #(qmxg) do xgpy = szpy + qmxg[x]["offset"] xglx = qmxg[x]["type"] xgsz = qmxg[x]["value"] xgdj = qmxg[x]["freeze"] if xgdj == nil or xgdj == "" then gg.setValues({[1] = {address = xgpy, flags = xglx, value = xgsz}}) else gg.addListItems({[1] = {address = xgpy, flags = xglx, freeze = xgdj, value = xgsz}}) end xgsl = xgsl + 1 xgjg = true end end function xqmnb(qmnb) gg.clearResults() gg.setVisible(false) gg.setRanges(qmnb[1]["memory"]) gg.searchNumber(qmnb[3]["value"], qmnb[3]["type"]) if gg.getResultCount() == 0 then gg.toast(qmnb[2]["name"] .. "开启失败") else gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) xxx=gg.getResultCount() if gg.getResultCount() == 0 then gg.toast(qmnb[2]["name"] .. "开启失败") else sl = gg.getResults(999999) sz = gg.getResultCount() xgsl = 0 if sz > 999999 then sz = 999999 end for i = 1, sz do pdsz = true for v = 4, #(qmnb) do if pdsz == true then pysz = {} pysz[1] = {} pysz[1].address = sl[i].address + qmnb[v]["offset"] pysz[1].flags = qmnb[v]["type"] szpy = gg.getValues(pysz) pdpd = qmnb[v]["lv"] .. ";" .. szpy[1].value szpd = split(pdpd, ";") tzszpd = szpd[1] pyszpd = szpd[2] if tzszpd == pyszpd then pdjg = true pdsz = true else pdjg = false pdsz = false end end end if pdjg == true then szpy = sl[i].address xgxc(szpy, qmxg) end end if xgjg == true then gg.toast(qmnb[2]["name"] .. "开启成功\n共搜索"..xxx.."条数据\n修改了" .. xgsl .. "条数据") else gg.toast(qmnb[2]["name"] .. "开启失败") end end end gg.clearResults() end Memory_offset=function(Search,Write,nc,Type,name) gg.clearResults() gg.setRanges(nc) gg.setVisible(false) lx=Search[1][2] gg.searchNumber(Search[1][1], lx) local count = gg.getResultCount() local result = gg.getResults(count) gg.clearResults() local data = {} if (count > 0) then gg.toast("搜索到"..count.."条数据") for i, v in ipairs(result) do v.isUseful=true end for k=2,#Search do local tmp = {} local num = Search[k][1] if Search[k][3]~= nil then lx=Search[k][3] else lx=Type end for i, v in ipairs(result) do tmp[#tmp+1] = {} tmp[#tmp].address = v.address + Search[k][2] tmp[#tmp].flags = lx end tmp = gg.getValues(tmp) for i, v in ipairs(tmp) do if ( tostring(v.value) ~= tostring(num) ) then result[i].isUseful = false end end end for i, v in ipairs(result) do if (v.isUseful) then data[#data+1] = v.address end end if (#data > 0) then local t = {} for i=1, #data do for k, w in ipairs(Write) do if w[3] ~= nil then lx = w[3] else lx=Type end t[#t+1] = {} t[#t].address = data[i] + w[2] t[#t].flags = lx if (w[1]~=nil) and (w[1]~=false) then t[#t].value = w[1] if (w[4] == true) then local item = {} item[#item+1] = t[#t] item[#item].freeze = true gg.addListItems(item) else gg.setValues(t) end end end end gg.loadResults(t) gg.toast(name.."成功,共修改了"..#t.."个数值") else gg.toast(name.."开启失败") end else gg.toast(name.."搜索失败") end gg.clearResults() end function ts(ts) if ts then gg.toast(ts) return true else gg.toast("nil") return false end end function getso(name) return gg.getRangesList(name)[1].start end function Memory_modify(add,ta) addr=add t={} for i=1,#ta do t[i]={} t[i].address=addr+ta[i][3] t[i].flags=ta[i][2] t[i].value=ta[i][1] end gg.setValues(t) end function Main() SN =gg.multiChoice({ "Karakter Skin Hack?", "Silah Desenleri(Hepsi) ?", "Araba Desenleri ?", "Paraşüt (Pharaoh Gold Wing)☂️", "Çıkış"}, nil, "P A S H A H A C K") if SN == nil then else if SN[1] == true then a() end if SN[2] == true then b() end if SN[3] == true then c() end if SN[4] == true then d() end if SN[5] == true then Exit() end end XGCK = -1 end function a() Memory_offset({{1400129,4},{1400129,4,4},{1400129,16,4},},{{1405656,16,4,false},},32,4,"Lord Mizusawa Suit") Memory_offset({{502001,4},{502001,4,4},{502001,16,4},},{{1502001138,16,4,false},},32,4,"Wind Breath Lord First Class①") Memory_offset({{502004,4},{502004,4,4},{502004,16,4},},{{1502001138,16,4,false},},32,4,"Wind Breath Lord First Class②") Memory_offset({{502002,4},{502002,4,4},{502002,16,4},},{{1502002138,16,4,false},},32,4,"Wind Breath Lord Secondary Head①") Memory_offset({{502005,4},{502005,4,4},{502005,16,4},},{{1502002138,16,4,false},},32,4,"Wind Breath Lord Secondary Head②") Memory_offset({{502003,4},{502003,4,4},{502003,16,4},},{{1502003138,16,4,false},},32,4,"Wind Breath Lord Tertiary Head") Memory_offset({{501001,4},{501001,4,4},{501001,16,4},},{{1501001179,16,4,false},},32,4,"Lord Mizusawa Level 1 Pack") Memory_offset({{501002,4},{501002,4,4},{501002,16,4},},{{1501002179,16,4,false},},32,4,"Lord Mizusawa Level 2 Pack") Memory_offset({{501003,4},{501003,4,4},{501003,16,4},},{{1501003179,16,4,false},},32,4,"Lord Mizusawa Level 3 Pack") end function b() Memory_offset({{203003,4},{203003,4,4},{20300300,16,4},},{{1010040929,16,4,false},},32,4,"2X") Memory_offset({{203014,4},{203014,4,4},{20301400,16,4},},{{1010040928,16,4,false},},32,4,"3X") Memory_offset({{203004,4},{203004,4,4},{20300400,16,4},},{{1030020244,16,4,false},},32,4,"4X") Memory_offset({{203015,4},{203015,4,4},{20301500,16,4},},{{1030020243,16,4,false},},32,4,"6X") Memory_offset({{203005,4},{203005,4,4},{20300500,16,4},},{{1030020242,16,4,false},},32,4,"8X") Memory_offset({{101001,4},{101001,4,4},{10100100,16,4},},{{1101001105,16,4,false},},32,4,"AKM-Searing Dragon Flame") Memory_offset({{291001,4},{291001,4,4},{29100100,16,4},},{{1010011051,16,4,false},},32,4,"AKM-Searing Dragon Flame-Magazine") Memory_offset({{101002,4},{101002,4,4},{10100200,16,4},},{{1101002056,16,4,false},},32,4,"M16A4-Laser pulse") Memory_offset({{291002,4},{291002,4,4},{29100200,16,4},},{{1010020561,16,4,false},},32,4,"M16A4-Laser Pulse-Magazine") Memory_offset({{203006,4},{203006,4,4},{20300600,16,4},},{{1010020563,16,4,false},},32,4,"M16A4-Aurora Pulse-Aiming") Memory_offset({{205007,4},{205007,4,4},{20500700,16,4},},{{1010020564,16,4,false},},32,4,"M16A4-Aurora Pulse-Stock") Memory_offset({{101003,4},{101003,4,4},{10100300,16,4},},{{1101003049,16,4,false},},32,4,"SCAR-L-Sakura Hime") Memory_offset({{291003,4},{291003,4,4},{29100300,16,4},},{{1010030491,16,4,false},},32,4,"SCAR-L-Cherry Blossom-Magazine") Memory_offset({{101004,4},{101004,4,4},{10100400,16,4},},{{1101004089,16,4,false},},32,4,"M416-Temple Agents") Memory_offset({{291004,4},{291004,4,4},{29100400,16,4},},{{1010040891,16,4,false},},32,4,"M416-Temple Agents-Magazine") Memory_offset({{203008,4},{203008,4,4},{20300800,16,4},},{{1010040892,16,4,false},},32,4,"M416-Temple Agents-Aircraft Sight") Memory_offset({{205005,4},{205005,4,4},{20500500,16,4},},{{1010040893,16,4,false},},32,4,"M416-Temple Agents-Butts") Memory_offset({{101005,4},{101005,4,4},{10100500,16,4},},{{1101005019,16,4,false},},32,4,"GROZA-Green Cavalry") Memory_offset({{291005,4},{291005,4,4},{29100500,16,4},},{{1010050191,16,4,false},},32,4,"GROZA-Green Cavalry-Magazine") Memory_offset({{101006,4},{101006,4,4},{10100600,16,4},},{{1101006020,16,4,false},},32,4,"AUG-The Gilded Age") Memory_offset({{291006,4},{291006,4,4},{29100600,16,4},},{{1010060201,16,4,false},},32,4,"AUG-The Gilded Age-Magazine") Memory_offset({{101007,4},{101007,4,4},{10100700,16,4},},{{1101007013,16,4,false},},32,4,"QBZ-Naughty Devil") Memory_offset({{291007,4},{291007,4,4},{29100700,16,4},},{{1010070131,16,4,false},},32,4,"QBZ-Naughty Devil-Magazine") Memory_offset({{101008,4},{101008,4,4},{10100800,16,4},},{{1101008029,16,4,false},},32,4,"M762-Mr. Fox") Memory_offset({{291008,4},{291008,4,4},{29100800,16,4},},{{1010080291,16,4,false},},32,4,"M762-Mr. Fox-Magazine") Memory_offset({{101009,4},{101009,4,4},{10100900,16,4},},{{1101009001,16,4,false},},32,4,"Mk47-Cherry blossoms") Memory_offset({{291009,4},{291009,4,4},{29100900,16,4},},{{1010090011,16,4,false},},32,4,"Mk47-Sakura-magazine") Memory_offset({{203016,4},{203016,4,4},{20301600,16,4},},{{1010090013,16,4,false},},32,4,"Mk47-Sakura-Sight") Memory_offset({{205008,4},{205008,4,4},{20500800,16,4},},{{1010090014,16,4,false},},32,4,"Mk47-Cherry Blossom-Buttstock") Memory_offset({{101010,4},{101010,4,4},{10101000,16,4},},{{1101010012,16,4,false},},32,4,"G36C-Game master") Memory_offset({{291010,4},{291010,4,4},{29101000,16,4},},{{1010100121,16,4,false},},32,4,"G36C-Game Master-Magazine") Memory_offset({{103001,4},{103001,4,4},{10300100,16,4},},{{1103001070,16,4,false},},32,4,"Kar98K-Bloody sunset") Memory_offset({{103002,4},{103002,4,4},{10300200,16,4},},{{1103002029,16,4,false},},32,4,"M24-Golden scepter") Memory_offset({{103003,4},{103003,4,4},{10300300,16,4},},{{1103003029,16,4,false},},32,4,"AWM-Rule of order") end function c() Memory_offset({{1901001,4},{1901001,4,4},{1901001,16,4},},{{1901033,16,4,false},},32,4,"Tandem Motor-Speed ​​Bird①") Memory_offset({{1901002,4},{1901002,4,4},{1901002,16,4},},{{1901033,16,4,false},},32,4,"Tandem Motor-Speed ​​Bird②") Memory_offset({{1902001,4},{1902001,4,4},{1902001,16,4},},{{1902011,16,4,false},},32,4,"Three Motorcycle-Poker Rider①") Memory_offset({{1902002,4},{1902002,4,4},{1902002,16,4},},{{1902011,16,4,false},},32,4,"Three Motorcycle-Poker Rider②") Memory_offset({{1903001,4},{1903001,4,4},{1903001,16,4},},{{1903021,16,4,false},},32,4,"Car-Sakura Hime①") Memory_offset({{1903002,4},{1903002,4,4},{1903002,16,4},},{{1903021,16,4,false},},32,4,"Car-Sakura Hime②") Memory_offset({{1903003,4},{1903003,4,4},{1903003,16,4},},{{1903021,16,4,false},},32,4,"Car-Sakura Hime③") Memory_offset({{1903004,4},{1903004,4,4},{1903004,16,4},},{{1903021,16,4,false},},32,4,"Car-Sakura Hime④") Memory_offset({{1907001,4},{1907001,4,4},{1907001,16,4},},{{1907026,16,4,false},},32,4,"Buggy-Carnival Anniversary①") Memory_offset({{1907002,4},{1907002,4,4},{1907002,16,4},},{{1907026,16,4,false},},32,4,"Buggy-Carnival Anniversary②") Memory_offset({{1907003,4},{1907003,4,4},{1907003,16,4},},{{1907026,16,4,false},},32,4,"Buggy-Carnival Anniversary③") Memory_offset({{1908001,4},{1908001,4,4},{1908001,16,4},},{{1908039,16,4,false},},32,4,"Jeep-Stellar Superman") Memory_offset({{1911001,4},{1911001,4,4},{1911001,16,4},},{{1911007,16,4,false},},32,4,"Speedboat-Sakura Cat") Memory_offset({{1914001,4},{1914001,4,4},{1914001,16,4},},{{1914011,16,4,false},},32,4,"Sports Car-Silver Shell Hunter①") Memory_offset({{1914002,4},{1914002,4,4},{1914002,16,4},},{{1914011,16,4,false},},32,4,"Sports Car-Silver Shell Hunter②") Memory_offset({{1914003,4},{1914003,4,4},{1914003,16,4},},{{1914011,16,4,false},},32,4,"Sports Car-Silver Shell Hunter③") Memory_offset({{1914004,4},{1914004,4,4},{1914004,16,4},},{{1914011,16,4,false},},32,4,"Sports Car-Silver Shell Hunter④") Memory_offset({{1915001,4},{1915001,4,4},{1915001,16,4},},{{1915011,16,4,false},},32,4,"Roadster-Symphony Anniversary①") Memory_offset({{1915002,4},{1915002,4,4},{1915002,16,4},},{{1915011,16,4,false},},32,4,"Roadster-Symphony Anniversary②") Memory_offset({{1915003,4},{1915003,4,4},{1915003,16,4},},{{1915011,16,4,false},},32,4,"Roadster-Symphony Anniversary③") Memory_offset({{1915004,4},{1915004,4,4},{1915004,16,4},},{{1915011,16,4,false},},32,4,"Roadster-Symphony Anniversary④") Memory_offset({{1918001,4},{1918001,4,4},{1918001,16,4},},{{1918011,16,4,false},},32,4,"Snowmobile-Snow Guardian") Memory_offset({{1919001,4},{1919001,4,4},{1919001,16,4},},{{1919011,16,4,false},},32,4,"Tricycle-Bitter Poly") end function d() Memory_offset({{703001,4},{703001,4,4},{703001,16,4},},{{1401619,16,4,false},},32,4,"Pharaoh Gold Wing Parachute①") Memory_offset({{703002,4},{703002,4,4},{703002,16,4},},{{1401619,16,4,false},},32,4,"Pharaoh Gold Wing Parachute②") end function Exit() gg.setVisible(true) os.exit() end cs = "S A E E D" while true do if gg.isVisible(true) then XGCK = 1 gg.setVisible(false) end gg.clearResults() if XGCK == 1 then Main() end end