 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Mon Feb 15, 2016 6:09 am Post subject: How to make 2 AOB scan sripts into one? |
|
|
ok so I got this:
| Code: | [ENABLE]
aobscanmodule(SEASONS_OPERATOR,Asphalt8_w8.exe,3B 54 88 08 73 21)
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
cmp edx,0
jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF5D1
jmp return
SEASONS_OPERATOR:
jmp code
nop
return:
registersymbol(SEASONS_OPERATOR)
[DISABLE]
SEASONS_OPERATOR:
db 3B 54 88 08 73 21
unregistersymbol(SEASONS_OPERATOR)
dealloc(newmem)
|
and:
| Code: | [ENABLE]
aobscanmodule(SEASONS_OPERATOR_2,Asphalt8_w8.exe,3B 53 70 73 08 )
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
cmp edx,0
jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF272
jmp return
SEASONS_OPERATOR_2:
jmp code
return:
registersymbol(SEASONS_OPERATOR_2)
[DISABLE]
SEASONS_OPERATOR_2:
db 3B 53 70 73 08
unregistersymbol(SEASONS_OPERATOR_2)
dealloc(newmem)
|
What I want to do is make it into 1 script instead of having 2. How do I do that?
would this work??? :
| Code: | [ENABLE]
aobscanmodule(SEASONS_OPERATOR,Asphalt8_w8.exe,3B 54 88 08 73 21)
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
cmp edx,0
jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF5D1
jmp return
SEASONS_OPERATOR:
jmp code
nop
return:
registersymbol(SEASONS_OPERATOR)
aobscanmodule(SEASONS_OPERATOR_2,Asphalt8_w8.exe,3B 53 70 73 08 )
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
cmp edx,0
jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF272
jmp return
SEASONS_OPERATOR_2:
jmp code
return:
registersymbol(SEASONS_OPERATOR_2)
[DISABLE]
SEASONS_OPERATOR:
db 3B 54 88 08 73 21
unregistersymbol(SEASONS_OPERATOR)
SEASONS_OPERATOR_2:
db 3B 53 70 73 08
unregistersymbol(SEASONS_OPERATOR_2)
dealloc(newmem)
|
If this wont work then please tell me what I should do so I can make just 1 script please I have never combined 2 scripts before
|
|
| Back to top |
|
 |
Daijobu Master Cheater
Reputation: 13
Joined: 05 Feb 2013 Posts: 301 Location: the Netherlands
|
Posted: Mon Feb 15, 2016 6:25 am Post subject: |
|
|
Your script will break when there's an update to the application. Look at your conditional jumps. Those offsets are not set in stone.
Additionally, the way this is displayed below is for clear view. When you write a script I recommend you go with first in last out or LIFO (last in, first out). E.g.:
| Code: | [ENABLE]
alloc(something1,8)
alloc(something2,8)
alloc(something3,8)
[DISABLE]
dealloc(something3)
dealloc(something2)
dealloc(something1) |
| Code: | [ENABLE]
aobscanmodule(SEASONS_OPERATOR,Asphalt8_w8.exe,3B 54 88 08 73 21)
alloc(newmem1,$1000)
registersymbol(SEASONS_OPERATOR)
aobscanmodule(SEASONS_OPERATOR_2,Asphalt8_w8.exe,3B 53 70 73 08 )
alloc(newmem2,$1000)
registersymbol(SEASONS_OPERATOR_2)
label(code1)
label(return1)
label(code2)
label(return2)
newmem1:
code1:
cmp edx,0
jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF272
jmp return1
newmem2:
code2:
cmp edx,0
jae Asphalt8_w8.IGPLib::InitParams::operator=+2EF5D1
jmp return2
SEASONS_OPERATOR:
jmp code1
nop
return1:
SEASONS_OPERATOR_2:
jmp code2
return2:
[DISABLE]
SEASONS_OPERATOR:
db 3B 54 88 08 73 21
unregistersymbol(SEASONS_OPERATOR)
dealloc(newmem1)
SEASONS_OPERATOR_2:
db 3B 53 70 73 08
unregistersymbol(SEASONS_OPERATOR_2)
dealloc(newmem2) |
_________________
|
|
| Back to top |
|
 |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Mon Feb 15, 2016 6:29 am Post subject: |
|
|
Thanks a lot for the help
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Feb 15, 2016 1:46 pm Post subject: |
|
|
| For future reference, CE will automatically combine scripts for you. Once you have a script made, whether you've added it to your table already or not, just highlight the next injection point in memory viewer, then, return to your Auto Assemble window and click on template again to choose your next injection type. You can repeat this as much as you want.
|
|
| 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
|
|