Yoko

All sides of Injection
It is currently 2026-03-16 13:17:25

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2004-10-31 16:19:22 
Offline

Joined: 2004-09-07 12:13:51
Posts: 10
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


Top
   
 Post subject:
PostPosted: 2004-11-01 15:35:24 
Offline
Junior Expert
User avatar

Joined: 2004-10-12 00:48:57
Posts: 92
Location: Шард МЕ2
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.


Top
   
 Post subject:
PostPosted: 2004-11-02 14:12:55 
Offline
Junior Expert

Joined: 2004-09-18 15:12:06
Posts: 138
Try this:
Code:
VAR chp = Uo.GetHP("self")
VAR mhp = Uo.GetMaxHP("self")
VAR hp = chp / mhp * 100


Top
   
 Post subject:
PostPosted: 2004-11-02 18:41:09 
Offline

Joined: 2004-09-07 12:13:51
Posts: 10
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 ^_^


Top
   
 Post subject:
PostPosted: 2004-11-02 23:19:13 
Offline
Junior Expert
User avatar

Joined: 2004-10-12 00:48:57
Posts: 92
Location: Шард МЕ2
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited