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