|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Matoho How do I cheat? Reputation: 0
Joined: 25 Feb 2024 Posts: 1
|
Posted: Mon Feb 26, 2024 2:54 am Post subject: Remove amount of arrows per shot |
|
|
Hello. I am not sure if this is right place to post this but seems most legit for what I have.
I have cheated in game where I added 999999 arrows to my backpack. When I relogged however all those 999 999 split into little 60stacks so I have like 16000 stacks of those and cant even open inventory now.
There is total number displayed which I can find as value. Question that I have is, can I somehow find all the values that stack up to this number?
Or other way around would be if I could directly find all items based on their name - they all have the same name - so are there values for names of items?
Also I found this script. What it does is it adds around 1000 arrows when I shoot from bow instead of consuming arrow. Can I maybe reverse it to actually consume arrows instead of adding it? Would be great if it consumed 10000 arrows per shot.
->
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"gamedll_ph_x64_rwdi.dll"+6620F6)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
add esi, [rbx]
mov [rbx],esi
//mov rbx,3e7
mov rbx,[rsp+30]
exit:
jmp returnhere
"gamedll_ph_x64_rwdi.dll"+6620F6:
jmp newmem
nop 2
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"gamedll_ph_x64_rwdi.dll"+6620F6:
db 89 33 48 8B 5C 24 30
//mov [rbx],esi
//mov rbx,[rsp+30]
Thank you all dearly.
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Mon Feb 26, 2024 7:18 am Post subject: |
|
|
It looks as if the addition is here:
Code: |
originalcode:
add esi, [rbx]
mov [rbx],esi
//mov rbx,3e7
mov rbx,[rsp+30]
|
Change it to:
Code: |
originalcode:
sub esi, [rbx]
mov [rbx],esi
//mov rbx,3e7
mov rbx,[rsp+30]
|
Although I cannot test it so can't say exactly what's going on. It's not clear what the original instructions are, nor what has been changed exactly. Although this particular instruction:
Copies the value 999 to rbx (if it was uncommented)
|
|
Back to top |
|
|
Matoho How do I cheat? Reputation: 0
Joined: 25 Feb 2024 Posts: 1
|
Posted: Mon Feb 26, 2024 7:54 am Post subject: |
|
|
Thank you so much. I was actually close, I was trying to replace add with remove. But had no idea sub is the word. Thank you it solved my problem. Maybe one more thing. Is there some way to actually change quantity here? When I am at 34000 and I shoot game crashes probably because it is trying to subtract more than 34000 so I would like to make it less
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Mon Feb 26, 2024 12:09 pm Post subject: |
|
|
Yes of course, you will have to determine whether rbx holds the ammo or the value to be subtracted and then alter this value by using a mov instruction:
Code: |
originalcode:
mov rbx,1
sub esi,[rbx]
mov [rbx],esi
mov rbx,[rsp+30]
|
|
|
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
|
|