The Only Sane Man How do I cheat?
Reputation: 0
Joined: 05 Mar 2014 Posts: 1
|
Posted: Thu Mar 06, 2014 5:09 pm Post subject: How to Combine Two Scripts? |
|
|
Greetings, Comrades!
I am currently learning the way of Assembly. Recently I have come across a wall.
I have two scripts. One that forcibly modifies the money of the game to change to 999999 when I spend it, the other when I gain it.
How would I go about combining these scripts? Here they are, for reference:
Code: | //Overall money is modified to 999999 when it is lost
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere_lose)
label(no_lose)
label(exit_lose)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
no_lose:
mov [ecx+10],f423f
mov al,01
exit_lose:
jmp returnhere_lose
"MajestyHD.exe"+1BE18F:
jmp newmem
returnhere_lose:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"MajestyHD.exe"+1BE18F:
mov [ecx+10],eax
mov al,01
//Alt: db 89 41 10 B0 01 |
Code: | //Overall money is modified to 999999 when gained
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere_gain)
label(no_gain)
label(exit_gain)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
no_gain:
mov [ecx+10],f423f
pop ebp
mov al,01
exit_gain:
jmp returnhere_gain
"MajestyHD.exe"+F0447:
jmp newmem
nop
returnhere_gain:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"MajestyHD.exe"+F0447:
mov [ecx+10],eax
pop ebp
mov al,01
//Alt: db 89 41 10 5D B0 01 |
All help is appreciated.
|
|