Page 1 of 1

Healing (PVP)

Posted: 2004-07-18 07:13:54
by DeathMan
I would like one script of healing, which verifies if life this down, and agreement, it healase or with Bandages or Potion...

Ex1: If Life <= 90 Using Bandageself
Else
if life < 60 using Heal potion

Ex2:

Code: Select all

Sub control() 
healx:
if uo.life<90 then
UO.Print("***Using Bandage***")
UO.exec ("bandageself")
wait(5500)
end if
if uo.life<40 then
UO.Print("***Using Heal Potion***")
UO.exec("usetype 0x0F82 0x0532")
endif
goto healx
end sub

Re: Healing (PVP)

Posted: 2004-07-18 20:41:39
by Yoko
DeathMan wrote:Ex1: If Life <= 90 Using Bandageself
Else
if life < 60 using Heal potion


Code: Select all

if uo.life <= 60 then
   ...
else
   if uo.life <= 90 then
      ...
   end if
end if

Error!

Posted: 2004-07-18 21:59:08
by DeathMan
Which a Error?

Its script was good, and have error in line 15... i don't whit him find =/

Help:

Its is my script:

Code: Select all

sub control()
healing:
if uo.life <= 60 then
uo.print("Waiting Life Critical"); Msg from me
  uo.exec("usetype 0x0F82 0x0532"); Potion Life!
else
   if uo.life <= 90 then
   uo.print("Life's Down"); Msg from me
     uo.exec("bandageself"); Bandage Self
     wait(5500)
   end if
end if
goto healing
end sub

Posted: 2004-07-21 10:33:15
by Azazello
you have bad inject. try run script from edit window or from hot key.

sorry fo my inglish