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

бинты из банка
http://forum.yoko.com.ua/viewtopic.php?f=20&t=8529
Page 1 of 1

Author:  Alex-drw [ 2006-08-17 10:11:10 ]
Post subject:  бинты из банка

вот скрипт на хилинг, можете пожалуста в него вставить скрипт чтоб када бинты в паке кончаются он писал bank брал из банка определенное кол-во бинтов и хилился дальше?
Code:
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

Author:  Nmy [ 2006-08-17 10:57:59 ]
Post subject: 

вместо
Code:
uo.exec("terminate Train_Healing")

поставь

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

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