Odd Event With My BL Script
So I've been trying to learn and edit a script for BL for the past week or so (I have no prior experience with AutoIt). Thanks to a lot of help from LordInferno today, I finally got his script working for my desktop, and eventually my laptop. However, the problem I've run into once or twice (everything as far as the script works quite well) is that, after "I" kill BL and hit the Replay Button, instead of it continuing the loop by loading me on the boat, it loads me at the dock with the blank "Battle Completed" window. Obviously if I'm not at the computer and this happens in a channel where other people are, a gearless lvl65 running at 3x movement speed every 30 seconds or so isn't going to be good for avoiding a ban hammer. I'll post the code I use although I'm not sure if it has anything to do with this. If anyone has heard/experienced this ridiculously inconveniencing occurrence please don't hesitate to let me know what I can do, if anything. Thanks in advance.
Code:
Global $Pause
HotKeySet("{F10}", "Pause")
HotKeySet("{F9}", "BLord")
; Always press N then M before starting the cutscene on the first run.
While 1
WinWaitActive("Vindictus","")
WEnd
Func BLord()
While 1
Sleep(1000)
MouseClick("left",80,645,1) ; Clicks START to launch mission
Sleep(500)
Send("{8}") ; set your key bound to host_timescale 3
Sleep(18500)
Send("{7}") ; set your key bound to changelevel 2
Sleep(8000)
Send("{9}") ; set your key bound to monster_attack_bonus_ratio -80
Sleep(6500)
Send("{8}") ; set your key bound to host_timescale 3
Sleep(100)
Send("{w down}") ; Will move forward for 5 seconds to trigger cutscene
Sleep(4000)
Send("{w up}")
Sleep(6000)
Send("{f}") ; this will get your sitcky bomb out
Sleep(500)
Send("{e}") ; and throw
Sleep(400)
Sleep(67500) ; This is the time it takes until the Mission Successful menu shows up.
MouseClick("left",170,700,1) ; Will click REPLAY on the box showing Earnings/EXP/AP
Sleep(18500)
WEnd
EndFunc
Func Pause()
$Pause = NOT $Pause
While $Pause
sleep(100)
ToolTip('Script is PAUSED, press F10 to UNPAUSE',0,0)
WEnd
ToolTip("")
EndFunc