View previous topic :: View next topic |
Author |
Message |
Cake-san Grandmaster Cheater Reputation: 8
Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
|
Posted: Thu Sep 10, 2015 4:44 am Post subject: |
|
|
don't know if it work or not
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscan(ammo, 8B 74 24 20 89 0C 90) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
mov esi,[esp+20]
mov [eax+edx*4],100
jmp return
ammo:
jmp code
nop
nop
return:
registersymbol(ammo)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
ammo:
db 8B 74 24 20 89 0C 90
unregistersymbol(ammo)
dealloc(newmem)
|
if it doesn't work
just add more number at aobscan
like this
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscan(ammo,38 8B 74 24 20 89 0C 90) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
mov esi,[esp+20]
mov [eax+edx*4],100
jmp return
ammo+1:
jmp code
nop
nop
return:
registersymbol(ammo)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
ammo+1:
db 8B 74 24 20 89 0C 90
unregistersymbol(ammo)
dealloc(newmem)
|
_________________
... |
|
Back to top |
|
|
Alioth Newbie cheater Reputation: 0
Joined: 01 Feb 2011 Posts: 14
|
Posted: Thu Sep 10, 2015 4:55 am Post subject: |
|
|
Cake-san wrote: | don't know if it work or not
|
it works! thank you. Now I should be able to get the scripts done for health, armor too. Will let you know if they are working as well.
|
|
Back to top |
|
|
Cake-san Grandmaster Cheater Reputation: 8
Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
|
Posted: Thu Sep 10, 2015 5:00 am Post subject: |
|
|
I thought this game has its own console command?,
but nevermind different people has its own different approach.
_________________
... |
|
Back to top |
|
|
Alioth Newbie cheater Reputation: 0
Joined: 01 Feb 2011 Posts: 14
|
Posted: Thu Sep 10, 2015 5:02 am Post subject: |
|
|
Cake-san wrote: | I thought this game has its own console command?,
but nevermind different people has its own different approach. |
yes, but I'm making scripts for fun
|
|
Back to top |
|
|
Rydian Grandmaster Cheater Supreme Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Thu Sep 10, 2015 6:54 am Post subject: |
|
|
OP... the issue is the template uses aobscanmodule() instead of aobscan().
The difference is that the module() one specifies which process to scan.
And that game was starting up with a randomly-named thing.
So take your original script, which works, and change aobscanmodule() into aobscan() and delete the middle argument (which is the temporary process name).
_________________
|
|
Back to top |
|
|
|