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

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Alex-drw
Posts: 3
Joined: 2006-08-13 22:33:12
Contact:

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

Post 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
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post 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
Post Reply