i use that to handle your problem while is mine often too.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
'*************************************************************************'
'*''''''''''''''''''''CHECK CHAT FOR MOB TAKING DAMAGE''''''''''''''''''''''''''''*'
'*************************************************************************'
Function MOB_DMG_CHECK
Do While not (Infile.atEndOfStream) ' do while not EOF
Line = Infile.ReadLine ' Read a Line from InFile
If Instr (Line, "no line of sight") Then
Log.DebugLog "Found the LoS " & Target.Distance
for MoveBackward = 0 to 3
VGSEndtext "s" ' Moves Target Backward
Sleep 20
next
end if
loop
end function
i also check in chat for no line of sightif that happens i move little back so long i got the mesage in chat, it works very good for me (cleric).
also is a part on my Cleric bot
http://www.taultunleashed.com/phpbb2/ab ... oT_v_.html