View previous topic :: View next topic |
Author |
Message |
Pamkppp4 Newbie cheater Reputation: 0
Joined: 17 Sep 2014 Posts: 14 Location: coding
|
Posted: Thu Jul 30, 2015 6:36 pm Post subject: First trainer? |
|
|
I''m having problems to do my first trainer.
All i want is just change the code like this;
Original Code:
24 64 D0 66 ?? ?? ?? ?? ?? A0
Hacked Code:
2d 18 D0 66 ?? ?? ?? ?? ?? A2
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
aobscan(infair, 24 64 D0 66 ?? ?? ?? ?? ?? A0)
label(_infair)
registersymbol(_infair)
infair:
_infair:
db 2d 18 A2
[DISABLE]
_infair:
db 24 64 A0
unregistersymbol(_infair)
Can anyone here help me?
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Jul 30, 2015 7:01 pm Post subject: |
|
|
Code: | [ENABLE]
aobscan(infair, 24 64 D0 66 ?? ?? ?? ?? ?? A0)
infair:
db 2D 18
infair+9:
db A2
registersymbol(infair)
[DISABLE]
infair:
db 24 64
infair+9:
db A0
unregistersymbol(infair) |
|
|
Back to top |
|
|
Pamkppp4 Newbie cheater Reputation: 0
Joined: 17 Sep 2014 Posts: 14 Location: coding
|
Posted: Thu Jul 30, 2015 10:38 pm Post subject: Thank you! |
|
|
Thank you! but why +9?
this isn't on Rydian guide.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Jul 30, 2015 10:55 pm Post subject: |
|
|
Because the "A0" byte that you wish to change is 9 bytes to the right of "infair", which starts at byte "24".
So instead of specifying all 10 bytes (which you can't, due to wildcards), you simply jump to the 10th byte.
|
|
Back to top |
|
|
Rydian Grandmaster Cheater Supreme Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Fri Jul 31, 2015 2:38 am Post subject: |
|
|
The last bit talks about specifying an offset for where to write.
_________________
|
|
Back to top |
|
|
|