| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Endog4 How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 21 Apr 2020
 Posts: 7
 
 
 | 
			
				|  Posted: Tue Aug 13, 2024 10:47 pm    Post subject: Force unity code generation |   |  
				| 
 |  
				| Hi there, i was browsing the forum and come across a thread with someone replying there's a method to force unity code generation. So the aob scan could scan it without waiting for the value to change. 
 Could someone explain to me how to do it? Its quite tedious to get hit and then start ur code
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Wed Aug 14, 2024 2:26 am    Post subject: |   |  
				| 
 |  
				| add 
 
 to your script and then you can just use the classname.methodname: notation to refer to the mono code.  It will compile it for you
 _________________
 
 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
 
 Last edited by Dark Byte on Wed Aug 14, 2024 2:17 pm; edited 1 time in total
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Csimbi I post too much
 
  Reputation: 97 
 Joined: 14 Jul 2007
 Posts: 3327
 
 
 | 
			
				|  Posted: Wed Aug 14, 2024 1:38 pm    Post subject: |     |  
				| 
 |  
				| Try 
  	  | Code: |  	  | mono_compile_method(mono_getJitInfo(getAddress('Class:Method')).method) | 
 This should generate the code.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Endog4 How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 21 Apr 2020
 Posts: 7
 
 
 | 
			
				|  Posted: Wed Aug 14, 2024 9:00 pm    Post subject: |   |  
				| 
 |  
				| Sorry, could you explain it more where i should insert it? 
 
  	  | Code: |  	  | [ENABLE]
 aobscan(EXP,F3 0F 11 28 33 C0 44) // should be unique
 alloc(newmem,$1000,EXP)
 
 label(code)
 label(return)
 
 newmem:
 cmp [rax],0
 jle code
 comiss xmm5,[rax]
 jle code
 subss xmm5,[rax]
 mulss xmm5,[kaliZ]
 addss xmm5,[rax]
 code:
 movss [rax],xmm5
 xor eax,eax
 jmp return
 kaliZ:
 dd (float)4.0
 EXP:
 jmp newmem
 nop
 return:
 registersymbol(EXP)
 
 [DISABLE]
 
 EXP:
 db F3 0F 11 28 33 C0
 
 unregistersymbol(EXP)
 dealloc(newmem)
 
 | 
 
 this is my code, i try to cheat Sun Haven btw. this code is use to multiply it exp gain. it works but i need to gain exp first then active it.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Thu Aug 15, 2024 12:40 am    Post subject: |   |  
				| 
 |  
				| activate mono features and then go to the address.  Look at the name there and use that instead of EXP 
 at the start (after [enable]) have usemono()  so it makes sure mono features are enabled
 _________________
 
 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 |  | 
	
		|  | 
	
		| Endog4 How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 21 Apr 2020
 Posts: 7
 
 
 | 
			
				|  Posted: Thu Aug 15, 2024 8:31 pm    Post subject: |   |  
				| 
 |  
				| Thanks a lot dark byte i figure it out, basically i just rewrite the code with mono enabled and it auto scan itself |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |