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 Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Mar 31, 2016 6:16 am    Post subject: Need Help Reply with quote

Ok so I made a AOB script with the bytes [33 05 6C AD ?? ??] and the last 2 constantly change. so I was wondering is there a way to implement into the script something so it reads the bytes for example the last 2 were [C7 10] and it would read [33 05 6C AD C7 10] so after disabling the script it would declare [33 05 6C AD C7 10] and after restarting the game it would read something like [33 05 6C AD 90 D0] and then after disabling it would db [33 05 6C AD 90 D0]. here is the script:
Code:

aobscanmodule(INF_HP_KO,DH4.exe,33 05 6C AD ?? ??)
alloc(newmem,$1000)

label(code)
label(return)

newmem:
cmp esi,A
jl code
mov [ebp-20],,453FF000
jmp return

code:
movss xmm0,[ebp-20]
movss [ebp-1C],xmm0
jmp return

INF_HP_KO:
  jmp newmem
  nop
  nop
  nop
  nop
return:
registersymbol(INF_HP_KO)

[DISABLE]

INF_HP_KO:
  db 33 05 6C AD [C1 01] <---- always change

unregistersymbol(INF_HP_KO)
dealloc(newmem)
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 Mar 31, 2016 7:25 am    Post subject: Reply with quote

Code:
aobscanmodule(INF_HP_KO,DH4.exe,33 05 6C AD ?? ??)
alloc(newmem,$1000)

label(code)
label(return)
label(saveme)

newmem:
cmp esi,A
jl code
mov [ebp-20],,453FF000
jmp return

code:
movss xmm0,[ebp-20]
movss [ebp-1C],xmm0
jmp return

saveme:
  readmem(INF_HP_KO,9)

INF_HP_KO:
  jmp newmem
  nop
  nop
  nop
  nop
return:
registersymbol(INF_HP_KO)
registersymbol(saveme)

[DISABLE]
INF_HP_KO:
  readmem(saveme,9)
unregistersymbol(INF_HP_KO)
unregistersymbol(saveme)
dealloc(newmem)
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