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 


little help custom asm using same value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
saik
Newbie cheater
Reputation: 0

Joined: 06 Apr 2016
Posts: 17

PostPosted: Sat Jun 18, 2016 9:32 pm    Post subject: little help custom asm using same value Reply with quote

little help custom asm using same value

example

Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:
dd 00258889:
originalcode:
mov edx,[ecx+5C]
mov [ebp-0C],dd

exit:
jmp returnhere

"Client.exe"+5993DC:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(newmem)
"Client.exe"+5993DC:
mov edx,[ecx+5C]
mov [ebp-0C],edx


dd 00258889: i want to use it as the main value of full script but when use it like this way mov [ebp-0C],dd it active and get the correct value but no change in the game but when use it like mov [ebp-0C],0003F349 it work in game whet's the wrong ?
0003F349 = 00258889 in hex
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Sat Jun 18, 2016 9:57 pm    Post subject: Reply with quote

Dd isnt the identifier [newmem] is, get rid of the : after dd and use the correct identifer. Should work.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Jun 18, 2016 10:02 pm    Post subject: Reply with quote

Code:
mov [ecx+5C],00258889
mov edx,[ecx+5C]
mov [ebp-0C],edx
Back to top
View user's profile Send private message
saik
Newbie cheater
Reputation: 0

Joined: 06 Apr 2016
Posts: 17

PostPosted: Sun Jun 19, 2016 8:44 am    Post subject: Reply with quote

cooleko wrote:
Dd isnt the identifier [newmem] is, get rid of the : after dd and use the correct identifer. Should work.

not working

Zanzer wrote:
Code:
mov [ecx+5C],00258889
mov edx,[ecx+5C]
mov [ebp-0C],edx


by this way will work but i need to put 00258889 in others script
i need it to be like db= 00258889 and for other script ,db because value to be easy to change
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Jun 19, 2016 10:06 am    Post subject: Reply with quote

Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

globalalloc(myvar,4)
myvar:
  dd 00258889

newmem:
originalcode:
mov edx,[myvar]
mov [ecx+5C],edx
mov [ebp-0C],edx

exit:
jmp returnhere

"Client.exe"+5993DC:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(newmem)
"Client.exe"+5993DC:
mov edx,[ecx+5C]
mov [ebp-0C],edx
Back to top
View user's profile Send private message
saik
Newbie cheater
Reputation: 0

Joined: 06 Apr 2016
Posts: 17

PostPosted: Sun Jun 19, 2016 2:14 pm    Post subject: Reply with quote

Zanzer wrote:
Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

globalalloc(myvar,4)
myvar:
  dd 00258889

newmem:
originalcode:
mov edx,[myvar]
mov [ecx+5C],edx
mov [ebp-0C],edx

exit:
jmp returnhere

"Client.exe"+5993DC:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(newmem)
"Client.exe"+5993DC:
mov edx,[ecx+5C]
mov [ebp-0C],edx


working thanks but there a problem when inactive it need to restart the game to stop it,it can be fix ?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Jun 19, 2016 9:44 pm    Post subject: Reply with quote

I assume that's because the game doesn't go back and write a valid value to the address.
Maybe you'll get luck and you can simply comment out:
Code:
//mov [ecx+5C],edx
Back to top
View user's profile Send private message
saik
Newbie cheater
Reputation: 0

Joined: 06 Apr 2016
Posts: 17

PostPosted: Sun Jun 19, 2016 10:17 pm    Post subject: Reply with quote

Zanzer wrote:
I assume that's because the game doesn't go back and write a valid value to the address.
Maybe you'll get luck and you can simply comment out:
Code:
//mov [ecx+5C],edx


well thanks will try Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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