Yoko
http://forum.yoko.com.ua/

Autoheal %mode: Unheandled Ex. in parser error...help me!
http://forum.yoko.com.ua/viewtopic.php?f=3&t=1802
Page 1 of 1

Author:  Predator di Khars [ 2004-10-31 16:19:22 ]
Post subject:  Autoheal %mode: Unheandled Ex. in parser error...help me!

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

Author:  drcrazy [ 2004-11-01 15:35:24 ]
Post subject: 

Insert a delay betwen heal loops..

Author:  AlexeyVorotnikov [ 2004-11-02 14:12:55 ]
Post subject: 

Try this:
Code:
VAR chp = Uo.GetHP("self")
VAR mhp = Uo.GetMaxHP("self")
VAR hp = chp / mhp * 100

Author:  Predator di Khars [ 2004-11-02 18:41:09 ]
Post subject: 

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 ^_^

Author:  drcrazy [ 2004-11-02 23:19:13 ]
Post subject: 

so. I saw call of the sub.. but haven't saw the sub.. ;)

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/