Loveness Newbie cheater
  Reputation: 0
  Joined: 30 Aug 2016 Posts: 14
 
  | 
		
			
				 Posted: Mon Aug 26, 2019 10:53 am    Post subject: Please, need help in AOB Scripting | 
				       | 
			 
			
				
  | 
			 
			
				Hi!
 
 
I found the address in the game: Monster Boy, is responsible for the walk speed of the character, so when i make an AOB Injection i have the original code:
 
 
movss [rbx+38],xmm0
 
jmp return
 
 
I'm new in assembler and in these codes, but reading the forum, i replace the original code, by:
 
 
 	  | Code: | 	 		  ...
 
label(myv)
 
 
newmem:
 
 
code:
 
  movss xmm0,[myv]
 
  movss [rbx+38],xmm0
 
  jmp return
 
 
myv:
 
  dq (float)1.2
 
 
... | 	  
 
 
The default value of the float point is 0.7, but i set to 1.2 that is fine for me. All works fine, but i have a problem:
 
This code works if i walk forward, but when i go back (the float value gets negative) it's doesn't, because i need to set in code the negative value instead of positive to work, i. e. dq (float)-1.2
 
 
Please, how to make the code to know if is a positive number, then the code to set 1.2, if is negative than to set -1.2?
 | 
			 
		  |