| View previous topic :: View next topic |
| Author |
Message |
kiennguyen1101 Newbie cheater
Reputation: 0
Joined: 10 Oct 2016 Posts: 10
|
Posted: Mon Oct 17, 2016 6:29 am Post subject: Does using define for static AOB work? |
|
|
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 |
|
 |
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 Oct 17, 2016 9:06 am Post subject: Re: Does using define for static AOB work? |
|
|
Try
| Code: | | define(embark,C7 46 4D 00 00 00 00) |
_________________
|
|
| Back to top |
|
 |
kiennguyen1101 Newbie cheater
Reputation: 0
Joined: 10 Oct 2016 Posts: 10
|
Posted: Tue Oct 18, 2016 4:29 am Post subject: |
|
|
| Thank you, the problem was indeed the way I define the aob.
|
|
| Back to top |
|
 |
|