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

heal+bandag
http://forum.yoko.com.ua/viewtopic.php?f=20&t=3771
Page 1 of 1

Author:  Gromiz [ 2005-04-22 19:07:31 ]
Post subject:  heal+bandag

скрипт
задумка:
если в паке есть хеал бутылки, то пьет их....
если их нет, то лечится бинтами...

почему они делает все сразу?? где ошибки??
Code:
sub autoheal() 
   If UO.Life<=150  Then
      UO.FindType('0x0F0C',-1,'my')
      If UO.FindCount()>0 Then
            UO.WaitTargetSelf()
            UO.UseObject('finditem')
            UO.Print("Bottle!!!")
      Endif
    Else
   Endif
uo.setarm('arm1')
uo.bandageself()
wait(1000)
uo.arm('arm1')
end sub

Author:  flake [ 2005-04-22 19:29:15 ]
Post subject: 

Code:
sub autoheal() 
  If UO.Life<=150  Then
      UO.FindType('0x0F0C',-1,'my')
      If UO.FindCount()>0 Then
            UO.WaitTargetSelf()
            UO.UseObject('finditem')
            UO.Print("Bottle!!!")
      Else
            uo.setarm('arm1')
           uo.bandageself()
           wait(1000)
           uo.arm('arm1')
    Endif
 Else
      wait(300)
 EndIf
end sub

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