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 


Issues while creating a script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
johnsnow
How do I cheat?
Reputation: 0

Joined: 24 Aug 2017
Posts: 1

PostPosted: Thu Aug 24, 2017 8:17 am    Post subject: Issues while creating a script Reply with quote

Hi there,
i'm trying to hack a game, and the code i need to modify is this:

Code:
originalcode:
mov [rbx+r9*4],r11d
ret



this is the code used for subtract the money when i buy new stuff.
I've tryied to use

Code:

mov r11d,[rbx+r9*4]


But the game crashes

Why?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Thu Aug 24, 2017 8:35 am    Post subject: Reply with quote

try this: (part of my script for some game)
Code:
  movsx r11d,dword ptr [rbx+r9*4] // you can use "word ptr"
  mov [rbx+r9*4],r11d
  ret

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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