Yoko

All sides of Injection
It is currently 2025-12-03 09:49:42

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Carpentry_problem
PostPosted: 2006-12-11 16:59:34 
Offline
User avatar

Joined: 2006-12-04 00:23:37
Posts: 36
Code:
sub Carpentry(); делаем dartboard-ы!
    repeat
     UO.usetype(0x1034,0)
     UO.waitmenu('Carpentry','Weapons','Weapons','fishing pole')
     while not UO.InJournal("You put the fishing") and not UO.InJournal("You fail to create the")
       Wait(100)
     wend
     UO.DeleteJournal()
     if (UO.Count('0x1BDD',0) < 50) then
        uo.findtype("0x1BDD","0","ground")
        if uo.FindCount() then
           UO.grab("500","finditem")
           UO.Print('Нашли логи на полу... и взяли их в пак')   
        endif
        Wait(1000)
     endif
     if (UO.Count('0x0EED',0) > 0) then
        uo.findtype("0x0EED","0","my")
        UO.drop("-1","0","0","0","finditem")
        UO.Print('Выбросили бабло...')
        Wait(100)
     endif
    until (UO.Count('0x1BDD',0) < 50)
    UO.Print('Мля логи закончились...')
    UO.Print('Ещё логов хочууу...');
end sub


Почемуто на выборе мену иногда выключается...можеты быть паузу добавить?


Top
   
 Post subject:
PostPosted: 2006-12-14 08:44:34 
Offline

Joined: 2006-12-11 13:07:33
Posts: 4
Возможно надо паузу поставить или попробуй поменять вот это
Code:
     while not UO.InJournal("You put the fishing") and not UO.InJournal("You fail to create the") 
       Wait(100)
     wend

НА
Code:
repeat 
      wait(300)
   until uo.InJournal('You put the fishing') or uo.InJournal('You fail to create the')


Выше указанная команда помоему гармоничнеё получаеться и она спецмально для этого предназначена
И ешо
Code:
UO.DeleteJournal()
Должно идти не после цикла а перед ним... попробуй думаю должно заработать


Top
   
 Post subject:
PostPosted: 2006-12-14 12:08:11 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
     UO.waitmenu
     UO.usetype(0x1034,0)

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-12-14 20:09:50 
Offline
User avatar

Joined: 2006-12-04 00:23:37
Posts: 36
NMY wrote:
Code:
     UO.waitmenu
     UO.usetype(0x1034,0)


СПС за подсказку ... нашёл ещё решение в automenu

Code:
sub Carpentry();
   UO.automenu('Carpentry','Weapons')
   UO.automenu('Weapons','fishing pole')
   repeat
      UO.usetype(0x1034,0)
      while not UO.InJournal("You put the fishing") and not UO.InJournal("You fail to create the")
         Wait(100)
      wend
      UO.DeleteJournal()
      if (UO.Count('0x1BDD',0) < 50) then
         uo.findtype("0x1BDD","0","ground")
         if uo.FindCount() then
            UO.grab("500","finditem")
         endif
         Wait(1000)
      endif
      if (UO.Count('0x0EED',0) > 0) then
         uo.findtype("0x0EED","0","my")
         UO.drop("-1","0","0","0","finditem")
         Wait(100)
      endif
   until (UO.Count('0x1BDD',0) < 50)
   UO.cancelmenu()
end sub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited