| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		NatanM How do I cheat?
  Reputation: 0
  Joined: 03 Mar 2020 Posts: 7
 
  | 
		
			
				 Posted: Fri Sep 04, 2020 7:47 pm    Post subject: Change a mono game property | 
				       | 
			 
			
				
  | 
			 
			
				So i have the boolean property "Visible", it has a set and a get function.
 
 
How can i make the set function value always true ?
 
 
 	  | Code: | 	 		  
 
PlayerControl.set_Visible - 55                    - push ebp
 
PlayerControl.set_Visible+1- 8B EC                 - mov ebp,esp
 
GameAssembly.dll+1FC1C3   - 80 3D B359B868 00     - cmp byte ptr [GameAssembly.dll+D959B3],00
 
GameAssembly.dll+1FC1CA   - 75 15                 - jne GameAssembly.dll+1FC1E1
 
GameAssembly.dll+1FC1CC   - FF 35 481D8B68        - push [GameAssembly.dll+AC1D48]
 
GameAssembly.dll+1FC1D2   - E8 D93BF5FF           - call GameAssembly.dll+14FDB0
 
GameAssembly.dll+1FC1D7   - 83 C4 04              - add esp,04
 
GameAssembly.dll+1FC1DA   - C6 05 B359B868 01     - mov byte ptr [GameAssembly.dll+D959B3],01
 
GameAssembly.dll+1FC1E1   - 53                    - push ebx
 
GameAssembly.dll+1FC1E2   - 56                    - push esi
 
GameAssembly.dll+1FC1E3   - 8B 75 08              - mov esi,[ebp+08]
 
GameAssembly.dll+1FC1E6   - 57                    - push edi
 
GameAssembly.dll+1FC1E7   - 8B 46 6C              - mov eax,[esi+6C]
 
GameAssembly.dll+1FC1EA   - 85 C0                 - test eax,eax
 
GameAssembly.dll+1FC1EC   - 0F84 6C010000         - je GameAssembly.dll+1FC35E
 
GameAssembly.dll+1FC1F2   - 8B 7D 0C              - mov edi,[ebp+0C]
 
GameAssembly.dll+1FC1F5   - 6A 00                 - push 00
 
GameAssembly.dll+1FC1F7   - 57                    - push edi
 
GameAssembly.dll+1FC1F8   - 50                    - push eax
 
GameAssembly.dll+1FC1F9   - E8 C2773800           - call UnityEngine.Renderer.set_enabled
 
 | 	  
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Sat Sep 05, 2020 12:17 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				At the function entrance do a code injection that writes a 1 to [esp+8]
 
 
of if you hook after the mov ebp,esp write a 1 to [ebp+c]
 _________________
 Do not ask me about online cheats. I don't know any and wont help finding them.
 
 
Like my help? Join me on Patreon so i can keep helping  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		NatanM How do I cheat?
  Reputation: 0
  Joined: 03 Mar 2020 Posts: 7
 
  | 
		
			
				 Posted: Sat Sep 05, 2020 11:38 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				| Thanks it worked
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |