I'm having some trouble with a script,
Basically I want the script to keep track of the number of runs, and if that hits a specific number then to goto town.
What happens is this:
It'll check the number of runs, goto town if it needs to, exit the game,
And then resume the script without checking the number of runs again
I want it to check the runs (start at the beginning) again
While $go
if($Run) Then
$Pixel1 = PixelSearch
If Not @error Then
While(Teleport())
WEnd
Repair()
Sleep(200);
ResumeGame()
Else
If $runMade >= 5 Then
Town()
Exit/ResumeGame()
Else
RunToCellarArea()
if (StatusCheck()) Then
While(Teleport())
; idle until teleport is over
WEnd
Town()
Exit/ResumeGame()
EndIf
EndIf
EndIf
EndIf
Wend