View previous topic :: View next topic |
Author |
Message |
Kackboon How do I cheat? Reputation: 0
Joined: 28 May 2018 Posts: 2
|
Posted: Mon May 28, 2018 5:10 am Post subject: Auto enable Cheats when starting |
|
|
Hello,
my code in the auto-assembler looks like this:
[ENABLE]
Manager11.CheckForKitColorClashing+C7B2:
nop
nop
Manager11.CheckForKitColorClashing+C7CB:
nop
nop
[DISABLE]
Manager11.CheckForKitColorClashing+C7B2:
je Manager11.CheckForKitColorClashing+C7C7
Manager11.CheckForKitColorClashing+C7CB:
jl Manager11.CheckForKitColorClashing+C762
I save it as a EXE with a shortcut (alt+t) to switch between enable and disable.
Works without any problems.
I would like to know if it is possible to auto-enable the entries after starting the trainer.exe?
regards
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 460
Joined: 09 May 2003 Posts: 25326 Location: The netherlands
|
Posted: Mon May 28, 2018 6:06 am Post subject: |
|
|
in the lua script section of your trainer add some code that either watches for the openprocess event, and then start a timer, or just start a timer anyhow, and in there check if the Active property of the memoryrecord with that code is true or not.
if it's not the case, set it to true. If activating fails because the process hasn't been attached yet, the next time the timer runs it sees it's false, and then tries again till it works
to get the memoryrecord use
Code: |
memrec=AddressList.GetMemoryRecordByDescription('No description')
|
to create a timer do something like:
Code: |
t=createTimer()
t.Interval=1000
t.OnTimer=function(t)
--check if memrec.Active is false and if so set it to true
end
t.Enabled=true
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Kackboon How do I cheat? Reputation: 0
Joined: 28 May 2018 Posts: 2
|
Posted: Tue May 29, 2018 1:38 am Post subject: |
|
|
Thank you, I will test this later.
Just a short question: What does the intervall (1000) stand for? Minutes, seconds or miliseconds?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 460
Joined: 09 May 2003 Posts: 25326 Location: The netherlands
|
Posted: Tue May 29, 2018 2:43 am Post subject: |
|
|
millseconds (1000=1 second)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|