Autoheal %mode: Unheandled Ex. in parser error...help me!

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Predator di Khars
Posts: 10
Joined: 2004-09-07 12:13:51

Autoheal %mode: Unheandled Ex. in parser error...help me!

Post by Predator di Khars »

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 :P and like ever sorry for my stupid italian/structured english :D
drcrazy
Junior Expert
Posts: 92
Joined: 2004-10-12 00:48:57
Location: Шард МЕ2

Post by drcrazy »

Insert a delay betwen heal loops..
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
AlexeyVorotnikov
Junior Expert
Posts: 138
Joined: 2004-09-18 15:12:06

Post by AlexeyVorotnikov »

Try this:

Code: Select all

VAR chp = Uo.GetHP("self")
VAR mhp = Uo.GetMaxHP("self")
VAR hp = chp / mhp * 100
Predator di Khars
Posts: 10
Joined: 2004-09-07 12:13:51

Post by Predator di Khars »

drcrazy wrote:Insert a delay betwen heal loops..


do u see "wait_bandage()" ? :)
in that sub there are many features that wait the right healing time :)

tnx for the answers, i get it ^_^
drcrazy
Junior Expert
Posts: 92
Joined: 2004-10-12 00:48:57
Location: Шард МЕ2

Post by drcrazy »

so. I saw call of the sub.. but haven't saw the sub.. ;)
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
Post Reply