Page 1 of 1

бинты из банка

Posted: 2006-08-17 10:11:10
by Alex-drw
вот скрипт на хилинг, можете пожалуста в него вставить скрипт чтоб када бинты в паке кончаются он писал bank брал из банка определенное кол-во бинтов и хилился дальше?

Code: Select all

sub Train_Healing()
var i
while True
   UO.FindType(0x0E21,"-1","my")
   if UO.FindCount() then
      uo.usetype(0x1F04); Cursed Item
      CheckLag()
      if i==3 or not i then
uo.useskill ("Spirit Speak")
         i=1
      else
         i=i+1
      endif

         wait(2000)
      uo.undress()
      wait(100)
      uo.exec('bandageself')
      Wait(2000)
   else
      UO.FindType(0x0E20,"-1","my")
      if UO.FindCount() then
         uo.waittargettype(0x1008)   ;wash basin
         uo.UseType(0x0E20)  ;bloody bandages
         CheckLag()
      else
         uo.print("You haven't bandages")
         uo.exec("terminate Train_Healing")
      endif
   endif
wend
end sub

sub CheckLag()
   UO.DeleteJournal()
   UO.Click('backpack')
   repeat
      wait(500)
   until UO.InJournal('backpack')
end sub

Posted: 2006-08-17 10:57:59
by Nmy
вместо

Code: Select all

uo.exec("terminate Train_Healing")

поставь

Code: Select all

getbandages()

sub getbandages()
uo.msg('Bank')
wait(1000)
uo.findtype('0x0E21',0,'lastcontainer')
If uo.findcount() then
uo.moveitem('finditem','100','backpack')
Endif
end sub