script Cheat Engine to c++
Help Us to rewrite the script in c++ dll
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
alloc(freeze,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(exit1)
freeze: //this is allocated memory, you have read,write,execute access
//place your code here
popfd
exit1:
jmp returnhere
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
pushfd
cmp [esi+43C],0
je freeze
popfd
originalcode:
movaps [esi+000000D0],xmm0
exit:
jmp returnhere
floataob:
float:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(freeze)
float:
movaps [esi+000000D0],xmm0
unregistersymbol(float)
Scrach that I had a mistake