Page 7 of 7 FirstFirst ... 567
Results 91 to 101 of 101
  1. #91
    dumblet's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    103
    Reputation
    10
    Thanks
    25
    My Mood
    Cheerful
    i don't really know alot about scripting but i tried putting this ontop of the func, ,, elp? cuz it doesn't work

    Code:
    Code:
    While 1
    	$login = 0
    	Sleep(300)
    	$login = PixelGetColor (959, 598)
    		While $login = 0x283B40
    			Sleep(300)
    			ControlClick("Vindictus", "", "", "left", 3, 959, 598)
    		WEnd
    WEnd

  2. #92
    cyb's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    42
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by dumblet View Post
    i don't really know alot about scripting but i tried putting this ontop of the func, ,, elp? cuz it doesn't work

    Code:
    Code:
    While 1
    	$login = 0
    	Sleep(300)
    	$login = PixelGetColor (959, 598)
    		While $login = 0x283B40
    			Sleep(300)
    			ControlClick("Vindictus", "", "", "left", 3, 959, 598)
    		WEnd
    WEnd
    Put this as a new function under EndFunc of Func Start() Not sure if this works.. im not that good at AutoIt but maybe something like this..


    Code:
    Func login()
            While 1
    	        $login = 0
                    While $login <> 0x283B40
    	                $login = PixelGetColor (959, 598)
                            If $login = 0x283B40 Then
                            ControlClick("Vindictus", "", "", "left", 3, 959, 598)
                            EndIf
                    WEnd
            WEnd
    EndFunc
    Last edited by cyb; 06-08-2011 at 10:29 PM.

  3. #93
    buzzzboy's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    Quote Originally Posted by dumblet View Post
    i don't really know alot about scripting but i tried putting this ontop of the func, ,, elp? cuz it doesn't work

    Code:
    While 1
    	$login = 0
    	Sleep(300)
    	$login = PixelGetColor (959, 598)
    		While $login = 0x283B40
    			Sleep(300)
    			ControlClick("Vindictus", "", "", "left", 3, 959, 598)
    		WEnd
    WEnd
    you gotta loop the login = pixelgetcolor so it keeps searching for it until maybe the start button appears.

    Code:
    do
    $login = pixelgetcolor (x, y)
    $start = pixelgetcolor (x, y)
    if $login = 0x283B40 then
          click ok
    until $start = 0x******
    on another notce, I've gotten the failed to log in msg box and I clicked ok. I just can't see my f list but can still launch boats and replay, etc.

    Quote Originally Posted by cyb View Post
    Put this as a new function under EndFunc of Func Start() Not sure if this works.. im not that good at AutoIt but maybe something like this..

    Code:
    Func login()
            While 1
    	        $login = 0
                    While $login <> 0x283B40
    	                $login = PixelGetColor (959, 598)
                            If $login = 0x283B40 Then
                            ControlClick("Vindictus", "", "", "left", 3, 959, 598)
                            EndIf
                    WEnd
            WEnd
    EndFunc
    the way you did it, it will keep looping until it finds the failed to log in msg box, even though it may not appear.
    Last edited by buzzzboy; 06-08-2011 at 11:27 PM.

  4. #94
    sd999444's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    386
    Reputation
    15
    Thanks
    98
    so i tried modding the script to work for windowed mode (changed controlclick to mouseclick, using other scripts i had for part) and i'm having error when hitting F5 to run it... heres the error

    Code:
    >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\...\Desktop\scripts\smart bot BL.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams    
    +>23:54:28 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86)
    >Running AU3Check (1.54.19.0)  from:C:\Program Files\AutoIt3
    C:\Users\...\Desktop\scripts\smart bot BL.au3(43,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(43,34) : ERROR: syntax error
    				MouseClick ("left" [,72, 579 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(45,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(45,35) : ERROR: syntax error
    				MouseClick ("left" [,615, 464 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(53,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(53,35) : ERROR: syntax error
    				MouseClick ("left" [,561, 505 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(57,23) : ERROR: syntax error
    				MouseClick("left" [
    				~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(57,34) : ERROR: syntax error
    				MouseClick("left" [,327, 650 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(59,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(59,36) : ERROR: syntax error
    				MouseClick ("left" [, 816, 514 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(61,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(61,36) : ERROR: syntax error
    				MouseClick ("left" [, 761, 404 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(63,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(63,36) : ERROR: syntax error
    				MouseClick ("left" [, 405, 318 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(65,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(65,36) : ERROR: syntax error
    				MouseClick ("left" [, 252, 311 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(67,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(67,36) : ERROR: syntax error
    				MouseClick ("left" [, 326, 352 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(69,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(69,35) : ERROR: syntax error
    				MouseClick ("left" [,220, 504 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(82,23) : ERROR: syntax error
    			MouseClick ("left" [
    			~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(82,35) : ERROR: syntax error
    			MouseClick ("left" [, 369, 556 [
    			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(84,23) : ERROR: syntax error
    			MouseClick ("left" [
    			~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(84,35) : ERROR: syntax error
    			MouseClick ("left" [, 340, 225 [
    			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(86,23) : ERROR: syntax error
    			MouseClick ("left" [
    			~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(86,35) : ERROR: syntax error
    			MouseClick ("left" [, 374, 554 [
    			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(89,22) : ERROR: syntax error
    		MouseClick ("left" 115
    		~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3 - 27 error(s), 0 warning(s)
    !>23:54:38 AU3Check ended.rc:2
    >Exit code: 0    Time: 52.066
    and here's the script that has the error...

    Code:
                                                                            ;======================================================================|
                                                                            ;                 resolution 1280x800 windowed                         |
    																   	    ;----------------------------------------------------------------------|
                                                                            ;|===Credits to @omagad00 for first posting ControlSend/Click method.  |
                                                                            ;|===Credits to @riceking for first posting pixel idea(different type).|
    																        ;======================================================================|
    
    AutoItSetOption("MouseCoordMode", 0)                                    ;for use with controlclick
    HotKeySet("{F9}", "Start")                                            ;The hotkey to activate the bot
    HotKeySet("{F10}", "End")                                               ;This hotkey will stop and exit the bot
    
    																		;im in the habit of declaring all variables (im a vb programmer its standard for us!)
    global $sButton                                                         ;start button - 111,937(0x665545)
    global $rButton                                                         ;replay button - 198, 707(0x504438)
    global $chat                                                            ;chatbox white part 1470, 834(0xF4F0EC)
    global $fButton                                                         ;forfeit and return to town button- 18, 107(0x010204)
    global $lScreen                                                         ;blue on the loading screen so we know when to hit changelevel button - 81,964(0x0D465B )
    global $bLord                                                           ;part of player name, to know when bloodlord cutscene ended! - 998, 293(0x8D2B32)
    global $maxButton                                                       ;max+ button for spending AP on skills
    global $avatar                                                          ;if avatar matches, we got docked! - 1905,1051(LIT ie in town-0x875C38, DARK ie on boat-0x383738)
    
    While 1                                                                 ;this loop is ALWAYS running until you press the exit hotkey.
    	sleep(1)                                                            ;this is just waiting for some input (hotkeys to start or stop)
    WEnd
    
    Func Start()
    	ControlSend("Vindictus", "", "", "{Left}")		                	;mob ai / mob idle
    	While 1                                                             ;The main bot loop once the start hotkey is pressed.
    		$sButton = 0                                                    ;-----------------------resetting variables each loop----------------------------------
    		$fButton =  0x010204                                            ;fButton is the only one we need to reset to it's color. Because it will be using an
    		$rButton = 0                                                    ;equal to color match rather then not equal like the other checks
    		$lScreen = 0									      	   	    ;The other variables need reset to null so they can be updated within the while checks.
    	    $bLord = 0
    		$chat = 0
    		$avatar = 0
    
    		while $avatar <> 0x383738                                       ;while the avatar button is not there yet, automatically false on first run every loop to make sure it gets checked when it shows up..
    			$avatar = PixelGetColor (1265, 766)                        ;check the avatar buttons color.
    			if $avatar = 0x80582F Then                                  ;if its this color you got docked! if not you are still on boat so this loop will exit.
    				MouseClick ("left" 72, 579, 1)					   		;click leave party.
    				sleep(1000)                                             ;wait one second to avoid error.
    				MouseClick ("left" 615, 464, 1)  						;click ok.
    				sleep(1000)                                             ;wait one second to avoid error.
    				ControlSend("Vindictus", "", "", "{w down}")		    ;move to mission board.
    				sleep(600)
    				ControlSend("Vindictus", "", "", "{w up}")			    ;move to mission board.
    				ControlSend("Vindictus", "", "", "{d down}")		    ;move to mission board.
    				sleep(2000)
    				ControlSend("Vindictus", "", "", "{d up}")		        ;move to mission board.
    				MouseClick ("left", 561, 505, 1)  						;click ainle.
    			    while  PixelGetColor (50, 77) <> 0x708B23               ;waiting to match green part at top of battle screen, when lagging this part can take awhile.
    					sleep(100)                                          ;decided to do this while loop without a variable to show other methods!
    				Wend	                                                ;once it finds that green it will continue.
    				MouseClick("left", 327, 650, 2) 					    ;click launch.
    				sleep(1000)                                             ;needs a second wait here to avoid error.
    				MouseClick ("left", 816, 514, 40) 						;click down arrow on battle screen 40 times just to be sure its enough .
    				sleep(1000)                                             ;would work this way even if started at scrolled to the top.
    				MouseClick ("left" 761, 404, 2)  							;click shadowed mission.
    				sleep(1000)                                             ;waiting a second to avoid any error.
    				MouseClick ("left", 405, 318, 10) 						;down arrow on oath 10 times to be sure its scrolled enough.
    				sleep(1000)												;waiting a second to avoid any error.
    				MouseClick ("left", 252, 311, 3)  						;click macha.
    				sleep(1000)                                             ;waiting a second to avoid any error.
    				MouseClick ("left", 326, 352, 3)  							;click hero.
    				sleep(1000)                                             ;waiting a second to avoid any error.
    				MouseClick ("left", 220, 504, 2)  						;finally click launch.
    				ExitLoop                                                ;this is a good example when to use exitloop.
                endif				                                        ;end of the avatar check statement.
    		WEnd
    
    		While $sButton <> 0x927960                                      ;while there is no start button run this loop.
    			$sButton = PixelGetColor (113, 660)	                        ;Keep checking for start button.
    		WEnd                                                            ;if it found start it continues to the next code, if not it keeps looping till it does.
    		                                                                ;at this point the start button has been found.
    		ControlSend("Vindictus", "", "", "v")	                        ;skills :)  we don't wanna be stuck at (1000/1000) wasting AP do we?
    		sleep(1000)                                                     ;a small wait to make sure skill screen came up.
    		$maxButton = PixelGetColor (374, 554)	                        ;check for max+ button.
    		if $maxButton = 0x330500 Then                                   ;if the max+ button is there then.
    			MouseClick ("left", 369, 556, 3)      						;click max+ button.
    		Else                                                            ;else the max+ button is not there.
    			MouseClick ("left", 340, 225, 3)	    					;click Train Button for a skill. (firebolt for me atm this is where it's located)
    			sleep(1000)                                                 ;wait for max+ button
    			MouseClick ("left", 374, 554)  							    ;Click max+ button.
    		endif
    
    		MouseClick ("left" 115, 659) 							        ;Click the Start Button.
    		ControlSend("Vindictus", "", "", "{L}")	                ;timescale3.
    
    		While $lScreen <> 0xA0FFFF                                      ;this loop is waiting for the loading screen (blue bar).
    			$lScreen = PixelGetColor (1125, 688)	                    ;keep checking for loading screen
    		Wend                                                            ;once it finds the loading screen color it exits this loop and continues on.
    		Sleep (1000)
    		ControlSend("Vindictus", "", "", "{G}")	                		;Changelevel(you can do the changelevel during startup load screen)
    
    		While $chat <> 0x495F38                                         ;while no chat visible run this loop
    			$chat = PixelGetColor (1166, 613)			    	        ;keep checking for chatbox to know map is loaded.
    		Wend                                                            ;chatbox is first thing visible when the map first loads!
    		ControlSend("Vindictus", "", "", "{F6}")                        ;Transform.
    		ControlSend("Vindictus", "", "", "{/}")                         ;Switch to StickyBomb.
    		ControlSend("Vindictus", "", "", "{L}")                   		;timescale3.
    		ControlSend("Vindictus", "", "", "{w down}")                    ;Move to cutscene.
    		Sleep(2000)
    		ControlSend("Vindictus", "", "", "{w up}")
    		Sleep(1000)                                                     ;wait a second for cutscene to start
    
    		While $bLord <> 0xFFFFFF                                        ;this loop checks for part of the player name to see if the cutscene has ended.
    			$bLord = PixelGetColor (629, 314)			    	        ;keep checking if lord spawned.
    		Wend                                                            ;it loops until it matches the player name color then moves on.
    		ControlSend("Vindictus", "", "", "k")
    		ControlSend("Vindictus", "", "", "k")
    		ControlSend("Vindictus", "", "", "k")
    		Sleep(1000)
    		ControlSend("Vindictus", "", "", "f")	                        ;Pull StickyBomb out.
    		Sleep(300)
    		ControlSend("Vindictus", "", "", "e")	                        ;Throw StickyBomb.
    		Sleep(5000)	                                                    ;wait for sticky to explode before moving on to the killing part.
    		ControlSend("Vindictus", "", "", "{]}")	                        ;Switch to HandBomb.
    
    		While $fButton = 0x64B42A                                       ;when forfeit button vanishes it means it's doing the screenshots after boss kill. So that's when this loop exits.
    			ControlSend("Vindictus", "", "", "f")                       ;Pull Handbomb out.
    			Sleep(300)
    			ControlSend("Vindictus", "", "", "e")                       ;Throw Handbomb.
    			Sleep(2000)			                                        ;wait for bomb explosion
    			$fButton = PixelGetColor (1059, 704)						;check if in screenshots part yet.
    		Wend 	                                                        ;this keeps looping until it knows it's doing screenshots then continues on.
    
    		while $rButton <> 0x645342                                      ;This is the loop to check for the replay button.
    			$rButton = PixelGetColor (186, 709)			                ;keep checking for replay button.
    		Wend                                                            ;Will loop until the replay buttton shows up, then continues on.
    		MouseClick ("left", 186, 709, 2)          						;Press Replay
    		Sleep (14000)
    	WEnd                                                                ;end of the main loop.Will keep looping till exit button(end) is pressed.
    EndFunc                                                                 ;end of the main function.
    
    Func End()                                                              ;This is the function to deactivate script and exit application.
    	Exit                                                                ;end key pressed, exit application.
    EndFunc

    if anyone can help, it'd be very appreciated. thanks in advance ^^

  5. #95
    DanK's Avatar
    Join Date
    Aug 2006
    Gender
    male
    Location
    Arizona
    Posts
    2,892
    Reputation
    100
    Thanks
    3,632
    My Mood
    Devilish
    Quote Originally Posted by sd999444 View Post
    so i tried modding the script to work for windowed mode (changed controlclick to mouseclick, using other scripts i had for part) and i'm having error when hitting F5 to run it... heres the error

    Code:
    >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\...\Desktop\scripts\smart bot BL.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams    
    +>23:54:28 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86)
    >Running AU3Check (1.54.19.0)  from:C:\Program Files\AutoIt3
    C:\Users\...\Desktop\scripts\smart bot BL.au3(43,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(43,34) : ERROR: syntax error
    				MouseClick ("left" [,72, 579 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(45,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(45,35) : ERROR: syntax error
    				MouseClick ("left" [,615, 464 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(53,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(53,35) : ERROR: syntax error
    				MouseClick ("left" [,561, 505 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(57,23) : ERROR: syntax error
    				MouseClick("left" [
    				~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(57,34) : ERROR: syntax error
    				MouseClick("left" [,327, 650 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(59,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(59,36) : ERROR: syntax error
    				MouseClick ("left" [, 816, 514 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(61,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(61,36) : ERROR: syntax error
    				MouseClick ("left" [, 761, 404 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(63,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(63,36) : ERROR: syntax error
    				MouseClick ("left" [, 405, 318 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(65,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(65,36) : ERROR: syntax error
    				MouseClick ("left" [, 252, 311 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(67,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(67,36) : ERROR: syntax error
    				MouseClick ("left" [, 326, 352 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(69,24) : ERROR: syntax error
    				MouseClick ("left" [
    				~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(69,35) : ERROR: syntax error
    				MouseClick ("left" [,220, 504 [
    				~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(82,23) : ERROR: syntax error
    			MouseClick ("left" [
    			~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(82,35) : ERROR: syntax error
    			MouseClick ("left" [, 369, 556 [
    			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(84,23) : ERROR: syntax error
    			MouseClick ("left" [
    			~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(84,35) : ERROR: syntax error
    			MouseClick ("left" [, 340, 225 [
    			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(86,23) : ERROR: syntax error
    			MouseClick ("left" [
    			~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(86,35) : ERROR: syntax error
    			MouseClick ("left" [, 374, 554 [
    			~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3(89,22) : ERROR: syntax error
    		MouseClick ("left" 115
    		~~~~~~~~~~~~~~~~~~~^
    C:\Users\...\Desktop\scripts\smart bot BL.au3 - 27 error(s), 0 warning(s)
    !>23:54:38 AU3Check ended.rc:2
    >Exit code: 0    Time: 52.066
    and here's the script that has the error...

    Code:
                                                                            ;======================================================================|
                                                                            ;                 resolution 1280x800 windowed                         |
    																   	    ;----------------------------------------------------------------------|
                                                                            ;|===Credits to @omagad00 for first posting ControlSend/Click method.  |
                                                                            ;|===Credits to @riceking for first posting pixel idea(different type).|
    																        ;======================================================================|
    
    AutoItSetOption("MouseCoordMode", 0)                                    ;for use with controlclick
    HotKeySet("{F9}", "Start")                                            ;The hotkey to activate the bot
    HotKeySet("{F10}", "End")                                               ;This hotkey will stop and exit the bot
    
    																		;im in the habit of declaring all variables (im a vb programmer its standard for us!)
    global $sButton                                                         ;start button - 111,937(0x665545)
    global $rButton                                                         ;replay button - 198, 707(0x504438)
    global $chat                                                            ;chatbox white part 1470, 834(0xF4F0EC)
    global $fButton                                                         ;forfeit and return to town button- 18, 107(0x010204)
    global $lScreen                                                         ;blue on the loading screen so we know when to hit changelevel button - 81,964(0x0D465B )
    global $bLord                                                           ;part of player name, to know when bloodlord cutscene ended! - 998, 293(0x8D2B32)
    global $maxButton                                                       ;max+ button for spending AP on skills
    global $avatar                                                          ;if avatar matches, we got docked! - 1905,1051(LIT ie in town-0x875C38, DARK ie on boat-0x383738)
    
    While 1                                                                 ;this loop is ALWAYS running until you press the exit hotkey.
    	sleep(1)                                                            ;this is just waiting for some input (hotkeys to start or stop)
    WEnd
    
    Func Start()
    	ControlSend("Vindictus", "", "", "{Left}")		                	;mob ai / mob idle
    	While 1                                                             ;The main bot loop once the start hotkey is pressed.
    		$sButton = 0                                                    ;-----------------------resetting variables each loop----------------------------------
    		$fButton =  0x010204                                            ;fButton is the only one we need to reset to it's color. Because it will be using an
    		$rButton = 0                                                    ;equal to color match rather then not equal like the other checks
    		$lScreen = 0									      	   	    ;The other variables need reset to null so they can be updated within the while checks.
    	    $bLord = 0
    		$chat = 0
    		$avatar = 0
    
    		while $avatar <> 0x383738                                       ;while the avatar button is not there yet, automatically false on first run every loop to make sure it gets checked when it shows up..
    			$avatar = PixelGetColor (1265, 766)                        ;check the avatar buttons color.
    			if $avatar = 0x80582F Then                                  ;if its this color you got docked! if not you are still on boat so this loop will exit.
    				MouseClick ("left" 72, 579, 1)					   		;click leave party.
    				sleep(1000)                                             ;wait one second to avoid error.
    				MouseClick ("left" 615, 464, 1)  						;click ok.
    				sleep(1000)                                             ;wait one second to avoid error.
    				ControlSend("Vindictus", "", "", "{w down}")		    ;move to mission board.
    				sleep(600)
    				ControlSend("Vindictus", "", "", "{w up}")			    ;move to mission board.
    				ControlSend("Vindictus", "", "", "{d down}")		    ;move to mission board.
    				sleep(2000)
    				ControlSend("Vindictus", "", "", "{d up}")		        ;move to mission board.
    				MouseClick ("left", 561, 505, 1)  						;click ainle.
    			    while  PixelGetColor (50, 77) <> 0x708B23               ;waiting to match green part at top of battle screen, when lagging this part can take awhile.
    					sleep(100)                                          ;decided to do this while loop without a variable to show other methods!
    				Wend	                                                ;once it finds that green it will continue.
    				MouseClick("left", 327, 650, 2) 					    ;click launch.
    				sleep(1000)                                             ;needs a second wait here to avoid error.
    				MouseClick ("left", 816, 514, 40) 						;click down arrow on battle screen 40 times just to be sure its enough .
    				sleep(1000)                                             ;would work this way even if started at scrolled to the top.
    				MouseClick ("left" 761, 404, 2)  							;click shadowed mission.
    				sleep(1000)                                             ;waiting a second to avoid any error.
    				MouseClick ("left", 405, 318, 10) 						;down arrow on oath 10 times to be sure its scrolled enough.
    				sleep(1000)												;waiting a second to avoid any error.
    				MouseClick ("left", 252, 311, 3)  						;click macha.
    				sleep(1000)                                             ;waiting a second to avoid any error.
    				MouseClick ("left", 326, 352, 3)  							;click hero.
    				sleep(1000)                                             ;waiting a second to avoid any error.
    				MouseClick ("left", 220, 504, 2)  						;finally click launch.
    				ExitLoop                                                ;this is a good example when to use exitloop.
                endif				                                        ;end of the avatar check statement.
    		WEnd
    
    		While $sButton <> 0x927960                                      ;while there is no start button run this loop.
    			$sButton = PixelGetColor (113, 660)	                        ;Keep checking for start button.
    		WEnd                                                            ;if it found start it continues to the next code, if not it keeps looping till it does.
    		                                                                ;at this point the start button has been found.
    		ControlSend("Vindictus", "", "", "v")	                        ;skills :)  we don't wanna be stuck at (1000/1000) wasting AP do we?
    		sleep(1000)                                                     ;a small wait to make sure skill screen came up.
    		$maxButton = PixelGetColor (374, 554)	                        ;check for max+ button.
    		if $maxButton = 0x330500 Then                                   ;if the max+ button is there then.
    			MouseClick ("left", 369, 556, 3)      						;click max+ button.
    		Else                                                            ;else the max+ button is not there.
    			MouseClick ("left", 340, 225, 3)	    					;click Train Button for a skill. (firebolt for me atm this is where it's located)
    			sleep(1000)                                                 ;wait for max+ button
    			MouseClick ("left", 374, 554)  							    ;Click max+ button.
    		endif
    
    		MouseClick ("left" 115, 659) 							        ;Click the Start Button.
    		ControlSend("Vindictus", "", "", "{L}")	                ;timescale3.
    
    		While $lScreen <> 0xA0FFFF                                      ;this loop is waiting for the loading screen (blue bar).
    			$lScreen = PixelGetColor (1125, 688)	                    ;keep checking for loading screen
    		Wend                                                            ;once it finds the loading screen color it exits this loop and continues on.
    		Sleep (1000)
    		ControlSend("Vindictus", "", "", "{G}")	                		;Changelevel(you can do the changelevel during startup load screen)
    
    		While $chat <> 0x495F38                                         ;while no chat visible run this loop
    			$chat = PixelGetColor (1166, 613)			    	        ;keep checking for chatbox to know map is loaded.
    		Wend                                                            ;chatbox is first thing visible when the map first loads!
    		ControlSend("Vindictus", "", "", "{F6}")                        ;Transform.
    		ControlSend("Vindictus", "", "", "{/}")                         ;Switch to StickyBomb.
    		ControlSend("Vindictus", "", "", "{L}")                   		;timescale3.
    		ControlSend("Vindictus", "", "", "{w down}")                    ;Move to cutscene.
    		Sleep(2000)
    		ControlSend("Vindictus", "", "", "{w up}")
    		Sleep(1000)                                                     ;wait a second for cutscene to start
    
    		While $bLord <> 0xFFFFFF                                        ;this loop checks for part of the player name to see if the cutscene has ended.
    			$bLord = PixelGetColor (629, 314)			    	        ;keep checking if lord spawned.
    		Wend                                                            ;it loops until it matches the player name color then moves on.
    		ControlSend("Vindictus", "", "", "k")
    		ControlSend("Vindictus", "", "", "k")
    		ControlSend("Vindictus", "", "", "k")
    		Sleep(1000)
    		ControlSend("Vindictus", "", "", "f")	                        ;Pull StickyBomb out.
    		Sleep(300)
    		ControlSend("Vindictus", "", "", "e")	                        ;Throw StickyBomb.
    		Sleep(5000)	                                                    ;wait for sticky to explode before moving on to the killing part.
    		ControlSend("Vindictus", "", "", "{]}")	                        ;Switch to HandBomb.
    
    		While $fButton = 0x64B42A                                       ;when forfeit button vanishes it means it's doing the screenshots after boss kill. So that's when this loop exits.
    			ControlSend("Vindictus", "", "", "f")                       ;Pull Handbomb out.
    			Sleep(300)
    			ControlSend("Vindictus", "", "", "e")                       ;Throw Handbomb.
    			Sleep(2000)			                                        ;wait for bomb explosion
    			$fButton = PixelGetColor (1059, 704)						;check if in screenshots part yet.
    		Wend 	                                                        ;this keeps looping until it knows it's doing screenshots then continues on.
    
    		while $rButton <> 0x645342                                      ;This is the loop to check for the replay button.
    			$rButton = PixelGetColor (186, 709)			                ;keep checking for replay button.
    		Wend                                                            ;Will loop until the replay buttton shows up, then continues on.
    		MouseClick ("left", 186, 709, 2)          						;Press Replay
    		Sleep (14000)
    	WEnd                                                                ;end of the main loop.Will keep looping till exit button(end) is pressed.
    EndFunc                                                                 ;end of the main function.
    
    Func End()                                                              ;This is the function to deactivate script and exit application.
    	Exit                                                                ;end key pressed, exit application.
    EndFunc

    if anyone can help, it'd be very appreciated. thanks in advance ^^
    Right off the bat I can see your missing a comma here:
    MouseClick ("left" 72, 579, 1)

    And in several other of your mouse clicks.. And some of the other mouseclicks are missing the last perimeter.
    PLAYING RIFT!

  6. The Following User Says Thank You to DanK For This Useful Post:

    sd999444 (06-11-2011)

  7. #96
    sd999444's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    386
    Reputation
    15
    Thanks
    98
    Quote Originally Posted by nunya View Post
    Right off the bat I can see your missing a comma here:
    MouseClick ("left" 72, 579, 1)

    And in several other of your mouse clicks.. And some of the other mouseclicks are missing the last perimeter.
    ahhh thanks very much... bad idea for me editing that half asleep, anyway thanks gonna test now

    edit: why isn't it clicking still? added the missing perimeters and fixed the missing commas, not sure what's wrong with it. i took about an hour and a half changing all the pixel colors and coords to work with my computer...
    Last edited by sd999444; 06-11-2011 at 10:15 AM.

  8. #97
    DanK's Avatar
    Join Date
    Aug 2006
    Gender
    male
    Location
    Arizona
    Posts
    2,892
    Reputation
    100
    Thanks
    3,632
    My Mood
    Devilish
    Quote Originally Posted by sd999444 View Post
    ahhh thanks very much... bad idea for me editing that half asleep, anyway thanks gonna test now

    edit: why isn't it clicking still? added the missing perimeters and fixed the missing commas, not sure what's wrong with it. i took about an hour and a half changing all the pixel colors and coords to work with my computer...
    Depends what it's not clicking... Start button is hard to find a good spot because it changes colors on most of the button all the time... I have an app I developed that makes getting coords and colors easy, it will be included in the premium upgrade for our bot which should be released very soon.
    PLAYING RIFT!

  9. #98
    hahajkilied's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Hey for some reason my auto it wont move mouse on vindictus but it works on other windows now all my scrips do the same any idea wut could be the problem?

  10. #99
    sd999444's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    386
    Reputation
    15
    Thanks
    98
    Quote Originally Posted by nunya View Post
    Depends what it's not clicking... Start button is hard to find a good spot because it changes colors on most of the button all the time... I have an app I developed that makes getting coords and colors easy, it will be included in the premium upgrade for our bot which should be released very soon.
    pretty much everything... i used the color of the T for the pixelcode. is this a bad idea?

  11. #100
    levicourtois's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Attached to another object by an inclined plane wrapped helically around an axis.
    Posts
    393
    Reputation
    12
    Thanks
    55
    My Mood
    Relaxed
    can w8 to try it out
    Thank and rep me if i helped.
    =done =not done
    50 posts-
    100 posts-
    150 posts-
    200 posts-
    300 posts-
    500 posts-
    1000 posts-
    16346848563489 posts-

  12. #101
    sd999444's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    386
    Reputation
    15
    Thanks
    98
    ah wow didn't know you had a bot app out for it, but either way my res is 1280x800 (highest i can go...) so i'm not sure what my problem is, i use the T in the start button and i try and use letters since the button seems to pop out, where should i be using?

Page 7 of 7 FirstFirst ... 567