Бов с выходом

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Shadowdancer
Posts: 96
Joined: 2005-08-25 23:35:29

Бов с выходом

Post by Shadowdancer »

Вот у меня скрипт, допишите плиз кто может что бы когда ресы в сумке кончатся вырубался клиент(уо) а то немогу найтив хелпе

Code: Select all

sub bowcraft() 
var log='0x1BDD' ; Òèï ëîãîâ
var dagger='0x40059779' ; ID äàãåðà
var making=3000 ; Âðåìÿ èçãîòîâëåíèÿ
var shaft='0x1BD4'
 
  uo.Exec('addobject sunduk')
  while uo.Targeting()
    wait(300)
  wend
  while not uo.DeaD()
    uo.FindType(log,'-1','backpack')
    if uo.FindCOunt() then
      wait(300)
    else
      uo.FindType(log,'-1','sunduk')
      if uo.FindCount() then
        uo.moveitem('finditem','1')
        wait(500)
      else
        uo.Exec('terminate bowcraft')
      end if
    end if
    uo.WaitMenu('What','shaft')
    uo.WaitTargetType(log)
    uo.UseObject(dagger)
    wait(making)
    if uo.Count(shaft) > 100 then
      uo.FindType(shaft,'-1','backpack')
      uo.moveitem('finditem','100','sunduk')
      wait(500)
    end if
  wend
end sub
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

    uo.FindType(log,'-1','backpack')
    if uo.FindCOunt() then
      wait(300)
    else
      uo.FindType(log,'-1','sunduk')
      if uo.FindCount() then
        uo.moveitem('finditem','1')
        wait(500)
      else
        uo.Exec('terminate bowcraft')
      end if
    end if

ужас :lol:

Скрипт тут если ненаходит в сумке то он ищет в сундуке, если ненашол то убивает себя...
Shadowdancer
Posts: 96
Joined: 2005-08-25 23:35:29

Post by Shadowdancer »

та не убивает:( он ищет в сундуке потом ложит в сум ку и ищет в сумке все нормасно работает
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Shadowdancer wrote:та не убивает:( он ищет в сундуке потом ложит в сум ку и ищет в сумке все нормасно работает


Тогда где проблема?
Виталь
Posts: 97
Joined: 2005-08-09 23:16:57
Contact:

Post by Виталь »

uo.closeuo() :?
Post Reply