Hello!
Here I'm again.
I'm reading help files, but it is my "English" or it is just a bit too complcated for now, but - here is my script -
I'm trying to next target mob if previous mob HP didn't show up. What happens is it presses F12,F11,F10 and stops at F10. I tried to implement ElseIf, but result is exactly the same. What am I doing wrong this time?
And one more question - is it possible to stop script with different script?
What I mean is if have script no1 running which every 1h stops other script no2 by pressing no1 hotkey for 1 minute and then again presses no1 hotkey and script no1 starts?! Or it should be implemented in script no2?
Here I'm again.
I'm reading help files, but it is my "English" or it is just a bit too complcated for now, but - here is my script -
HTML Code:
HotKeySet("{Del}", "TooglePause")
Global $Paused
Opt('PixelCoordMode', 0)
Global $handle = WinGetHandle("Lineage*II * ", "")
While 1
WEnd
Func TooglePause()
$Paused = Not $Paused
While $Paused
;target hp bar check at 0 HP
$tHppixel = PixelSearch(787, 58, 787, 58, 0x6F1713, 2, 1, $handle)
If IsArray($tHppixel) = 0 Then
Send("{F12}") ;finding next mob
Sleep(20)
If IsArray($tHppixel) = 0 Then
Send("{F11}") ;finding next mob
Sleep(20)
If IsArray($tHppixel) = 0 Then
Send("{F10}") ;finding next mob
Sleep(20)
EndIf
EndIf
;target should be found at this point, so attacking
Else
Send("{F2}") ;attacking mob skill 1
Sleep(20)
Send("{F3}") ;attacking mob skill 2
Sleep(20)
EndIf
WEnd
EndFunc ;==>TooglePause
And one more question - is it possible to stop script with different script?
What I mean is if have script no1 running which every 1h stops other script no2 by pressing no1 hotkey for 1 minute and then again presses no1 hotkey and script no1 starts?! Or it should be implemented in script no2?