function PS() end function setvalue(address,flags,value) PS('Modify address value (address, numeric type, value to be modified)') local tt={} tt[1]={} tt[1].address=address tt[ 1].flags=flags tt[1].value=value gg.setValues(tt) end 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"] .. " Failed") 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"] .. " Failed") 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"] .. "\nFound: "..xxx.." Edited: " .. xgsl .. "") else gg.toast(qmnb[2]["name"] .. " Failed") end end end gg.clearResults() end function setvalue(address,flags,value) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end local hex = {} function patch(lib,offset,edit,type) local ranges = gg.getRangesList(lib) local xy = {} xy[1] = {} xy[1].address = ranges[1].start + offset xy[1].flags = type xy[1].value = edit gg.setValues(xy) end function TM() gg.toast("●○@PouRia_Cheat○●") TMhaxM = gg.choice({ "Unlimited Ammo Rifle", "Unlimited Ammo Sniper", "No Recoil", "High Jump", "speed hack", "Wall Hack", "Xp Fucker", "EXIT", },nil,"🔰@PouRia_Cheat🔰\n🔰Combat Master 0.11.46🔰") if TMhaxM == nil then end if TMhaxM == 1 then rifle() end if TMhaxM == 2 then sniper() end if TMhaxM == 3 then recoil() end if TMhaxM == 4 then jump() end if TMhaxM == 5 then speed() end if TMhaxM == 6 then hackwall() end if TMhaxM == 7 then XpFuck() end if TMhaxM == 8 then EXIT() end TMhax = -1 end function rifle() gg.alert("باید ۳۰ تا تیر داشته باشه") gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("90;30;1", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("30", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(50, nil, nil, nil, nil, nil, nil, nil, nil) local t = gg.getResults(50, nil, nil, nil, nil, nil, nil, nil, nil) for i, v in ipairs(t) do if v.flags == gg.TYPE_DWORD then v.value = "30" v.freeze = true end end gg.addListItems(t) t = nil gg.clearResults() gg.alert("ACTIVATED @Libanogs") end function sniper() gg.alert("باید ۵ تا تیر داشته باشه") gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("15;5;1", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("5", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0) revert = gg.getResults(50, nil, nil, nil, nil, nil, nil, nil, nil) local t = gg.getResults(50, nil, nil, nil, nil, nil, nil, nil, nil) for i, v in ipairs(t) do if v.flags == gg.TYPE_DWORD then v.value = "5" v.freeze = true end end gg.addListItems(t) t = nil gg.clearResults() gg.alert("ACTIVATED @Libanogs") end function recoil() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("0.30000001192;10.0;5.0;9.0:17", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("10", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.getResults(999, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("0", gg.TYPE_FLOAT) gg.clearResults() gg.alert("ACTIVATED @Libanogs") end function jump() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("1.42999994755;0.10000000149;1.0:9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("0.10000000149", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.getResults(999, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("0.5", gg.TYPE_FLOAT) gg.clearResults() gg.alert("ACTIVATED @Libanogs") end function speed() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("3;7.5", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.refineNumber("7.5", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0) gg.getResults(999, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("20", gg.TYPE_FLOAT) gg.clearResults() gg.alert("ACTIVATED @Libanogs") end function hackwall() so=gg.getRangesList('libil2cpp.so')[1].start py=0x4de3448 setvalue(so+py,4,1384120352) so=gg.getRangesList('libil2cpp.so')[1].start py=0x4de344c setvalue(so+py,4,-698416192) gg.alert("ACTIVATED @Libanogs") end function XpFuck() so=gg.getRangesList('libil2cpp.so')[1].start py=0x198d544 setvalue(so+py,4,-1304396832) so=gg.getRangesList('libil2cpp.so')[1].start py=0x198d548 setvalue(so+py,4,-698416192) gg.alert("ACTIVATED @Libanogs") end function EXIT() os.exit() end while true do if gg.isVisible(true) then TMhax = 1 gg.setVisible(false) end if TMhax == 1 then TM() end end