-- Author: mgr.inz.Player -- Source: https://www.cheatengine.org/forum/viewtopic.php?t=611168 -- Usage: -- - Copy this LUA file into CE's autorun folder -- - Put a line with the number you need right under your AOB scan. For example, '2'nd: -- [ENABLE] -- aobscan(myPtr,48 8b 05 * * * * 48 85 c0 0f 85) -- LuaCall(find_Nth_Result_AOB('myPtr',2,[=[myPtr]=],"48 8b 05 * * * * 48 85 c0 0f 85")) -- Notes: -- - Your initial AOB scan may be of any type of AOB scan; the subsequent scans (LuaCall) will each continue from there. -- - The 'symbol' does not need to be the same as 'start'; you can leverage this to keep the previous scan's address. -- - The 'symbol' will be registered for you, remember to unregister it when you no longer need it. function find_Nth_Result_AOB(symbol,N,start,pattern) if start==' 00000000' then return end if N<=1 then registerSymbol(symbol,start) return end local script='aobscanregion('..symbol..','..start..'+1,7fffffffffffffff,'..pattern..')\r\nregistersymbol('..symbol..')' local success=autoAssemble(script) if success and (N>2) then find_Nth_Result_AOB(symbol,N-1,string.format('%08X',getAddress(symbol)),pattern) end if not success then unregisterSymbol(symbol); error() end end