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 


What was wrong with my script ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
knightblizs
Advanced Cheater
Reputation: 0

Joined: 18 Jun 2013
Posts: 56

PostPosted: Thu Jul 25, 2013 5:24 pm    Post subject: What was wrong with my script ? Reply with quote

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [eax+10],100

originalcode:
mov ecx,[eax+10]
mov [ebp-20],ecx

exit:
jmp returnhere

XXXXXX:
jmp newmem
nop
returnhere:


 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
XXXXXX:
mov ecx,[eax+10]
mov [ebp-20],ecx
//Alt: db XX XX XX XX XX


i want change value to 64 ( 4 byte)
but when enable value changed to 256
whats wrong?
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Jul 25, 2013 5:25 pm    Post subject: Reply with quote

use #100 for decimal.
right now you're using hex (100 in hex == 256)

_________________
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
knightblizs
Advanced Cheater
Reputation: 0

Joined: 18 Jun 2013
Posts: 56

PostPosted: Thu Jul 25, 2013 5:40 pm    Post subject: Reply with quote

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [eax+10], #103
originalcode:
mov ecx,[eax+10]
mov [ebp-20],ecx

exit:
jmp returnhere

xxxxxx:
jmp newmem
nop
returnhere:


 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat


value changed to 0 ? why?



bMXeAie.png
 Description:
 Filesize:  78.27 KB
 Viewed:  3164 Time(s)

bMXeAie.png


Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Jul 25, 2013 5:41 pm    Post subject: Reply with quote

Using this:
Resets value back to 0?
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [eax+10],#100

originalcode:
mov ecx,[eax+10]
mov [ebp-20],ecx

exit:
jmp returnhere

XXXXXX:
jmp newmem
nop
returnhere:


 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
XXXXXX:
mov ecx,[eax+10]
mov [ebp-20],ecx
//Alt: db XX XX XX XX XX
[/code]
_________________
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
knightblizs
Advanced Cheater
Reputation: 0

Joined: 18 Jun 2013
Posts: 56

PostPosted: Fri Jul 26, 2013 3:20 am    Post subject: Reply with quote

ok its work

but when making changes in the game and a few moments later value changed to 0
why?
Back to top
View user's profile Send private message
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