| View previous topic :: View next topic |
| Author |
Message |
yellowd How do I cheat?
Reputation: 0
Joined: 15 Aug 2011 Posts: 2
|
Posted: Mon Aug 15, 2011 9:23 am Post subject: Aob scan-replace: need help |
|
|
Heya. I need someone to help me:
I want to make a cheat table doing this:
Search for this wildcard: | Code: | | d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ?? |
Search for this wildcard: | Code: | | d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? |
Replace the first wildcard by the second aob without the ?? ?? things !
It's in a flash game in which values are moving each days so i must keep wildcards.
Adresses are moving too.
When i do it manually it works, but i want it to work into only one Cheat table script !
I tried this: | Code: | [ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
label(aob1)
registersymbol(aob1)
Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)
label(aob2)
registersymbol(aob2)
_aob1:
aob1:
db aob2
_aob2:
aob2:
db aob2
[DISABLE] |
The part with _aob2: aob2: db aob2 is here because otherwise there was an error.
Could someone help me ? ^_^
PS: Sorry for my english
|
|
| Back to top |
|
 |
GH*master Expert Cheater
Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Mon Aug 15, 2011 10:50 am Post subject: |
|
|
if I understood correctly, then try this code
| Code: |
[ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)
_aob1:
READMEM(_aob2, 37)
[DISABLE]
|
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Aug 15, 2011 11:39 am Post subject: |
|
|
| GH*master wrote: | | if I understood correctly |
if not. Maybe this:
| Code: | [ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
_aob1:
db d0 d0 66
_aob1+5:
db d0 66
_aob1+9:
db a0 d0 66
_aob1+e:
db a0 d0 66
_aob1+13:
db a0 4f
_aob1+17:
db 01 10
_aob1+1a:
db 00 00
[DISABLE] |
_________________
|
|
| Back to top |
|
 |
yellowd How do I cheat?
Reputation: 0
Joined: 15 Aug 2011 Posts: 2
|
Posted: Mon Aug 15, 2011 1:38 pm Post subject: |
|
|
Well, i tried your scripts.
GH Master, i get the error aob2 is not a correct value for ReadMem.. wtf :/
mgr.inz.Player: no compilation error but the hack is not working at the end :s and i don't understand what did you do so i couldn't really studdy it..
|
|
| Back to top |
|
 |
GH*master Expert Cheater
Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Mon Aug 15, 2011 11:44 pm Post subject: |
|
|
When will be released CE 6.2, then You try this code.
AA-script:
| Code: |
[ENABLE]
LuaCall(Cheat1Action()) // only CE 6.2
[DIASBLE]
|
Lua-script:
| Code: |
function Cheat1Action()
aob1 = AOBScan("d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??")
aob2 = AOBScan("d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??")
bytecount = 37
table1 = readBytes(aob1, bytecount, true) // only CE 6.2
writeBytes(aob2, table1, bytecount) // only CE 6.2
end
|
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Aug 16, 2011 3:35 am Post subject: |
|
|
| Code: | [ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)
alloc(newmem,64)
createthread(newmem)
newmem:
mov esi,_aob2
mov edi,_aob1
mov ecx,#37
rep movsb
ret
[DISABLE]
|
_________________
|
|
| Back to top |
|
 |
yellowd How do I cheat?
Reputation: 0
Joined: 15 Aug 2011 Posts: 2
|
Posted: Tue Aug 16, 2011 4:08 am Post subject: |
|
|
| mgr.inz.Player wrote: | | Code: | [ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)
alloc(newmem,64)
createthread(newmem)
newmem:
mov esi,_aob2
mov edi,_aob1
mov ecx,#37
rep movsb
ret
[DISABLE]
|
|
Yay, thanks a lot dude that's working !
But it gives an Access violation error. But not a problem.
|
|
| Back to top |
|
 |
|