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 


[HELP] Script not work

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Amami De Kaito
Expert Cheater
Reputation: 5

Joined: 06 Feb 2013
Posts: 110
Location: 3/44

PostPosted: Mon May 06, 2013 4:36 am    Post subject: [HELP] Script not work Reply with quote

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
View user's profile Send private message Send e-mail
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Mon May 06, 2013 5:28 am    Post subject: Reply with quote

...
mov [ebx+464],#1000
jmp exit
...
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon May 06, 2013 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Amami De Kaito
Expert Cheater
Reputation: 5

Joined: 06 Feb 2013
Posts: 110
Location: 3/44

PostPosted: Mon May 06, 2013 7:23 am    Post subject: Reply with quote

My Video Cheat Engine

http://youtu.be/vf8Dneawu_I
Back to top
View user's profile Send private message Send e-mail
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon May 06, 2013 7:41 am    Post subject: Reply with quote

Probably because of
Code:
iHealth:
dd 0

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
View user's profile Send private message Visit poster's website
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Mon May 06, 2013 7:55 am    Post subject: Reply with quote

Flash hacker
Yep. You are right
Back to top
View user's profile Send private message
Amami De Kaito
Expert Cheater
Reputation: 5

Joined: 06 Feb 2013
Posts: 110
Location: 3/44

PostPosted: Mon May 06, 2013 9:19 am    Post subject: Reply with quote

Thanks Smile 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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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