 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
crashin How do I cheat?
Reputation: 0
Joined: 17 Jul 2016 Posts: 2
|
Posted: Wed Sep 30, 2020 12:47 am Post subject: Cheat code help [combine multiple addresses of ammo] |
|
|
first ever table i've made.
my first address is:
Socom Pistol: 0079d362
there are 8 more weapons, all going up by 2, 0079d364, 0079d366 etc.
currently i just have them in as manual addresses with 9 different rows of them. if you dont have the weapon yet the value is 65535, to get the weapon it has to be 9999 or less. (this # is the ammo count)
-some items need to be quantity 1.
i'm using this aobscan for the Socom Pistol: 0079d362 to just have it save the amount of ammo i already have (Socom Pistol: Infinite Ammo code]. if i dont have the weapon it doesn't do anything since it just locks in default value
is there a way for this script to "add in" the quantity to say, 200 or 1?
also since they are all +2, can they be combined to give all 9 of them with 200 ammo? (basically an: All Weapons, 200 Ammo) cheat.
the manual address way is annoying having to change the values from 65535 to whatever number every time i start the game, thats why im trying to do something like this thats just a 1 click button
Code: | [ENABLE]
aobscanmodule(InfAmmoSocom,mgsvr.exe,66 FF 0D 62 D3 79 00) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
// dec word ptr [mgsvr.exe+39D362]
jmp return
InfAmmoSocom:
jmp newmem
nop 2
return:
registersymbol(InfAmmoSocom)
[DISABLE]
InfAmmoSocom:
db 66 FF 0D 62 D3 79 00
unregistersymbol(InfAmmoSocom)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "mgsvr.exe"+24F27D
"mgsvr.exe"+24F262: 8B 46 04 - mov eax,[esi+04]
"mgsvr.exe"+24F265: A3 6C 3E 9A 00 - mov [mgsvr.exe+5A3E6C],eax
"mgsvr.exe"+24F26A: 6A 01 - push 01
"mgsvr.exe"+24F26C: 8D 45 E0 - lea eax,[ebp-20]
"mgsvr.exe"+24F26F: 50 - push eax
"mgsvr.exe"+24F270: 57 - push edi
"mgsvr.exe"+24F271: E8 F0 8A EC FF - call mgsvr.exe+117D66
"mgsvr.exe"+24F276: 8B 45 08 - mov eax,[ebp+08]
"mgsvr.exe"+24F279: 83 C4 0C - add esp,0C
"mgsvr.exe"+24F27C: 48 - dec eax
// ---------- INJECTING HERE ----------
"mgsvr.exe"+24F27D: 66 FF 0D 62 D3 79 00 - dec word ptr [mgsvr.exe+39D362]
// ---------- DONE INJECTING ----------
"mgsvr.exe"+24F284: 66 A3 A8 3E 9A 00 - mov [mgsvr.exe+5A3EA8],ax
"mgsvr.exe"+24F28A: 66 C7 05 60 3E 9A 00 0C 00 - mov word ptr [mgsvr.exe+5A3E60],000C
"mgsvr.exe"+24F293: 5F - pop edi
"mgsvr.exe"+24F294: 5E - pop esi
"mgsvr.exe"+24F295: 5B - pop ebx
"mgsvr.exe"+24F296: C9 - leave
"mgsvr.exe"+24F297: C3 - ret
"mgsvr.exe"+24F298: 8B 44 24 08 - mov eax,[esp+08]
"mgsvr.exe"+24F29C: 53 - push ebx
"mgsvr.exe"+24F29D: 56 - push esi
} |
Description: |
|
Filesize: |
63.31 KB |
Viewed: |
1676 Time(s) |

|
|
|
Back to top |
|
 |
DanyDollaro Master Cheater
Reputation: 3
Joined: 01 Aug 2019 Posts: 334
|
Posted: Wed Sep 30, 2020 6:24 am Post subject: |
|
|
Hope I didn't misunderstand your request, in your script try changing this:
Code: | code:
// dec word ptr [mgsvr.exe+39D362]
jmp return |
to this:
Code: | code:
push eax
mov eax, #200
mov [mgsvr.exe+39D362], eax
pop eax
jmp return |
Even if it seems to me that the code acts in writing only after firing of consequence you should still change it manually, I would advise you to do an injection on the reads codes so they can write the value for you.
|
|
Back to top |
|
 |
crashin How do I cheat?
Reputation: 0
Joined: 17 Jul 2016 Posts: 2
|
Posted: Wed Sep 30, 2020 5:53 pm Post subject: |
|
|
yes you understood my question correctly, thank you!
i see what you mean, this changes the value after you shoot, but if i don't already have the weapon i can't shoot it to get the desired #200 value.
how do i do an injection to write the value 200 into the address without first having to fire the weapon?
thanks!!
|
|
Back to top |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Wed Sep 30, 2020 9:13 pm Post subject: |
|
|
for that you need an instruction that is continuously accessed.
Tip: look for what access the address
|
|
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
|
|