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 


Does using define for static AOB work?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
kiennguyen1101
Newbie cheater
Reputation: 0

Joined: 10 Oct 2016
Posts: 10

PostPosted: Mon Oct 17, 2016 6:29 am    Post subject: Does using define for static AOB work? Reply with quote

Hi,

I'm trying to cheat unlimited movement for Heroes 3 Horn of The Abyss. It works so far but I'm trying to improve my code. So here's the situation: I know at exactly address h3hota.exe+A0D08 - C7 46 4D 00000000 - mov [esi+4D],00000000 the movement (embark) happens and it doesn't change so I don't bother with AOBSCAN function. I still want to save the AOB as a variable so that I can quickly use it later. I tried the DEFINE function but it cause a bug whence set the script to DISABLE, it sets the opcode above to
h3hota.exe+A0D08 - C7 46 D0 00049090 - mov [esi-30],90900400
Is there something wrong with my code? Or am I using the variable declaration wrong?

Code:

define(embark,C7 46 4D 00000000)
alloc(customcode,2048,h3hota.exe)
[ENABLE]
label(PlayerEmbark)
label(embarkExit)
label(NPCEmbark)

registersymbol(customcode)

customcode:
PlayerEmbark:
//detect PlayerID
  cmp byte ptr [esi+22], 6
  jne NPCEmbark
  db 90 90 90 90 90 90 90
  jmp embarkExit

NPCEmbark:
  db embark
  jmp embarkExit

"h3hota.exe"+A0D08:
  jmp PlayerEmbark
  nop
  nop
  embarkExit:

[DISABLE]
"h3hota.exe"+A0D08:
//mov [esi+4D],00000000
  db embark
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Oct 17, 2016 9:06 am    Post subject: Re: Does using define for static AOB work? Reply with quote

Try
Code:
define(embark,C7 46 4D 00 00 00 00)

_________________
Back to top
View user's profile Send private message MSN Messenger
kiennguyen1101
Newbie cheater
Reputation: 0

Joined: 10 Oct 2016
Posts: 10

PostPosted: Tue Oct 18, 2016 4:29 am    Post subject: Reply with quote

Thank you, the problem was indeed the way I define the aob.
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