I used LaptrotBot Thread Timer its work perfect but when char die its ignore sited hp and manas and Execute spells and potion always so I have to close programe and open it again ...... how to slove it ?
this is codes :
Code:
Dim c As Client
Dim p As Player
dim healspell as string
Code:
Public WithEvents healspell1 As ThreadTimer
Public Sub New()
InitializeComponent()
healspell1 = New ThreadTimer(800)
end sub
Thread timer :
Code:
Private Sub healspell1_OnExecute() Handles healspell1.OnExecute
On Error Resume Next
If p.HPBar <= txtheal1.Value Then
Select Case healspell
Case "exura"
If p.Mana >= Tibia.Constants.Spells.LightHealing.ManaPoints Then
c.Console.Say("exura")
System.Threading.Thread.Sleep(800)
End If
End Select
End If
End Sub
check box :
Code:
Private Sub checkheal1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles checkheal1.CheckedChanged
If checkheal1.Checked Then
healspell = boxheal1.Text
healspell1.StartTimer()
Else
healspell1.StopTimer()
End If
End Sub
Can someone told me where problem ?