I have 3 scripts that needs to change the value in the same time when I write the value - so I think I must merge 3 scripts in one script and then add function to make a possible to change the value in 4-bytes to 0 or 1 - it can be only these values because 0 means INVINCIBLE and 1 means WASTED.
So my problem is I dont know how to merge 3 scripts in one script and I dont know how to add a function to the script that I will have a possibility to write by myself a value (0 or 1) in cheat engine table (by add adress manually) and then freeze the address.
Scripts are here:
Spoiler
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov eax,[ebx+0000010C]
exit:
jmp returnhere
"Asphalt8.exe"+D6910C:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Asphalt8.exe"+D6910C:
mov eax,[ebx+0000010C]
//Alt: db 8B 83 0C 01 00 00
Spoiler
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov eax,[ebx+0000010C]
exit:
jmp returnhere
"Asphalt8.exe"+DF920:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Asphalt8.exe"+DF920:
mov eax,[ebx+0000010C]
//Alt: db 8B 83 0C 01 00 00
Spoiler
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov eax,[ebx+0000010C]
exit:
jmp returnhere
"Asphalt8.exe"+D68726:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Asphalt8.exe"+D68726:
mov eax,[ebx+0000010C]
//Alt: db 8B 83 0C 01 00 00