  | 
				
				Cheat Engine The Official Site of Cheat Engine   
				
 
				 | 
			 
		 
		 
	
		| View previous topic :: View next topic   | 
	 
	
	
		| Author | 
		Message | 
	 
	
		dny4pvp Newbie cheater
  Reputation: 0
  Joined: 01 Aug 2022 Posts: 10
 
  | 
		
			
				 Posted: Sun Dec 11, 2022 2:11 pm    Post subject: Range Value Limit 0-4 | 
				       | 
			 
			
				
  | 
			 
			
				Good evening everyone, I would really appreciate your advice.
 
First of all, I will start briefly so that you can understand.
 
The character's hits reach the value 4 and then it is reset from 0 and the counting starts again.
 
The character's hits are in the following order
 
1...2...3...4 then resets and starts over 1...2...3...4
 
I am interested in shortening the initial value (4) and reaching only the value (2)
 
E.g :
 
1...2 (then reset)
 
1...2
 
and so on.
 
Can you help me with some advice please? Thank you all.
 
 
 	  | Code: | 	 		   { Game   : Avery-u50.exe
 
  Version: 
 
  Date   : 2022-12-11
 
  Author : Administrator
 
 
  This script does blah blah blah
 
}
 
 
[ENABLE]
 
 
aobscanmodule(INJECT,Avery-u50.exe,89 87 F4 07 00 00) // should be unique
 
alloc(newmem,$1000)
 
 
label(code)
 
label(return)
 
 
newmem:
 
 
code:
 
  mov [edi+000007F4],eax
 
  jmp return
 
 
INJECT:
 
  jmp newmem
 
  nop
 
return:
 
registersymbol(INJECT)
 
 
[DISABLE]
 
 
INJECT:
 
  db 89 87 F4 07 00 00
 
 
unregistersymbol(INJECT)
 
dealloc(newmem)
 
 
{
 
// ORIGINAL CODE - INJECTION POINT: Avery-u50.exe+1778C2
 
 
Avery-u50.exe+1778AF: CC                 - int 3 
 
Avery-u50.exe+1778B0: 55                 - push ebp
 
Avery-u50.exe+1778B1: 8B EC              - mov ebp,esp
 
Avery-u50.exe+1778B3: 83 EC 08           - sub esp,08
 
Avery-u50.exe+1778B6: 53                 - push ebx
 
Avery-u50.exe+1778B7: 56                 - push esi
 
Avery-u50.exe+1778B8: 57                 - push edi
 
Avery-u50.exe+1778B9: 8B F9              - mov edi,ecx
 
Avery-u50.exe+1778BB: 8B 87 F4 07 00 00  - mov eax,[edi+000007F4]
 
Avery-u50.exe+1778C1: 40                 - inc eax
 
// ---------- INJECTING HERE ----------
 
Avery-u50.exe+1778C2: 89 87 F4 07 00 00  - mov [edi+000007F4],eax
 
// ---------- DONE INJECTING  ----------
 
Avery-u50.exe+1778C8: 0F B7 F0           - movzx esi,ax
 
Avery-u50.exe+1778CB: E8 30 C7 FF FF     - call Avery-u50.exe+174000
 
Avery-u50.exe+1778D0: 0F B7 D8           - movzx ebx,ax
 
Avery-u50.exe+1778D3: 8B C6              - mov eax,esi
 
Avery-u50.exe+1778D5: 89 45 FC           - mov [ebp-04],eax
 
Avery-u50.exe+1778D8: 66 85 F6           - test si,si
 
Avery-u50.exe+1778DB: 75 16              - jne Avery-u50.exe+1778F3
 
Avery-u50.exe+1778DD: 50                 - push eax
 
Avery-u50.exe+1778DE: 53                 - push ebx
 
Avery-u50.exe+1778DF: 68 00 62 A2 00     - push Avery-u50.exe+3A6200
 
}  | 	  [/code]
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		ParkourPenguin I post too much
  Reputation: 152
  Joined: 06 Jul 2014 Posts: 4706
 
  | 
		
			
				 Posted: Sun Dec 11, 2022 2:22 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Code: | 	 		  code:
 
  cmp eax,3
 
  mov esi,1
 
  cmovae eax,esi
 
  mov [edi+000007F4],eax
 
  jmp return | 	  
 _________________
 I don't know where I'm going, but I'll figure it out when I get there.  | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		dny4pvp Newbie cheater
  Reputation: 0
  Joined: 01 Aug 2022 Posts: 10
 
  | 
		
			
				 Posted: Tue Mar 07, 2023 7:29 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | ParkourPenguin wrote: | 	 		   	  | Code: | 	 		  code:
 
  cmp eax,3
 
  mov esi,1
 
  cmovae eax,esi
 
  mov [edi+000007F4],eax
 
  jmp return | 	 
  | 	  
 
 
And for this code??
 
// ORIGINAL CODE - INJECTION POINT: gameapp64+409C15
 
 
gameapp64+409C00: 55                 - push ebp
 
gameapp64+409C01: 8B EC              - mov ebp,esp
 
gameapp64+409C03: 83 E4 F8           - and esp,-08
 
gameapp64+409C06: 83 EC 0C           - sub esp,0C
 
gameapp64+409C09: 53                 - push ebx
 
gameapp64+409C0A: 56                 - push esi
 
gameapp64+409C0B: 8B F1              - mov esi,ecx
 
gameapp64+409C0D: 57                 - push edi
 
gameapp64+409C0E: 8B 86 F8 03 00 00  - mov eax,[esi+000003F8]
 
gameapp64+409C14: 40                 - inc eax
 
// ---------- INJECTING HERE ----------
 
gameapp64+409C15: 89 86 F8 03 00 00  - mov [esi+000003F8],eax
 
// ---------- DONE INJECTING  ----------
 
gameapp64+409C1B: 0F B7 D0           - movzx edx,ax
 
gameapp64+409C1E: E8 CD 50 FF FF     - call gameapp64+3FECF0
 
gameapp64+409C23: 0F B7 F8           - movzx edi,ax
 
gameapp64+409C26: 8B DA              - mov ebx,edx
 
gameapp64+409C28: 66 85 D2           - test dx,dx
 
gameapp64+409C2B: 75 16              - jne gameapp64+409C43
 
gameapp64+409C2D: 53                 - push ebx
 
gameapp64+409C2E: 57                 - push edi
 
gameapp64+409C2F: 68 C4 B7 1E 03     - push gameapp64+228B7C4
 
gameapp64+409C34: E8 37 62 F3 FF     - call gameapp64+33FE70
 
}
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
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
  | 
   
 
		 |