Code: Select all
sub AutoHeal()
VAR GreatHeal = '0x0F0C'
VAR Rubu = '0x1E1E'
VAR bandageself = '0x0E21'
VAR mana = '0x0F08'
Endif
repeat
If UO.Life < 70 Then
UO.UseType( Rubu )
Endif
If UO.Life < 90 Then
UO.Exec("bandageself")
Endif
If UO.Life < 30 Then
UO.Exec("GreatHeal")
Endif
if uo.mana < 25 Then
uo.usetype('mana')
Endif
wait(1000)
until UO.Dead()
end sub