Sub Autobandage()
VAR hp = Uo.GetHP("self") * 100 / Uo.GetMaxHP("self")
If hp < 100 then
Uo.exec('waittargetself')
Uo.exec('usetype 0x0E21')
Wait(200)
Uo.Setglobal("inbandage","ON")
wait_bandage()
End If
End Sub
If i try to run this macro the error appairs: Unheandled exeption in parser or sometthing like that...i don't remember the words exactly...
i tried also to change this line:
VAR hp = Uo.GetHP("self") * 100 / Uo.GetMaxHP("self")
into
VAR hp = (Uo.GetHP("self") * 100) / Uo.GetMaxHP("self")
but it still doesn't work...
i tried to change in this way:
VAR hp = 0
hp = Uo.GetHP("self") * 100 / Uo.GetMaxHP("self")
but it still doesn't work...
HELP ME

