|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Huesalot How do I cheat? Reputation: 0
Joined: 26 May 2016 Posts: 4 Location: United States
|
Posted: Thu May 26, 2016 11:17 am Post subject: What am I doing wrong? Infinite HP Script |
|
|
I'm super curious what I'm doing wrong. I've looked at plenty of examples, but admittedly don't know very much about LUA scripting.
Code: | [ENABLE]
aobscan(MyHP,89 08 8B 05 AC 7F F7 0D) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
mov [eax],ecx
mov eax,[0DF77FAC],Int(100)
jmp return
MyHP:
jmp code
nop
nop
nop
return:
registersymbol(MyHP)
[DISABLE]
MyHP:
db 89 08 8B 05 AC 7F F7 0D
unregistersymbol(MyHP)
dealloc(newmem) |
Could someone please help and if so thank you.
_________________
Rogue-likes and RPGs <3 |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu May 26, 2016 11:42 am Post subject: |
|
|
1) this is not Lua script. It is autoassemble script.
2) this is wrong
Code: | mov eax,[0DF77FAC],Int(100) |
Original lines are:
Code: | mov [eax],ecx
mov eax,[0DF77FAC] |
And the question. Do you want to overwrite value pointed by eax in the first line?
Code: | mov [eax],(int)100
mov eax,[0DF77FAC] |
, or maybe overwrite eax at the second line
Code: | mov [eax],ecx
mov eax,(int)100 |
or write that value into [0DF77FAC] ?
Code: | mov [eax],ecx
mov [0DF77FAC],(int)100 |
_________________
|
|
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
|
|