|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Storiak How do I cheat? Reputation: 0
Joined: 27 Jun 2020 Posts: 2
|
Posted: Sat Jun 27, 2020 7:00 am Post subject: aobscan multi replace |
|
|
I have a problem with multi scanned adreses c is the problematic adress where the adress repeats 12 times and i want to have it replaced all with 00 00 80 40 00 00 80 not just the first one. Thanks for replies.
Code: |
[ENABLE]
registersymbol(a)
registersymbol(b)
registersymbol(c)
aobscan(a, 66 66 66 3F 00 00 60)
aobscan(b, 33 33 B3 3F CD CC 2C)
aobscan(c, 9A 99 19 3F 9A 99 F9)
a:
db 00 00 80 40 00 00 80
b:
db 00 00 80 40 00 00 80
c:
db 00 00 80 40 00 00 80
[DISABLE]
c:
db 9A 99 19 3F 9A 99 F9
b:
db 33 33 B3 3F CD CC 2C
a:
db 66 66 66 3F 00 00 60
unregisterSymbol(a)
unregistersymbol(b)
unregistersymbol(c)
|
The picture shows what hapens with c after the scrip is executed. |
|
Back to top |
|
|
Storiak How do I cheat? Reputation: 0
Joined: 27 Jun 2020 Posts: 2
|
Posted: Mon Jun 29, 2020 1:18 am Post subject: Well i figured it out :D |
|
|
Code: |
[ENABLE]
{$lua}
local results = AOBScan('9A 99 19 3F 9A 99 F9',"+W*X-C")
assert(results, 'aobscan failed')
lngt = results.getCount()
for x=0, lngt-1, 1 do
writeBytes(results[x], 0x00, 0X00, 0x80, 0x40, 0x00, 0x00, 0x80)
end
registerSymbol(kk)
[DISABLE]
unregisterSymbol(kk)
|
|
|
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
|
|