deadman332 Posted February 9, 2010 Posted February 9, 2010 (edited) I need help i keep getting an eror when it try to launch my ffxi auto fisher bot. here is the code and i get the eror unterminated string code is :Sleep(100000);give time to open FFXI$fisha = 2;$event = 0;$bite = 0;$failsafe=0;$nobait = 0;WinWaitActive(’FFXiApp’);While $fisha > 1AutoItSetOption(’SendKeyDelay’, 40);Send (’1'); fishing macro$event = 0;$failsafe = 0;$nobait = 0;DoSleep(250);If PixelGetColor(22,994) = 16777215 AND PixelGetColor(108,996) = 16777215 AND PixelGetColor(228,997) = 16777215 ThenAutoItSetOption(’SendKeyDelay’, 40);Sleep(Random(3000,3200));Send(’{ENTER}’);Sleep(5400);EndIfIf PixelGetColor(43,997) = 16777215 AND PixelGetColor(83,998) = 16777215 AND PixelGetColor(175,999) = 16777215 ThenSleep(Random(5100,5400));You lost your catch. Finish and speed things up a little.$event = 1;EndIfIf PixelGetColor(37,1000) = 16777215 AND PixelGetColor(77,1000) = 16777215 AND PixelGetColor(180,998) = 16777215 ThenSleep(Random(5100,5400));You didn’t catch anything. Finish and speed things up a little.$event = 1;EndIfIf PixelGetColor(47,1000) = 16777215 AND PixelGetColor(142,999) = 16777215 AND PixelGetColor(330,997) = 16777215 Then$nobait = 1;You ran out of bait so let’s get ready to change it.EndIfIf PixelGetColor(43,995) = 16777215 AND PixelGetColor(71,997) = 16777215 AND PixelGetColor(84,995) = 16777215 Thenautosort()Sleep(Random(2100,2200));$event = 1;You caught something so now autosort, sleep a bit, and finish the event.EndIf$failsafe = $failsafe+1;If $failsafe = 175 Then$event = 1;EndIfUntil $event = 1sleep(2000);If $nobait = 1 ThenSend(’!2');change baitEndIfWEndFunc autosort()Sleep(9000);AutoItSetOption(’SendKeyDelay’, 0235);Send (’!i’);Sleep(0250);Send (’{NUMPADADD}’);Sleep (0250);Send (’{ENTER}’);sleep(0350);Send ( ‘a’ );sleep(0350);Send (’{ENTER}’);sleep(0250);Send (’{ESCAPE}’);sleep(0250);Send (’{ESCAPE}’);Sleep (0250);EndFunc How can i solve this problem? Please help me!ffaf.au3 Edited February 9, 2010 by deadman332
JohnOne Posted February 9, 2010 Posted February 9, 2010 Try this http://www.autoitscript.com/forum/index.php?showannouncement=11&f=2 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
enaiman Posted February 9, 2010 Posted February 9, 2010 READ ... THE ... ANNOUNCEMENTS ... BOTS = NO-NO SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
deadman332 Posted February 9, 2010 Author Posted February 9, 2010 (edited) READ ... THE ... ANNOUNCEMENTS ...BOTS = NO-NO Edited February 9, 2010 by deadman332
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