Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25705 Location: The netherlands
|
Posted: Sun Oct 12, 2014 3:10 pm Post subject: Making your scripts easier to use |
|
|
When you're creating tables and posting them on the internet, you may sometimes encounter users that have never used cheat engine or computers before.
Trying to explain them how to open a process can be painful sometimes (instead of clicking the computer, they open a command prompt and delete their windows folder)
to make things easier for them here is a small snippet of code you can add to your auto assembler scripts, or first script, to help them out:
Code: |
{$lua}
local targetprocess="processname.exe" --replace with your target
if readInteger(targetprocess)==nil then --failed reading the memory of the main process module
if openProcess(targetprocess)==nil then
messageDialog("I'm sorry, but the game needs to be running to be able to use this feature", mtError, mbOk)
error();
end
end
{$asm}
|
an example of a script that uses it:
Code: |
{$lua}
local targetprocess="tutorial-i386.exe" --replace with your target
if readInteger(targetprocess)==nil then --failed reading the memory of the main process module
if openProcess(targetprocess)==nil then
messageDialog("I'm sorry, but the game needs to be running to be able to use this feature", mtError, mbOk)
error();
end
end
{$asm}
[enable]
00400500:
nop
nop
nop
[disable]
00400500:
db 00 00 00
|
_________________
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 |
|