sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sat Jul 02, 2016 12:56 pm Post subject: Trigger for AutoAssembly |
|
|
Hi
I make this script for Trigger for any player(Cheat Engine Tutorial), my script have bug. Can help me?
This script:
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(Enemy_Kill)
label(Enemy_Flag)
label(Player_Flag)
Registersymbol(Enemy_Flag)
Registersymbol(Player_Flag)
Player_Flag:
dd 0
Enemy_Flag:
dd 0
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [Player_Flag],1
cmp [ebx+10],0
jne Enemy_Kill
mov dword ptr [ebx+04],(float)5000
jmp originalcode
je exit
Enemy_Kill:
mov dword ptr [ebx+04],(float)0
cmp [Enemy_Flag],1
je exit
originalcode:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]
exit:
jmp returnhere
"Tutorial-i386.exe"+27D7D:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Tutorial-i386.exe"+27D7D:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]
Unregistersymbol(Enemy_Flag)
Unregistersymbol(Player_Flag)
//Alt: db D8 6B 04 D9 5D D0 |
In Cheat Engine we can't enable two scripts are similar to. Thus i want find a way that make Trigger in this script for Enemy health and player health Separately.
Thanks for your helps & answers
*SJL002*
|
|