AutoIT Bot for Csro

01/09/2009 16:45 Lovitas#1
Hi i wrote my own lite script for cSro Ong-pleveln.
The problem is that script jump over a part.
Maybe you can help me.

Deutsch:
Hi ich hab meinen eigenen kleinen Bot für csro geschriben allerding über springt das Script immer wieder einen Teil und ich weiss nicht warum. Vll. könnt ihr mir ja helfen.


Code:
While 1
	HotKeySet( "{F8}" , "exit1" )
	HotKeySet("{F6}" , "stop1" )
	HotKeySet("{F4}" , "start1" )


WEnd
Func start1()
While 1
	Send("1")
  if	 PixelGetColor(429,46)  = 0xFF3232 then 
	 
		 Send ("2") 
		 Sleep (500)  
	ElseIf PixelGetColor(429,46) = Not 0xFF3232 then
           [COLOR="Red"]
			  MouseMove(300,250)
	  
	          MouseClick("left")[/COLOR]
	          Sleep (1000)
  EndIf
  WEnd
  EndFunc
  
  Func stop1()
	  Sleep (2147483647)
  EndFunc
  
   Func exit1()
	 While 1
		 Exit 0
	 WEnd
	 EndFunc
The red marked part is the problem.After killing a mob he stands still and just press 1 insteet of moving the mouse and click.