 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
KalasDev Master Cheater
Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Oct 10, 2016 8:16 am Post subject: Script question |
|
|
| Code: | [ENABLE]
aobscanmodule(aobAmmo,mafia3.exe,44 89 40 18 48 8B 01) // should be unique
alloc(newmem,$100,"mafia3.exe"+2F129CD)
label(code)
label(return)
newmem:
code:
//mov [rax+18],r8d
//mov [rax+18],63 // Set's Ammo to 99
db 90 90 90 // NOP current Ammo
mov rax,[rcx]
jmp return
aobAmmo:
jmp newmem
nop
nop
return:
registersymbol(aobAmmo)
[DISABLE]
aobAmmo:
db 44 89 40 18 48 8B 01
unregistersymbol(aobAmmo)
dealloc(newmem) |
I've went with someone Video TUT and I found out that I need to do:
db 90 90 90 to nop my current Ammo, My question is how do I find out the amount of 90 I need to put in the script, do I need to find the what writes to the address, In memory view, replace with code that does nothing and see how much 90 shows up? And if I see for example C3 90 90 90 I need to do:
db C3 90 90 90 for it to work?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25818 Location: The netherlands
|
Posted: Mon Oct 10, 2016 8:57 am Post subject: |
|
|
that db 90 90 90 line is useless, so don't even look at it
as for the two nop's after jmp newmem, ce will fill those in for you (it's to make up the size of the original instruction(s) minus the size of the jmp instruction
also, this code can be rewritten to:
| Code: |
[ENABLE]
aobscanmodule(aobAmmo,mafia3.exe,44 89 40 18 48 8B 01) // should be unique
aobAmmo:
nop
nop
nop
nop
[DISABLE]
aobAmmo:
db 44 89 40
unregistersymbol(aobAmmo)
dealloc(newmem)
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
Last edited by Dark Byte on Mon Oct 10, 2016 9:38 am; edited 1 time in total |
|
| Back to top |
|
 |
KalasDev Master Cheater
Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Oct 10, 2016 9:13 am Post subject: |
|
|
| Ahh I see thank you.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|