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

Healing (PVP)
http://forum.yoko.com.ua/viewtopic.php?f=20&t=897
Page 1 of 1

Author:  DeathMan [ 2004-07-18 07:13:54 ]
Post subject:  Healing (PVP)

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:
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

Author:  Yoko [ 2004-07-18 20:41:39 ]
Post subject:  Re: Healing (PVP)

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


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

Author:  DeathMan [ 2004-07-18 21:59:08 ]
Post subject:  Error!

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:
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

Author:  Azazello [ 2004-07-21 10:33:15 ]
Post subject: 

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

sorry fo my inglish

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