Autoheal %mode: Unheandled Ex. in parser error...help me!
Posted: 2004-10-31 16:19:22
i need to place a var that represents my HP in percentage...and i script this:
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
and like ever sorry for my stupid italian/structured english 
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

