Here is mine script, you should understand the pattern.
Code:
function AutoAttach()
local ProcessName = "FIFA17.exe"
local ProcessName_Trial = "FIFA17_TRIAL.exe"
local UseAutoActivator = true
local ProcIDNormal = getProcessIDFromProcessName(ProcessName)
local ProcIDTrial = getProcessIDFromProcessName(ProcessName_Trial)
if ProcIDNormal ~= nil then
openProcess(ProcessName)
timer_setEnabled(AutoAttachTimer, false)
AutoActivator(UseAutoActivator)
elseif ProcIDTrial ~= nil then
openProcess(ProcessName_Trial)
timer_setEnabled(AutoAttachTimer, false)
AutoActivator(UseAutoActivator)
end
end
function AutoActivator(UseAutoActivator)
if UseAutoActivator ~= true then
return
end
getAddressList().getMemoryRecordByDescription("ActivateItFirst").Active=true
getAddressList().getMemoryRecordByDescription("Training sim - A").Active=true
getAddressList().getMemoryRecordByDescription("Training Everyday").Active=true
getAddressList().getMemoryRecordByDescription("Reveal player data").Active=true
getAddressList().getMemoryRecordByDescription("SCOUT_REPORT_PLAYERS = 15").Active=true
getAddressList().getMemoryRecordByDescription("Only 16yo players").Active=true
getAddressList().getMemoryRecordByDescription("Reveal ovr and pot").Active=true
getAddressList().getMemoryRecordByDescription("PRIMARY_ATTRIBUTES_RANGE = [10, 20]").Active=true
getAddressList().getMemoryRecordByDescription("SECONDARY_ATTRIBUTES_RANGE = [10, 20]").Active=true
getAddressList().getMemoryRecordByDescription("Disable Morale").Active=true
getAddressList().getMemoryRecordByDescription("5 star skill moves on all players").Active=true
end
AutoAttachTimer = createTimer(nil)
timer_onTimer(AutoAttachTimer, AutoAttach)
timer_setInterval(AutoAttachTimer, 1000)
timer_setEnabled(AutoAttachTimer, true)
UPDATE - 27.04.2017
Added more 'In-Game Hacks':
- Freezing/Reseting Match timer + End current match half
- Pointer for home and away team score
- Home/Away team Always Tired
- Home/Away team Never Tired
- Home/Away team Injured
- Home/Away team Never Injured (Didn't tested)