Guest Poster Posted April 23, 2005 Share Posted April 23, 2005 (edited) Hello. A few hours ago i found a game script that i want to use. For some reason, AutoIT gives me an error message wich problem i can't find. The script is the following: ; AutoIt Version: 3.0 ; Language: English ; Platform: WinXP ; Author: Mibz (Pantless Krab) + Steve ; ; Script Function: ; WoW FishBot. ; ; Wow Window Title - World of Warcraft ; WoW Window Size - w1600 x h1200 ; classname=GxWindowClassD3d ; Colour of splash - 0xA2A67D ; 0xC1AD7A ; 0xD0C08D ; Position of item - x:44 y:226 ; Position of hotkey 0 - x:409 y:768 ; Prompt the user to run the script using Yes/No prompt $run = MsgBox(4, FishBot", Do you want to run FishBot?") ; Exit if No If $run = 7 Then Exit EndIf ; Initial shit $time = MsgBox(4, FishBot - Time of Day?", Yes = Day | No = Night") WinActivate("World of Warcraft") HotKeySet("{PAUSE}", EndScript") ; Script Start While 1 Send("0″) MouseMove(500, 500) $start = TimerInit() $dif = TimerDiff($start) While 1 If $time = 6 Then $coord = PixelSearch (5, 300, 1300, 1000, 0xF6F6F6, 30, 4) Else $coord = PixelSearch (5, 300, 1300, 1000, 0xEEEEEE, 55, 3) EndIf ; 5, 300 - 1024, 560 can be changed if you want to search a wider area. ; Not recommended though since you can just adjust your view to fit all ; the water in that space. The bigger the area, the less likely it is to ; detect it. ; If the splash isnt getting detected then change the hex colour to ; something a bit closer. Top one is day, bottom is night. If UBound($coord)>1 Then Send("{SHIFTDOWN}") MouseClick("right", $coord[0], $coord[1], 1, 3) Send("{SHIFTUP}") ExitLoop Else Sleep(250) $dif = TimerDiff($start) If $dif > 30000 Then ExitLoop EndIf EndIf WEnd WEnd ; Function to exit script Func EndScript() $exit = MsgBox(4, FishBot", End FishBot?") If $exit = 6 Then Exit EndIf If someone knows the problem, please, post it. The error given is "Unable to parse line". Thanks. Edited April 23, 2005 by Poster Link to comment Share on other sites More sharing options...
Developers Jos Posted April 23, 2005 Developers Share Posted April 23, 2005 Replace the all and ″ with " .. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MHz Posted April 23, 2005 Share Posted April 23, 2005 If someone knows the problem, please, post it. The error given is "Unable to parse line".Errors, wow.No wonder, would have a better chance of catching white elephants with this script. Link to comment Share on other sites More sharing options...
Guest Poster Posted April 23, 2005 Share Posted April 23, 2005 Thank you! hehe. But now, the error has changed to the following: Error: "EndIf" Statement with no matching "If" statement. Any idea now? Link to comment Share on other sites More sharing options...
MHz Posted April 23, 2005 Share Posted April 23, 2005 Thank you! hehe.But now, the error has changed to the following:Error: "EndIf" Statement with no matching "If" statement.Any idea now?<{POST_SNAPBACK}>That is a basic logicisical error. Out of balance script."If" you start something, always "Endif". Or should I say end it. hmm Arh, you can work it out. Lots of debugging, but you seem wise enough? Link to comment Share on other sites More sharing options...
herewasplato Posted April 23, 2005 Share Posted April 23, 2005 (edited) "If" you start something, always "Endif". Or should I say end it. hmm <{POST_SNAPBACK}>true - but not the problem in this scripttry EndFuncalso - atleast one send with wrong syntax Edited April 23, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
MHz Posted April 23, 2005 Share Posted April 23, 2005 true - but not the problem in this scripttry EndFuncalso - atleast one send with wrong syntax<{POST_SNAPBACK}>Damn, I need to read the helpfile more. You are too wise.$start = TimerInit() $dif = TimerDiff($start)This looks wrong also. Like a sandwich, with no filling. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now