| 
			
				|  | Cheat Engine The Official Site of Cheat Engine
 
 
 |  
 
	
		| View previous topic :: View next topic |  
		| Author | Message |  
		| Mr.realdoge Advanced Cheater
 
  Reputation: 1 
 Joined: 01 Aug 2016
 Posts: 56
 Location: Lordran
 
 | 
			
				|  Posted: Sun Oct 22, 2017 8:22 am    Post subject: Script Crashing ;-; |   |  
				| 
 |  
				| Fellas this script crashing plz help. 
  	  | Code: |  	  | [ENABLE] globalalloc(reg,4)
 alloc(code,1024)
 label(originalcode)
 label(returnhere)
 label(exit)
 label(x)
 label(y)
 label(z)
 registersymbol(x)
 registersymbol(y)
 registersymbol(z)
 label(senable)
 label(lenable)
 label(savecoords)
 label(loadcoords)
 label(checker)
 registersymbol(senable)
 registersymbol(lenable)
 
 
 code:
 
 senable:
 dd 0
 lenable:
 dd 0
 x:
 dq 0
 y:
 dq 0
 z:
 dq 0
 
 checker:
 cmp byte ptr [senable],1
 je savecoords
 cmp byte ptr [lenable],1
 je loadcoords
 jmp originalcode
 
 savecoords:
 mov [senable],0
 cmp [coord],0
 je originalcode
 push eax
 mov eax,[coord]
 mov [x],eax
 mov eax,[coord+4]
 mov [z],eax
 mov eax,[coord+8]
 mov [y],eax
 pop eax
 jmp originalcode
 
 loadcoords:
 mov [lenable],0
 cmp [x],0
 je originalcode
 push eax
 mov eax,[x]
 mov [coord],eax
 mov eax,[y]
 mov [coord+8],eax
 mov eax,[z]
 mov [coord+4],eax
 pop eax
 jmp originalcode
 
 originalcode:
 mov [reg],ebx
 movq xmm0,[esp]
 
 
 exit:
 jmp returnhere
 
 "DARKSOULS.exe"+ABDBCA:
 jmp code
 returnhere:
 
 [DISABLE]
 unregistersymbol(x)
 unregistersymbol(y)
 unregistersymbol(z)
 unregistersymbol(s)
 unregistersymbol(l)
 dealloc(code)
 "DARKSOULS.exe"+ABDBCA:
 movq xmm0,[esp]
 | 
 _________________
 
 ( ͡° ͜ʖ ͡°) its always christmas |  |  
		| Back to top |  |  
		|  |  
		| ParkourPenguin I post too much
 
  Reputation: 152 
 Joined: 06 Jul 2014
 Posts: 4706
 
 
 | 
			
				|  Posted: Sun Oct 22, 2017 9:11 am    Post subject: |   |  
				| 
 |  
				|  	  | Code: |  	  | "DARKSOULS.exe"+ABDBCA: jmp code
 ...
 code:
 senable:
 dd 0
 ...
 | 
 You're jumping to where values are stored, not code. I'm guessing you want to jump to the label "checker" instead.
 _________________
 
 I don't know where I'm going, but I'll figure it out when I get there. |  |  
		| Back to top |  |  
		|  |  
		| Mr.realdoge Advanced Cheater
 
  Reputation: 1 
 Joined: 01 Aug 2016
 Posts: 56
 Location: Lordran
 
 | 
			
				|  Posted: Mon Oct 23, 2017 3:56 am    Post subject: |   |  
				| 
 |  
				| It worked,thnx m8! _________________
 
 ( ͡° ͜ʖ ͡°) its always christmas |  |  
		| 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
 
 |  |