Alice0725 Expert Cheater
Reputation: 11
Joined: 24 Jul 2012 Posts: 145
|
Posted: Mon Jul 30, 2012 7:54 am Post subject: [Help]How to change a numble to ∞" in game sc |
|
|
I'm trying to write a table for Dead Space 2. First is Infinite Ammo.
I do it like this->
Enable cheat:
1. save the numble of weapon loaded
2. read the weapon capacity value , set it to the weapon loaded.
3. change the numble of weapon loaded on the screen to "∞".
Disable cheat:
1.Restore the numble of weapon loaded
2.restore the code
Then I write some code:
| Code: | [ENABLE]
alloc(cheater,512)
label(returnhere)
00DB0694:
jmp cheater
nop
returnhere:
cheater:
push eax
mov eax,[ecx+000003E4] //get weapon capacity
mov [ecx+0000039C],eax //set loaded ammo up to capacity
pop eax
mov edx,[ecx+0000039C]//original code
jmp returnhere //return to game
[DISABLE]
dealloc(cheater)
00DB0694:
mov edx,[ecx+0000039C] |
As Issac show, this code will always run.
Yeah, It worked.
Now, still have some problem:
1. how to save and restore the value of this anywhere [ecx+0000039C] in aascript?
2. where to change the numble to "∞" on the game screen, or how to find where to change it?
|
|