  | 
				
				Cheat Engine The Official Site of Cheat Engine   
				
 
				 | 
			 
		 
		 
	
		| View previous topic :: View next topic   | 
	 
	
	
		| Author | 
		Message | 
	 
	
		sjl002 Master Cheater
  Reputation: 0
  Joined: 31 Aug 2013 Posts: 305
 
  | 
		
			
				 Posted: Sat Sep 19, 2015 5:42 am    Post subject: What does this scripts?(AA Code question) | 
				       | 
			 
			
				
  | 
			 
			
				In some Auto Assembly I see the scripts that making the questions in my mind, What does this scripts?
 
The first my question:
 
What does this script?
 
 	  | Code: | 	 		  //Author: +METHOS
 
 
[ENABLE]
 
aobscan(AOB8,0F BF 41 5C C3)
 
alloc(newmem,2048)
 
label(returnhere)
 
label(originalcode)
 
label(friendly)
 
label(enemy)
 
registersymbol(AOB8)
 
 
newmem:
 
cmp [ecx+08],00020004
 
jne originalcode
 
push edi
 
mov edi,[ecx+20]
 
mov edi,[edi+A4]
 
mov edi,[edi+08]
 
mov edi,[edi+00]
 
cmp edi,69766943
 
pop edi
 
je friendly
 
push edi
 
mov edi,[ecx+20]
 
mov edi,[edi+A4]
 
mov edi,[edi+08]
 
mov edi,[edi+00]
 
cmp edi,61737341
 
pop edi
 
je friendly
 
push edi
 
mov edi,[ecx+20]
 
mov edi,[edi+A4]
 
mov edi,[edi+08]
 
mov edi,[edi+10]
 
cmp edi,61737341
 
pop edi
 
je enemy
 
push edi
 
mov edi,[ecx+20]
 
mov edi,[edi+A4]
 
mov edi,[edi+08]
 
mov edi,[edi+20]
 
cmp edi,61737341
 
pop edi
 
je enemy
 
push edi
 
mov edi,[ecx+20]
 
mov edi,[edi+A4]
 
mov edi,[edi+08]
 
mov edi,[edi+30]
 
cmp edi,61737341
 
pop edi
 
je enemy
 
jmp originalcode
 
 
enemy:
 
cmp word ptr [ecx+5C],0001
 
je originalcode
 
mov word ptr [ecx+5C],0001
 
jmp originalcode
 
 
friendly:
 
ret
 
 
originalcode:
 
movsx eax,word ptr [ecx+5C]
 
ret
 
 
AOB8:
 
jmp newmem
 
returnhere:
 
 
[DISABLE]
 
dealloc(newmem)
 
AOB8:
 
db 0F BF 41 5C C3
 
 
unregistersymbol(AOB8)
 
 
//"AC4BFSP.exe"+BB4A50:
 
//movsx eax,word ptr [ecx+5C]
 
//ret | 	  
  Last edited by sjl002 on Sat Sep 19, 2015 7:14 am; edited 1 time in total | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Rydian Grandmaster Cheater Supreme
  Reputation: 31
  Joined: 17 Sep 2012 Posts: 1358
 
  | 
		
			
				 Posted: Sat Sep 19, 2015 5:54 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 
 
 
Go back to your thread.
 
 
Read and follow the instructions.
 
 
And actually post the info.
 
 
So we can freakin' help you solve your damn problem in the first place.
 
 
I swear to god you are driving me crazy.
 _________________
  | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Cake-san Grandmaster Cheater
  Reputation: 8
  Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
  | 
		 | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		sjl002 Master Cheater
  Reputation: 0
  Joined: 31 Aug 2013 Posts: 305
 
  | 
		
			
				 Posted: Sat Sep 19, 2015 7:57 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				cake-san.
 
this script for Human player(ID)
 
-------------------------------
 
 	  | Code: | 	 		  _MonHumanPlayer:
 
 cmp byte ptr [ebx+000000da],1
 
 jne _ExitMHP
 
 
 mov [pPlayer],ebx
 
 
 movzx ecx,byte ptr [ebx]
 
 mov [iID],ecx
 
 
 cmp dword ptr [iEnableMMR],0
 
 je _ExitMHP                       // Jump if feature is disabled
 
 
 mov ecx,ctMRES
 
 cmp eax,6
 
 js _MonHP00
 
 
 mov ecx,ctMGLD
 
 
_MonHP00:
 
 cmp ecx,[ebx+eax*4+00000094]
 
 js _ExitMHP
 
 
 mov [ebx+eax*4+00000094],ecx
 
 
_ExitMHP:
 
 push [ebx+eax*4+00000094]         // Original code (get Res Amount)
 
 jmp _BackMHP                      // Back to main code | 	  
 
 
what does this script?
 
mov [pPlayer],ebx
 
 movzx ecx,byte ptr [ebx]
 
 mov [iID],ecx
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Cake-san Grandmaster Cheater
  Reputation: 8
  Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
  | 
		 | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		sjl002 Master Cheater
  Reputation: 0
  Joined: 31 Aug 2013 Posts: 305
 
  | 
		
			
				 Posted: Sun Sep 20, 2015 2:50 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				hack game castle crashers very very hard.
 
Steve Andrew how find this script : cmp [ebp-14],531 //Potions
 
how find potions ID.
 
how finding this script ?
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		STN I post too much
  Reputation: 43
  Joined: 09 Nov 2005 Posts: 2676
 
  | 
		
			
				 Posted: Sun Sep 20, 2015 3:02 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				It is not that hard, the identifiers are rather easy to find but due to constant updates they change which makes it a pain.
 
 
Anyway, if you would listen to Rydian and myself and anyone else who told you to read the tutorials, you wouldn't be asking this question. 
 
 
Steve Andrews probably found the identifier by using data structure tool or debugging. How do you use that ? read the tutorials in Rydian's signature! especially the second one.
 _________________
  | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		sjl002 Master Cheater
  Reputation: 0
  Joined: 31 Aug 2013 Posts: 305
 
  | 
		
			
				 Posted: Sun Sep 20, 2015 6:46 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				So,I should reading Carefully Rydian tutorials,Right say.
 
cmp [ebp-14],531.value 531 is pointer.
 
I'm find this value but not find script in Find out what accesses (and writes to) this Address.
 
I use Data structure.
 
Ok i read Rydian tutorials.
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Rydian Grandmaster Cheater Supreme
  Reputation: 31
  Joined: 17 Sep 2012 Posts: 1358
 
  | 
		
			
				 Posted: Sun Sep 20, 2015 8:04 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				The instructions I keep referring you back to are basic ones that will give info that's important for making scripts in the first place.
 
 
http://forum.cheatengine.org/viewtopic.php?t=584051&start=15
 
 
Read what I said, do it and give screenshots, answer the questions, etc.
 _________________
  | 
			 
		  | 
	 
	
		| 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
  | 
   
 
		 |