Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LUA = 'WILS2M'
- GLabel = 'Last Hope 3'
- GProcess = 'com.JESoftware.LastHopeSniper3'
- 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\
- - Set player to High XP\
- - Unlimited Gold, Coins\
- - Unlimited Ammos, No Reload\
- - No Ads\
- - Free upgrades\
- - Max Zoom\
- ❦ ════ •⊰❂ - ❂⊱• ════ ❦\
- ")
- ------------------------------------------------------------------------------
- A={} for i =1,100 do A[i]={} end
- ------------------------------------------------------------------------------
- OFF="× " ON="√ "
- UG=OFF UC=OFF HL=OFF NR=OFF MZ=OFF FU=OFF WH=OFF DM=OFF UA=OFF PL=OFF AP=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({
- UG.."Unlimited Gold",
- UC.."Unlimited Coins",
- WH.."Weapons Hacks",
- DM.."High Damage",
- UA.."Unlimited Ammo",
- FU.."Free upgrades",
- HL.."Player to High Level",
- NR.."No Reload",
- MZ.."Max Zoom",
- "[ EXIT ]"},
- {},xTAGx.."\n"..xLINKx.."\n"..GLabel.." "..GVersion.." "..xBITx)
- if mc==nil then cancel() return end
- if mc[1] then gold() end
- if mc[2] then coins() end
- if mc[3] then weapons() end
- if mc[4] then damage() end
- if mc[5] then ammo() end
- if mc[6] then upgrade() end
- if mc[7] then xp() end
- if mc[8] then reload() end
- if mc[9] then zoom() end
- xhaX={
- UG.."Unlimited Gold",
- UC.."Unlimited Coins",
- WH.."Weapons Hacks",
- DM.."High Damage",
- UA.."Unlimited Ammo",
- FU.."Free upgrades",
- HL.."Player to High Level",
- NR.."No Reload",
- MZ.."Max Zoom",
- }
- xhaX=table.concat(xhaX, "\n")
- xhaX=tostring(xhaX)
- if mc[10] then exit() return end
- gg.toast("[√] Complete")
- gg.alert(GLabel.." "..GVersion.." "..xBITx.."\n\n"..xhaX,"OK",nil,xTAGx)
- end
- --█████████████████████████████████████████████
- --public class JEGameSettings : JESingletonManagerBehaviour<JEGameSettings>
- --public static bool get_NoSplashAds
- A[1].class="JEGameSettings"
- A[1].method="get_NoSplashAds"
- --public class JEGameSettings : JESingletonManagerBehaviour<JEGameSettings>
- --public static bool get_NoWaitTimeOnCrates()
- A[2].class="JEGameSettings"
- A[2].method="get_NoWaitTimeOnCrates"
- --public static bool get_NoSecretCompartment()
- A[3].class="JEGameSettings"
- A[3].method="get_NoSecretCompartment"
- function adprem()
- for i = 1,3 do if A[i].error == 1 then error() break return end end
- for i = A[1].start, A[3].finish do o=I[i]
- if AP==OFF then x=1 arm() else revert() end
- end
- if AP==OFF then AP=ON else AP=OFF end
- end
- --█████████████████████████████████████████████
- --public class GlobalStatistics
- --public static int get_AllaRubiner
- --10M x="h2013A0D2"
- A[4].class="GlobalStatistics"
- A[4].method="get_AllaRubiner"
- function gold()
- if A[4].error==1 then error() return end
- for i = A[4].start, A[4].finish do o=I[i]
- if UG==OFF then x="h2013A0D2" arm() else revert() end
- end
- if UG==OFF then UG=ON else UG=OFF end
- end
- --█████████████████████████████████████████████
- --public class GlobalStatistics
- --public static int get_AllaMynt()
- --10M x="h2013A0D2"
- A[5].class="GlobalStatistics"
- A[5].method="get_AllaRubiner"
- function coins()
- if A[5].error==1 then error() return end
- for i = A[5].start, A[5].finish do o=I[i]
- if UC==OFF then x="h2013A0D2" arm() else revert() end
- end
- if UC==OFF then UC=ON else UC=OFF end
- end
- --█████████████████████████████████████████████
- --public class GlobalStatistics
- --public static int get_PlayerXP()
- A[6].class="GlobalStatistics"
- A[6].method="get_PlayerXP"
- function xp()
- if A[6].error==1 then error() return end
- for i = A[6].start, A[6].finish do o=I[i]
- if HL==OFF then x="h2013A0D2" arm() else revert() end
- end
- if HL==OFF then HL=ON else HL=OFF end
- end
- --█████████████████████████████████████████████
- --public class Weapon : MonoBehaviour
- --public float ReloadTime()
- A[7].class="Weapon"
- A[7].method="ReloadTime"
- function reload()
- if A[7].error==1 then error() return end
- for i = A[7].start, A[7].finish do o=I[i]
- if NR==OFF then x=0 arm() else revert() end
- end
- if NR==OFF then NR=ON else NR=OFF end
- end
- --█████████████████████████████████████████████
- --public class SniperWeapon : MonoBehaviour
- --public int get_MaxZoomLevels()
- A[8].class="SniperWeapon"
- A[8].method="get_MaxZoomLevels"
- function zoom()
- if A[8].error==1 then error() return end
- for i = A[8].start, A[8].finish do o=I[i]
- if MZ==OFF then x="h800180D2" arm() else revert() end
- end
- if MZ==OFF then MZ=ON else MZ=OFF end
- end
- --█████████████████████████████████████████████
- --public class JEPlayerContainerGUI : MonoBehaviour
- --public bool get_FreeUpgrade()
- A[9].class="JEPlayerContainerGUI"
- A[9].method="get_FreeUpgrade"
- --public class JESniperWeaponParts.WeaponPart
- --public int get_CostCoins()
- A[10].class="WeaponPart"
- A[10].method="get_CostCoins"
- --public int get_CostParts()
- A[11].class="WeaponPart"
- A[11].method="get_CostParts"
- --public int get_costRubys()
- A[12].class="WeaponPart"
- A[12].method="get_costRubys"
- --public class JESniperWeaponSpecialPart : MonoBehaviour
- --public bool CanUpgrade(bool rubies = False)
- A[13].class="JESniperWeaponSpecialPart"
- A[13].method="CanUpgrade"
- --public int NextLevelCost(bool coins = True)
- A[14].class="JESniperWeaponSpecialPart"
- A[14].method="NextLevelCost"
- --public bool isBoughtPart(int p)
- A[15].class="JESniperWeaponSpecialPart"
- A[15].method="isBoughtPart"
- --public class JEMultiplayerHero : MonoBehaviour, ITriggerDataOwner
- --public bool get_HeroLocked()
- A[16].class="JEMultiplayerHero"
- A[16].method="get_HeroLocked"
- function upgrade()
- for i = 9,16 do if A[i].error == 1 then error() break return end end
- for i = A[9].start, A[9].finish do o=I[i]
- if FU==OFF then x=1 arm() else revert() end
- end
- for i = A[10].start, A[12].finish do o=I[i]
- if FU==OFF then x=0 arm() else revert() end
- end
- for i = A[13].start, A[13].finish do o=I[i]
- if FU==OFF then x=1 arm() else revert() end
- end
- for i = A[14].start, A[14].finish do o=I[i]
- if FU==OFF then x=0 arm() else revert() end
- end
- for i = A[15].start, A[15].finish do o=I[i]
- if FU==OFF then x=1 arm() else revert() end
- end
- for i = A[16].start, A[16].finish do o=I[i]
- if FU==OFF then x=1 arm() else revert() end
- end
- if FU==OFF then FU=ON else FU=OFF end
- end
- --█████████████████████████████████████████████
- --public class JESniperWeaponContainer : MonoBehaviour
- --public bool get_isHeatingWeapon()
- A[17].class="JESniperWeaponContainer"
- A[17].method="get_isHeatingWeapon"
- --public bool get_IsLocked()
- A[18].class="JESniperWeaponContainer"
- A[18].method="get_IsLocked"
- --public int BuyCost(bool coins)
- A[19].class="JESniperWeaponContainer"
- A[19].method="BuyCost"
- --public bool CanBuyWith(bool rubies, float factor)
- A[20].class="JESniperWeaponContainer"
- A[20].method="CanBuyWith"
- function weapons()
- for i = 17,20 do if A[i].error == 1 then error() break return end end
- for i = A[17].start, A[20].finish do o=I[i]
- if WH==OFF then x=0 arm() else revert() end
- end
- if WH==OFF then WH=ON else WH=OFF end
- end
- --█████████████████████████████████████████████
- --public class Weapon : MonoBehaviour
- --public float get_internalMaxBullets()
- --float 1000 inutile plus --x="h408FA8D2"
- A[21].class="Weapon"
- A[21].method="get_internalMaxBullets"
- --public class JESniperWeaponContainer : MonoBehaviour
- --public float get_ClipSize()
- --float 1000 inutile plus --x="h408FA8D2"
- A[22].class="JESniperWeaponContainer"
- A[22].method="get_ClipSize"
- function ammo()
- for i = 21,22 do if A[i].error == 1 then error() break return end end
- for i = A[21].start, A[22].finish do o=I[i]
- if UA==OFF then x="h408FA8D2" arm() else revert() end
- end
- if UA==OFF then UA=ON else UA=OFF end
- end
- --█████████████████████████████████████████████
- --public float get_MaxDamage()
- --I[18]=0xFDFB30
- --public float get_Damage()
- --I[19]=0xFE016C
- --public class Weapon : MonoBehaviour
- --public float get_GetWeaponRange()
- --I[20]=0xF3A918
- --public float get_CalculatedDamage()
- A[23].class="Weapon"
- A[23].method="get_CalculatedDamage"
- --public bool FireBullet(bool force = False, bool consumeAmmo = True)
- A[24].class="Weapon"
- A[24].method="FireBullet"
- function damage()
- for i = 23,24 do if A[i].error == 1 then error() break return end end
- for i = A[23].start, A[23].finish do o=I[i]
- if DM==OFF then x="h2013A0D2" arm() else revert() end
- end
- for i = A[24].start, A[24].finish do o=I[i]
- if DM==OFF then x=1 arm() else revert() end
- end
- if DM==OFF then DM=ON else DM=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("Last Hope 3\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
- --------------------------------
- adprem()
- --█████████████████████████████████████████████
- 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