Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


need to aob inject 2 codes in one script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
mbabo
Advanced Cheater
Reputation: 0

Joined: 30 Jul 2016
Posts: 74

PostPosted: Thu Sep 15, 2016 5:20 am    Post subject: need to aob inject 2 codes in one script Reply with quote

greeting , am trying to do enemy's cant move code . the game is using 3 codes
1 code for z 1 code is for x movement and one for y movement .

any way to freeze enemy's i have to write 2 scrips 1 that nop x movement
1 that NOP y movement ( which is totally wrong i know )
NOTE THAT THE CODE ALSO FREEZE MY PLAYER BUT I DID COMPARE
[ESI + 00000001A4] will be 1 for me and 0 for all enemys in game this code

i wrote for enemy x movement nop

Code:


[ENABLE]

aobscanmodule(ENEMYMOV,DP.exe,F3 0F 11 8E E4 00 00 00 F3 0F 11 96)
alloc(newmem,$1000)

label(code)
label(return)
label(hack)
label(freeze)


newmem:

hack:
cmp [esi+000001A4],1
jne freeze
jmp code


freeze:
nop
jmp return



code:
  movss [esi+000000E4],xmm1
  jmp return

ENEMYMOV:
  jmp hack
  nop
  nop
  nop
return:
registersymbol(ENEMYMOV)

[DISABLE]

ENEMYMOV:
  db F3 0F 11 8E E4 00 00 00

unregistersymbol(ENEMYMOV)
dealloc(newmem)




and this aob for y axsis



Code:

[ENABLE]

aobscanmodule(aobyaxis,DP.exe,F3 0F 11 96 E8 00 00 00 F3 0F 11 86)
alloc(newmem,$1000)

label(code)
label(return)
label(hack)
label(freeze)

newmem:

hack:
cmp [esi+000001A4],1
jne freeze
jmp code


freeze:
nop
jmp return


code:
  movss [esi+000000E8],xmm2
  jmp return

aobyaxis:
  jmp hack
  nop
  nop
  nop
return:
registersymbol(aobyaxis)

[DISABLE]

aobyaxis:
  db F3 0F 11 96 E8 00 00 00

unregistersymbol(aobyaxis)
dealloc(newmem)




is there a way to nop both
movss [esi+000000E4],xmm1
movss [esi+000000E8],xmm2

in one aob injection

thank you very much



ENEMYS.jpg
 Description:
 Filesize:  104.16 KB
 Viewed:  6068 Time(s)

ENEMYS.jpg


Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Sep 15, 2016 6:00 am    Post subject: Reply with quote

Code:
[ENABLE]
aobscanmodule(ENEMYMOV,DP.exe,F3 0F 11 8E E4 00 00 00 F3 0F 11 96)
alloc(newmem,$1000)

label(code)
label(return)
label(hack)
label(freeze)

newmem:

hack:
cmp [esi+000001A4],1
jne freeze
jmp code

freeze:
nop
jmp return

code:
  movss [esi+000000E4],xmm1
  jmp return

ENEMYMOV:
  jmp hack
  nop
  nop
  nop
  db 90 90 90 90 90 90 90 90
return:
registersymbol(ENEMYMOV)

[DISABLE]
ENEMYMOV:
  db F3 0F 11 8E E4 00 00 00
  db F3 0F 11 96 E8 00 00 00
unregistersymbol(ENEMYMOV)
dealloc(newmem)
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Thu Sep 15, 2016 6:12 am    Post subject: Reply with quote

Since both hack points are consecutive with same player filter logic, may try to combine them as one hack point, change 1st script as follow and don't use 2nd script.

Code:

[ENABLE]

aobscanmodule(ENEMYMOV,DP.exe,F3 0F 11 8E E4 00 00 00 F3 0F 11 96)
alloc(newmem,$1000)

label(code)
label(return)
label(hack)
label(freeze)


newmem:

hack:
cmp [esi+000001A4],1
jne freeze
jmp code


freeze:
nop
  jmp ENEMYMOV+10  // return after 16 (0x10) byte of hack point. original template -> jmp return




code:
  movss [esi+000000E4],xmm1
  movss [esi+000000E8],xmm2  // added
  jmp ENEMYMOV+10  // return after 16 (0x10) byte of hack point. original template -> jmp return

ENEMYMOV:
  jmp hack
  nop
  nop
  nop
return:
registersymbol(ENEMYMOV)

[DISABLE]

ENEMYMOV:
  db F3 0F 11 8E E4 00 00 00

unregistersymbol(ENEMYMOV)
dealloc(newmem)


If confident on understanding the assembler code, may further simplify the code.

bye~

_________________
- Retarded.


Last edited by panraven on Thu Sep 15, 2016 6:19 am; edited 1 time in total
Back to top
View user's profile Send private message
mbabo
Advanced Cheater
Reputation: 0

Joined: 30 Jul 2016
Posts: 74

PostPosted: Thu Sep 15, 2016 6:17 am    Post subject: Reply with quote

i tried both codes they also freeze my player Sad Laughing
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Thu Sep 15, 2016 6:21 am    Post subject: Reply with quote

mbabo wrote:
i tried both codes they also freeze my player Sad Laughing


Sorry, I mistakenly copy over the 'jmp code' just following the player comparing, it should not be changed.

bye~

_________________
- Retarded.
Back to top
View user's profile Send private message
mbabo
Advanced Cheater
Reputation: 0

Joined: 30 Jul 2016
Posts: 74

PostPosted: Thu Sep 15, 2016 7:03 am    Post subject: Reply with quote

panraven wrote:
mbabo wrote:
i tried both codes they also freeze my player Sad Laughing


Sorry, I mistakenly copy over the 'jmp code' just following the player comparing, it should not be changed.

bye~


thank you very much its working although i dont really understand why +10
you were right the problem was with comparing it changed after i got another map that why my player froze i found another value to compare
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites