View previous topic :: View next topic |
Author |
Message |
Amami De Kaito Expert Cheater
Reputation: 5
Joined: 06 Feb 2013 Posts: 110 Location: 3/44
|
Posted: Mon May 06, 2013 4:36 am Post subject: [HELP] Script not work |
|
|
http://forum.cheatengine.org/viewtopic.php?p=5472571#5472571
My script
Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(Health)
label(iHealth)
registersymbol(iHealth)
newmem:
Health:
cmp [iHealth],1
jne originalcode
mov [ebx+464],#1000
originalcode:
sub [ebx+00000464],eax
exit:
jmp returnhere
"Tutorial-i386.exe"+2276B:
jmp Health
nop
returnhere:
iHealth:
dd 0
[DISABLE]
dealloc(newmem)
unregistersymbol(iHealth)
"Tutorial-i386.exe"+2276B:
sub [ebx+00000464],eax
//Alt: db 29 83 64 04 00 00 |
|
|
Back to top |
|
 |
SER[G]ANT Expert Cheater
Reputation: 10
Joined: 29 Dec 2005 Posts: 215 Location: Russia
|
Posted: Mon May 06, 2013 5:28 am Post subject: |
|
|
...
mov [ebx+464],#1000
jmp exit
... |
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Mon May 06, 2013 6:22 am Post subject: |
|
|
What the user above me said.
It checks if iHealth equals to 1 if it doesn't goes to original code, thats great and fine.
But if it does, it continues to mov[ebx+464],#1000 but you didn't made jump to exit, so it executing also the sub[ebx+464],eax part. _________________
I'm rusty and getting older, help me re-learn lua. |
|
Back to top |
|
 |
Amami De Kaito Expert Cheater
Reputation: 5
Joined: 06 Feb 2013 Posts: 110 Location: 3/44
|
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Mon May 06, 2013 7:41 am Post subject: |
|
|
Probably because of
Try this instead
Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(Health)
label(iHealth)
registersymbol(iHealth)
newmem:
Health:
cmp [iHealth],1
jne originalcode
mov [ebx+464],#1000
originalcode:
sub [ebx+00000464],eax
exit:
jmp returnhere
iHealth:
dd 0
"Tutorial-i386.exe"+2276B:
jmp Health
nop
returnhere:
[DISABLE]
dealloc(newmem)
unregistersymbol(iHealth)
"Tutorial-i386.exe"+2276B:
sub [ebx+00000464],eax
//Alt: db 29 83 64 04 00 00 |
_________________
I'm rusty and getting older, help me re-learn lua. |
|
Back to top |
|
 |
SER[G]ANT Expert Cheater
Reputation: 10
Joined: 29 Dec 2005 Posts: 215 Location: Russia
|
Posted: Mon May 06, 2013 7:55 am Post subject: |
|
|
Flash hacker
Yep. You are right |
|
Back to top |
|
 |
Amami De Kaito Expert Cheater
Reputation: 5
Joined: 06 Feb 2013 Posts: 110 Location: 3/44
|
Posted: Mon May 06, 2013 9:19 am Post subject: |
|
|
Thanks Why my script and your script as well but your script is work but
my script is doesn't work
However, this method is applicable to everything or not?
Is that it will try to use this script.
Sorry I'm use translate Engligh from goole. |
|
Back to top |
|
 |
|