View Single Post
Old 02-04-2021, 10:09
LordGarfio LordGarfio is offline
Join Date: Jan 2005
Posts: 44
Rept. Given: 7
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 71
Thanks Rcvd at 44 Times in 16 Posts
LordGarfio Reputation: 2
Below is an example of a loader using the Cheat Engine that I found on the net.

<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="31">
<LuaScript>PROCESS_NAME = ''
-------- Auto Attach
local autoAttachTimer = nil ---- variable to hold timer object
local autoAttachTimerInterval = 1000 ---- Timer intervals are in milliseconds
local autoAttachTimerTicks = 0 ---- variable to count number of times the timer has run
local autoAttachTimerTickMax = 5000 ---- Set to zero to disable ticks max
local function autoAttachTimer_tick(timer) ---- Timer tick call back
---- Destroy timer if max ticks is reached
if autoAttachTimerTickMax &gt; 0 and autoAttachTimerTicks &gt;= autoAttachTimerTickMax then
---- Check if process is running
if getProcessIDFromProcessName(PROCESS_NAME) ~= nil then
timer.destroy() ---- Destroy timer
openProcess(PROCESS_NAME) ---- Open the process
writeBytes(0x00458816, 0xb8, 0x01, 0x00, 0x00, 0x00 )
writeBytes(0x00448120, 0xc7, 0x83, 0x70, 0x09, 0x00, 0x00, 0x01, 0x00, 0x00)
writeBytes(0x0044812A, 0xe9, 0x9c, 0x00, 0x00, 0x00, 0x90, 0x90 )
writeBytes(0x004485E6, 0xeb)
writeBytes(0x00443973, 0xeb)

autoAttachTimerTicks = autoAttachTimerTicks + 1 ---- Increase ticks
autoAttachTimer = createTimer(getMainForm()) ---- Create timer with the main form as it's parent
autoAttachTimer.Interval = autoAttachTimerInterval ---- Set timer interval
autoAttachTimer.OnTimer = autoAttachTimer_tick ---- Set timer tick call back


I hope you find it useful.
Reply With Quote
The Following 4 Users Say Thank You to LordGarfio For This Useful Post:
mcr4ck (02-04-2021), niculaita (07-22-2021), Sailor_EDA (07-28-2021), sh3dow (07-26-2021)