Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LUA = 'WILS2M'
- GLabel = 'Dead Target'
- GProcess = 'com.vng.g6.a.zombie'
- GVersion = '(vAU.02)'
- xbit = 64
- LibResult = 1
- xlib = 'libil2cpp.so'
- xREV = 1 I={}
- xCNE = 0
- xSSE = 0
- XbitX = 2
- printx = '---------------------------------------------------------------'
- expire='free'
- game = gg.getTargetInfo()
- P=game.processName
- FP=game.name
- L=gg.getTargetInfo().label
- M=gg.getTargetInfo()["label"]
- V=game.versionName
- TP=gg.getTargetPackage()
- xTAGx="Have fun"
- xLINKx="https://t.me/HxE_Chat"
- xLINK1x="https://www.tiktok.com/@hxesq"
- APEXSN=gg.getFile():match('[^/]+$')
- printx="---------------------------------------------------------------"
- print(printx)
- print(xTAGx)
- print("Telegram = "..xLINKx)
- print("TikTok = "..xLINK1x)
- print(printx)
- print("Script = "..GLabel.." "..GVersion)
- --███████████████████████
- --███████████████████████
- --███████████████████████
- -- APEX[GG]v2
- apex=1
- gg.setVisible(false)
- v=gg.getTargetInfo()
- if v==nil then
- print("×× ERROR ××\n×× INVALID PROCESS SELECTED / OR NO ROOT ACCESS")
- gg.setVisible(true) os.exit()
- return
- end
- HxEmenu = (' ⚡HxE Menu by wils2m⚡\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
- ⛥🇮🇳🇫🇴⛥\
- 🎮🅖🅐🅜🅔🎮 : '..GLabel..'\
- 🎰🅥🅔🅡🅢🎰 : '..GVersion..'\
- 🎰🅐🅡🅜🎰 : '..xbit..'\
- \
- ⏳Exᴘɪʀᴇᴅ Date⏳ : '..expire..'\
- 🎁 Encryption 🎁 : '..expire..'\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦')
- gg.alert(HxEmenu)
- gg.alert(" Patch Note\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
- - HxE script menu\
- - Huge thanks to Apex[GG]\
- - Script auto updated\
- - One Hit KO\
- - God Mode\
- - No Ads\
- - Unlimited Ammo\
- - Unlimited Grenades/Medkits\
- - Unlimited Money/Diamonds\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
- ")
- ------------------------------------------------------------------------------
- A={} for i =1,100 do A[i]={} end
- ------------------------------------------------------------------------------
- OFF="× " ON="√ "
- KO=OFF GM=OFF UA=OFF UE=OFF UM=OFF NA=OFF
- if v.x64 then x1="hC0BEA0D2" x2='h006A98D2'
- else x1="h990040E3" x2='h640000E3'
- end
- function menu()
- apex=0
- gg.toast(xTAGx)
- mc=gg.multiChoice({
- KO.."One Hit KO",
- GM.."God Mode",
- UA.."Unlimited Ammo,No reload",
- UE.."Unlimited Grenades/Medkits",
- UM.."Unlimited Money/Diamonds",
- "[ EXIT ]"},
- {},xTAGx.."\n"..xLINKx.."\n"..GLabel.." "..GVersion.." "..xBITx)
- if mc==nil then cancel() return end
- if mc[1] then ko() end
- if mc[2] then god() end
- if mc[3] then ammo() end
- if mc[4] then eqpt() end
- if mc[5] then gold() end
- xhaX={
- KO.."One Hit KO",
- GM.."God Mode",
- UA.."Unlimited Ammo,No reload",
- UE.."Unlimited Grenades/Medkits",
- UM.."Unlimited Money/Diamonds",
- }
- xhaX=table.concat(xhaX, "\n")
- xhaX=tostring(xhaX)
- if mc[6] then exit() return end
- gg.toast("[√] Complete")
- gg.alert(GLabel.." "..GVersion.." "..xBITx.."\n\n"..xhaX,"OK",nil,xTAGx)
- end
- --█████████████████████████████████████████████
- --public class AndroidAgent : IronSourceIAgent
- --public void showInterstitial()
- --public void showInterstitial(string placementName)
- A[1].class="AndroidAgent"
- A[1].method="showInterstitial"
- --public bool isInterstitialReady()
- A[2].class="AndroidAgent"
- A[2].method="isInterstitialReady"
- --public void showOfferwall()
- --public void showOfferwall(string placementName) { }
- A[3].class="AndroidAgent"
- A[3].method="showOfferwall"
- --public void getOfferwallCredits()
- A[4].class="AndroidAgent"
- A[4].method="getOfferwallCredits"
- --public bool isOfferwallAvailable()
- A[5].class="AndroidAgent"
- A[5].method="isOfferwallAvailable"
- --public void displayBanner()
- A[6].class="AndroidAgent"
- A[6].method="displayBanner"
- --public class IronSource : IronSourceIAgent
- --public void showInterstitial()
- --public void showInterstitial(string placementName)
- A[7].class="IronSource"
- A[7].method="showInterstitial"
- --public bool isInterstitialReady()
- A[8].class="IronSource"
- A[8].method="isInterstitialReady"
- --public void showOfferwall()
- --public void showOfferwall(string placementName)
- A[9].class="IronSource"
- A[9].method="showOfferwall"
- --public void getOfferwallCredits()
- A[10].class="IronSource"
- A[10].method="getOfferwallCredits"
- --public bool isOfferwallAvailable()
- A[11].class="IronSource"
- A[11].method="isOfferwallAvailable"
- --public void displayBanner()
- A[12].class="IronSource"
- A[12].method="displayBanner"
- --// Namespace: DProject
- --public class DSystem : SingletonMono<DSystem>
- --public void Init_Ads()
- A[13].name="DProject"
- A[13].class="DSystem"
- A[13].method="Init_Ads"
- --public bool IsInterstitalAdsV5()
- A[14].name="DProject"
- A[14].class="DSystem"
- A[14].method="IsInterstitalAdsV5"
- --public void CheckForShowingAd()
- A[15].name="DProject"
- A[15].class="DSystem"
- A[15].method="CheckForShowingAd"
- --public bool IsSubscriptionAdsOffer()
- A[16].name="DProject"
- A[16].class="DSystem"
- A[16].method="IsSubscriptionAdsOffer"
- --public void ShowInterstitialAds(INTERSTITIAL_SEGMENT segment)
- A[17].name="DProject"
- A[17].class="DSystem"
- A[17].method="ShowInterstitialAds"
- --public void ShowRatingGame()
- A[18].name="DProject"
- A[18].class="DSystem"
- A[18].method="ShowRatingGame"
- function noads()
- for i = 1,18 do if A[i].error == 1 then error() break return end end
- for i = A[1].start, A[18].finish do o=I[i]
- if NA==OFF then x=0 arm() else revert() end
- end
- if NA==OFF then NA=ON else NA=OFF end
- end
- --█████████████████████████████████████████████
- --public abstract class ZombieBase : MonoBehaviour, IProtectable, IShowDmgTarget
- --public long get_curRLegHP()
- A[19].name="DProject"
- A[19].class="ZombieBase"
- A[19].method="get_curRLegHP"
- --public long get_curLLegHP()
- A[20].name="DProject"
- A[20].class="ZombieBase"
- A[20].method="get_curLLegHP"
- --public long get_curBodyHP()
- A[21].name="DProject"
- A[21].class="ZombieBase"
- A[21].method="get_curBodyHP"
- --public long get_curHeadHP()
- A[22].name="DProject"
- A[22].class="ZombieBase"
- A[22].method="get_curHeadHP"
- --public long get_curRArmHP()
- A[23].name="DProject"
- A[23].class="ZombieBase"
- A[23].method="get_curRArmHP"
- --public long get_curLArmHP()
- A[24].name="DProject"
- A[24].class="ZombieBase"
- A[24].method="get_curLArmHP"
- --public long get_curTotalHP()
- A[25].name="DProject"
- A[25].class="ZombieBase"
- A[25].method="get_curTotalHP"
- --public long get_ReceivedDmg()
- A[26].name="DProject"
- A[26].class="ZombieBase"
- A[26].method="get_ReceivedDmg"
- --public long CalculateBehitDamageWithBonus(long damage)
- A[27].name="DProject"
- A[27].class="ZombieBase"
- A[27].method="CalculateBehitDamageWithBonus"
- --protected long GetMortisHitDamage(PlayerController player, long damage)
- A[28].name="DProject"
- A[28].class="ZombieBase"
- A[28].method="GetMortisHitDamage"
- --public class GunController : MonoBehaviour, IDealDamage
- --public long get_damage()
- A[29].name="DProject"
- A[29].class="GunController"
- A[29].method="get_damage"
- --public bool get_HaveDamageModifier()
- A[30].name="DProject"
- A[30].class="GunController"
- A[30].method="get_HaveDamageModifier"
- --public float get_DamageModifier()
- A[31].name="DProject"
- A[31].class="GunController"
- A[31].method="get_DamageModifier"
- --public float get_DamageRate()
- A[32].name="DProject"
- A[32].class="GunController"
- A[32].method="get_DamageRate"
- --public int GetTotalDPS()
- A[33].name="DProject"
- A[33].class="GunController"
- A[33].method="GetTotalDPS"
- --public long GetDamage(out DamageType damageType, long targetHP = 0)
- A[34].name="DProject"
- A[34].class="GunController"
- A[34].method="GetDamage"
- function ko()
- for i = 19,34 do if A[i].error == 1 then error() break return end end
- for i = A[19].start, A[25].finish do o=I[i]
- if KO==OFF then x=0 arm() else revert() end
- end
- for i = A[26].start, A[29].finish do o=I[i]
- if KO==OFF then x="h00E0AFD2" arm() else revert() end
- end
- for i = A[30].start, A[30].finish do o=I[i]
- if KO==OFF then x=1 arm() else revert() end
- end
- for i = A[31].start, A[31].finish do o=I[i]
- if KO==OFF then x="h00E0AFD2" arm() else revert() end
- end
- for i = A[32].start, A[32].finish do o=I[i]
- if KO==OFF then x=100 arm() else revert() end
- end
- for i = A[33].start, A[34].finish do o=I[i]
- if KO==OFF then x="h00E0AFD2" arm() else revert() end
- end
- if KO==OFF then KO=ON else KO=OFF end
- end
- --█████████████████████████████████████████████
- --public class PlayerController : MonoBehaviour, IEnemyTarget
- --public virtual void BeHit(int dame, ZombieModel myModel, ZombieBase attacker, bool isIgnoreArmor = False)
- A[35].name="DProject"
- A[35].class="PlayerController"
- A[35].method="BeHit"
- function god()
- if A[35].error==1 then error() return end
- for i = A[35].start, A[35].finish do o=I[i]
- if GM==OFF then x=0 arm() else revert() end
- end
- if GM==OFF then GM=ON else GM=OFF end
- end
- --█████████████████████████████████████████████
- --public class DSystem : SingletonMono<DSystem>
- --public long get_gameMoney()
- A[36].name="DProject"
- A[36].class="DSystem"
- A[36].method="get_gameMoney"
- --public long get_payMoney()
- A[37].name="DProject"
- A[37].class="DSystem"
- A[37].method="get_payMoney"
- --public long get_Diamond()
- A[38].name="DProject"
- A[38].class="DSystem"
- A[38].method="get_Diamond"
- --public int get_mascotCoin()
- A[39].name="DProject"
- A[39].class="DSystem"
- A[39].method="get_mascotCoin"
- function gold()
- for i = 36,39 do if A[i].error == 1 then error() break return end end
- for i = A[36].start, A[39].finish do o=I[i]
- if UM==OFF then x="h00E0AFD2" arm() else revert() end
- end
- if UM==OFF then UM=ON else UM=OFF end
- end
- --█████████████████████████████████████████████
- --public class DSystem : SingletonMono<DSystem>
- --public int get_grenadesCount()
- A[40].name="DProject"
- A[40].class="DSystem"
- A[40].method="get_grenadesCount"
- --public class DSystem : SingletonMono<DSystem>
- --public int get_aidKitCount()
- A[41].name="DProject"
- A[41].class="DSystem"
- A[41].method="get_aidKitCount"
- function eqpt()
- for i = 40,41 do if A[i].error == 1 then error() break return end end
- for i = A[40].start, A[41].finish do o=I[i]
- if UE==OFF then x="h007D80D2" arm() else revert() end
- end
- if UE==OFF then UE=ON else UE=OFF end
- end
- --█████████████████████████████████████████████
- --public class GunController : MonoBehaviour, IDealDamage
- --public int get_curBullet()
- A[42].name="DProject"
- A[42].class="GunController"
- A[42].method="get_curBullet"
- --public int get_clipSize()
- A[43].name="DProject"
- A[43].class="GunController"
- A[43].method="get_clipSize"
- --public float GetReloadTime()
- A[44].name="DProject"
- A[44].class="GunController"
- A[44].method="GetReloadTime"
- --private void DecreaseBullet()
- A[45].name="DProject"
- A[45].class="GunController"
- A[45].method="DecreaseBullet"
- --public float get_curAccuracy()
- function ammo()
- for i = 42,45 do if A[i].error == 1 then error() break return end end
- for i = A[42].start, A[43].finish do o=I[i]
- if UA==OFF then x="h007D80D2" arm() else revert() end
- end
- for i = A[44].start, A[45].finish do o=I[i]
- if UA==OFF then x=0 arm() else revert() end
- end
- if UA==OFF then UA=ON else UA=OFF end
- end
- --█████████████████████████████████████████████
- if v.processName~=GProcess then
- print("This Script is For:\n "..GLabel.."\n "..GProcess.."\nYou Selected:\n "..v.label.."\n "..v.processName)
- gg.setVisible (true) os.exit()
- return
- end
- ------------------------------------------------------------------------------
- if v.x64 then bitx=64 xBITx="[x64]" else bitx=32 xBITx="[x32]" end
- print(xBITx)
- print(printx)
- ------------------------------------------------------------------------------
- isrdy=gg.alert("Dead Target\nThis Script is Auto-Updating. \nInitial Calibration May Take A While.\n\nYOU MUST NOT CURRENTLY BE IN ANY GAMEPLAY (MISSION/BATTLE/ETC). Otherwise, Calibration will Fail and Hacks Not Work\n\n(All hacks must be activated from lobby)","EXIT","START",xTAGx)
- if isrdy~=2 then gg.setVisible(true) os.exit() return end
- --█████████████████████████████████████████████
- if LibResult==1 then
- xAPEXx={} xXx=0
- xLibRes=0
- libx=gg.getRangesList()
- if #(libx)==0 then
- print("×× LIB ERROR #01 ××\nNo Libs Found\nTry a Different Virtual Environment \nor Try a Better Game Installation Method\nor Download Game From 'apkcombo.com' ")
- gg.setVisible(true)
- os.exit()
- end
- libx=gg.getRangesList(xlib)
- if #(libx)==0 then
- print("×× No "..xlib.." Found")
- xLibRes=2
- goto APEX_SPLIT
- end
- xlibn=0
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" then
- xXx=xXx+1
- xAPEXx[xXx]=libx[i].start
- xLibRes=1
- end
- end
- if xLibRes==0 then
- print("×× LIB ERROR #03 ××\nNo "..xlib.." Found in Xa\nTry a Different Virtual Environment \nor Try a Better Game Installation Method\nor Download Game From 'apkcombo.com' ")
- gg.setVisible(true)
- os.exit()
- end
- ::APEX_SPLIT::
- if xLibRes==2 then
- splitapk=0
- libx=gg.getRangesList()
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" and string.match(libx[i].name,"split_config") then
- splitapk=1
- end
- end
- if splitapk==1 then
- xsapk={} xsapkx=0
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" then
- xsapkx=xsapkx+1
- xsapk[xsapkx]=libx[i]["end"]-libx[i].start
- end
- end
- if xsapkx~=0 then
- APEXQ=math.max(table.unpack(xsapk))
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" and libx[i]["end"]-libx[i].start==APEXQ then
- xXx=xXx+1
- xAPEXx[xXx]=libx[i].start
- print("√√ Split Apk Lib Found\n√√ "..libx[i].name)
- xLibRes=1
- end
- end
- end
- end
- if splitapk==0 and xLibRes~=1 then
- print("×× No split_config Lib Found")
- xc=1 xt={}
- libx=gg.getRangesList()
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" then
- xt[xc]=tonumber(libx[i]["end"]-libx[i].start)
- xc=xc+1
- end
- end
- APEXQ=math.max(table.unpack(xt))
- for i, v in ipairs(libx) do
- if libx[i].state=="Xa" and libx[i]["end"]-libx[i].start==APEXQ then
- xXx=xXx+1
- xAPEXx[xXx]=libx[i].start
- print("√√ math.max Xa Lib Found\n√√ "..libx[i].name)
- xLibRes=1
- end
- end
- end
- if xLibRes~=1 then
- print("×× Correct Lib Not Found ××\n×× Direct/Split Config/Xa Max ××")
- gg.setVisible(true)
- os.exit()
- return
- end
- end
- end
- --█████████████████████████████████████████████
- function arm()
- o=tonumber(o)
- for XxX=1,#(xAPEXx) do
- xdump=nil xdump={}
- xdump[1]={} xdump[2]={}
- xdump[1].address=xAPEXx[XxX] + o
- xdump[1].flags=4
- if x==0 then xdump[1].value=xfalse end
- if x==1 then xdump[1].value=xtrue end
- if x~=0 and x~=1 then xdump[1].value=x end
- xdump[2].address=xAPEXx[XxX]+(o+4)
- xdump[2].flags=4
- xdump[2].value=xEND
- gg.setValues(xdump)
- end
- end
- ------------------------------------------------------------------------------
- function revert()
- for XxX=1,#(xAPEXx) do
- REVERT=nil REVERT={} xRx=nil xRx=1
- for i, v in ipairs(ORIG) do
- if tonumber(xAPEXx[XxX]+o)==ORIG[i].address then
- REVERT[xRx]={}
- REVERT[xRx].address=xAPEXx[XxX]+o
- REVERT[xRx].flags=4
- REVERT[xRx].value=ORIG[i].value
- xRx=xRx+1
- REVERT[xRx]={}
- REVERT[xRx].address=xAPEXx[XxX]+o+4
- REVERT[xRx].flags=4
- REVERT[xRx].value=ORIG[i+1].value
- gg.setValues(REVERT)
- break
- end
- xRx=xRx+1
- end
- end
- end
- --█████████████████████████████████████████████
- function sort()
- SORT1={} apexsort=0
- for sorti = A[s].start, A[s].finish do
- apexsort=apexsort+1
- SORT1[apexsort] = I[sorti]
- end
- SORT2={} table.sort(SORT1)
- for sort2, v in pairs(SORT1) do
- SORT2[sort2]=v
- end
- r=SORT2[r]
- end
- --█████████████████████████████████████████████
- if v.x64 then
- xtrue="h200080D2" -- MOV X0, #0x1
- xfalse="h000080D2" -- MOV X0, #0x0
- xEND="hC0035FD6" -- RET
- else
- xtrue="h0100A0E3" -- MOVW R0, #1
- xfalse="h0000A0E3" -- MOVW R0, #0
- xEND="h1EFF2FE1" -- BX LR
- end
- --█████████████████████████████████████████████
- -- APEX[GG]v2
- function clear()
- gg.getResults(gg.getResultsCount())
- gg.clearResults()
- end
- ------------------------------------------------------------------------------
- function get()
- gg.getResults(gg.getResultsCount())
- end
- ------------------------------------------------------------------------------
- function search()
- gg.getResults(gg.getResultsCount())
- gg.clearResults()
- gg.searchNumber(x,t)
- end
- ------------------------------------------------------------------------------
- function refine()
- gg.refineNumber(x,t)
- end
- ------------------------------------------------------------------------------
- function refinenot()
- gg.refineNumber(x,t,false,gg.SIGN_NOT_EQUAL)
- end
- ------------------------------------------------------------------------------
- function edit()
- gg.getResults(gg.getResultsCount())
- gg.editAll(x,t)
- end
- ------------------------------------------------------------------------------
- function check()
- E=nil E=gg.getResultsCount()
- end
- ------------------------------------------------------------------------------
- function offset()
- o=tonumber(o) addoff=nil
- addoff=gg.getResults(gg.getResultsCount())
- for i, v in ipairs(addoff) do
- addoff[i].address=addoff[i].address+o
- addoff[i].flags=t
- end
- gg.loadResults(addoff)
- end
- --█████████████████████████████████████████████
- function cancel()
- gg.toast("CANCELLED")
- end
- ------------------------------------------------------------------------------
- function wait()
- gg.toast("Please Wait..")
- end
- ------------------------------------------------------------------------------
- function error()
- gg.toast("× ERROR ×")
- gg.sleep(1000)
- end
- ------------------------------------------------------------------------------
- function exit()
- gg.getListItems()
- gg.clearList()
- gg.getResults(gg.getResultsCount())
- gg.clearResults()
- gg.toast("[ EXIT ]")
- if xhaX~=nil then
- print(printx)
- print(xhaX)
- print(printx)
- end
- gg.setVisible(true)
- os.exit()
- return
- end
- --█████████████████████████████████████████████
- if v.x64 then off1=-16 typ=32 else off1=-8 typ=4 end
- gg.setRanges(gg.REGION_OTHER | gg.REGION_C_ALLOC)
- gmdx=gg.getRangesList("global-metadata.dat")
- if #(gmdx)~=0 then
- gmds=gg.getRangesList("global-metadata.dat")[1].start
- gmde=gg.getRangesList("global-metadata.dat")[1]["end"]
- else gmds=nil gmde=nil
- end
- ATOTAL=0
- for i = 1,100 do
- if A[i].class==nil then break end
- ATOTAL=ATOTAL+1
- end
- ASTART=1 AEND=0 ATABT=ATOTAL+1 ATAB=1
- S=0
- while ATAB<=ATOTAL do
- ::AUTOSTART::
- if ATAB>ATOTAL then break goto FINISHED end
- gg.toast("Please Wait.. [ "..ATABT-ATAB.." ]")
- A[ATAB].error=1
- ANAME=nil ANAME={}
- if A[ATAB].name~=nil then
- for i = 1,#(tostring(A[ATAB].name)) do
- ANAME[i]=string.byte(A[ATAB].name,i)
- end
- else
- ANAME[1]=0
- end
- ACLASS=nil ACLASS={}
- if A[ATAB].class~=nil then
- for i = 1,#(tostring(A[ATAB].class)) do
- ACLASS[i]=string.byte(A[ATAB].class,i)
- end
- else
- A[ATAB].class=0
- end
- ASTART=AEND+1
- clear() t=1
- gg.searchNumber(":"..tostring(A[ATAB].method),1,false,gg.SIGN_EQUAL,gmds, gmde)
- xm=gg.getResults(2) gg.getResults(gg.getResultsCount())
- check()
- if E==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- x=xm[1].value..";"..xm[2].value.."::2" refine()
- x=xm[1].value refine()
- o=-1 offset() x=0 refine() oo=#(tostring(A[ATAB].method))
- o=oo+1 offset() refine() o=-oo offset()
- check()
- if E==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- gg.searchPointer(0) xcount=gg.getResultsCount()
- xpoint=gg.getResults(xcount,nil, nil, nil, nil, nil, nil, nil,gg.POINTER_READ_ONLY)
- if #(xpoint)==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- clear()
- for xp=1,#(xpoint) do
- xpoint[xp].address=xpoint[xp].address+off1
- xpoint[xp].flags=typ
- end
- gg.loadResults(xpoint)
- xoff=gg.getResults(#(xpoint),nil, nil, nil, nil, nil, nil, nil, gg.POINTER_EXECUTABLE)
- if #(xoff)==0 then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- xfin=1
- while xfin<=#(xoff) do
- ::XFIN::
- if xfin>#(xoff) then ATAB=ATAB+1
- if ATAB>ATOTAL then break return end
- goto AUTOSTART return
- end
- if gg.getTargetInfo().x64 then
- xadd=tonumber(xoff[xfin].value)
- else
- xadd=string.format("%X",tonumber(xoff[xfin].value))
- xadd=string.sub(tostring(xadd), -8,-1)
- xadd=tonumber("0x"..xadd)
- end
- gval1=nil gval1={} gval1[1]={}
- if gg.getTargetInfo().x64 then gvo=24 gvo1=16 gvo2=24 else gvo=12 gvo1=8 gvo2=12 end
- gval1[1].address=xoff[xfin].address+gvo
- gval1[1].flags=typ
- gval1=gg.getValues(gval1)
- if gg.getTargetInfo().x64 then
- gval=tonumber(gval1[1].value)
- else
- gval=string.format("%X",tonumber(gval1[1].value))
- gval=string.sub(tostring(gval), -8,-1)
- gval=tonumber("0x"..gval)
- end
- gval2=nil gval2={} gval2[1]={} gval2[2]={}
- gval2[1].address=gval+gvo1
- gval2[1].flags=typ
- gval2[2].address=gval+gvo2
- gval2[2].flags=typ
- gval2=gg.getValues(gval2)
- if gg.getTargetInfo().x64 then
- gval21=tonumber(gval2[1].value)
- gval22=tonumber(gval2[2].value)
- else
- gval21=string.format("%X",tonumber(gval2[1].value))
- gval21=string.sub(tostring(gval21), -8,-1)
- gval21=tonumber("0x"..gval21)
- gval22=string.format("%X",tonumber(gval2[2].value))
- gval22=string.sub(tostring(gval22), -8,-1)
- gval22=tonumber("0x"..gval22)
- end
- xrefine=0
- if A[ATAB].class~=0 then
- for xyz=1,#(ACLASS) do
- gvalc={} gvalc[1]={}
- gvalc[1].address=gval21+(xyz-1)
- gvalc[1].flags=1
- gvalc=gg.getValues(gvalc)
- if gvalc[1].value~=ACLASS[xyz] then xrefine=1 break xfin=xfin+1 goto XFIN end
- end
- end
- if A[ATAB].name~=0 then
- for xyz=1,#(ANAME) do
- gvalc={} gvalc[1]={}
- gvalc[1].address=gval22+(xyz-1)
- gvalc[1].flags=1
- gvalc=gg.getValues(gvalc)
- if gvalc[1].value~=ANAME[xyz] then xrefine=1 break xfin=xfin+1 goto XFIN end
- end
- end
- if xrefine==0 then
- A[ATAB].start=ASTART AEND=AEND+1
- A[ATAB].finish=AEND
- A[ATAB].error=0
- clear() I[AEND]=xadd-xAPEXx[xXx]
- end
- xfin=xfin+1
- end -- xfin
- ATAB=ATAB+1
- end -- ATAB
- ---------------------------------------------------
- ::FINISHED::
- xBAR=0
- for i = 1, ATOTAL do
- if A[i].error~=0 then xBAR=xBAR+1 end
- end
- if xBAR==ATOTAL then
- gg.alert("× AUTO UPDATE FAILURE ×","EXIT",nil, xTAGx)
- exit()
- return
- end
- if xBAR>=1 then gg.alert("× Auto Update Errors\nSome/All Hacks May Not Work","OK",nil, xTAGx)
- else gg.alert("√ Auto Update Success","OK",nil, xTAGx)
- end
- --------------------------------
- noads()
- --█████████████████████████████████████████████
- if xREV==1 then
- xRx=1 ORIG={} xREV={}
- for XxX=1,#(xAPEXx) do
- for i, v in ipairs(I) do
- ORIG[xRx]={}
- ORIG[xRx].address=xAPEXx[XxX]+tonumber(I[i])
- ORIG[xRx].flags=4
- xRx=xRx+1
- ORIG[xRx]={}
- ORIG[xRx].address=xAPEXx[XxX]+tonumber(I[i])+4
- ORIG[xRx].flags=4
- xRx=xRx+1
- end
- end
- ORIG=gg.getValues(ORIG)
- end
- --█████████████████████████████████████████████
- while true do
- if gg.isVisible() then
- gg.setVisible(false)
- menu()
- else
- if apex==1 then
- gg.setVisible(false)
- menu()
- end
- end
- end
Add Comment
Please, Sign In to add comment