Healing (PVP)

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
DeathMan
Posts: 6
Joined: 2004-07-02 05:29:22

Healing (PVP)

Post 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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Re: Healing (PVP)

Post 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
DeathMan
Posts: 6
Joined: 2004-07-02 05:29:22

Error!

Post 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
Azazello
Posts: 3
Joined: 2004-07-20 05:20:28
Contact:

Post by Azazello »

you have bad inject. try run script from edit window or from hot key.

sorry fo my inglish
Post Reply