Yoko

All sides of Injection
It is currently 2024-03-29 01:52:07

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: automenu cancelled
PostPosted: 2016-11-09 22:21:19 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
вот скриптик, но почему то он не фурычит! Указываю сундук, герой берёт 500 ингов и просто стоит. Подскажите пожалуйста в чём узкое место?
Code:
sub tinker() 
   uo.print('Покажи сундук с ингами')
   uo.addobject('sunduk')
        while uo.targeting()
              wait(300)
        wend
   uo.useobject('sunduk')
   wait(1000)
   checklag()
   VAR Ingi = '0x1BEF'          ; Тип ингов
   VAR Instrum = '0x1EBC'          ; Тип инструмента тинкера
   VAR Clock = '0x104F'          ; Тип итема который будем изготовлять
zagruzka:
   if not uo.count('0x1BEF','0x0000') then
      UO.FindType( Ingi,'0x0000', 'sunduk' )   ; Ищем инги в сундуке
      If UO.FindCount() Then
         uo.moveitem('finditem','500','backpack')
         wait(1000)
         checklag()
       else
         uo.print('Инготы закончились!!!')
         return
      Endif
      While UO.Count(Ingi,'0x0000') and uo.count(Instrum,'0x0000')
         ; Пока в паке есть инги
         UO.Print('Ostalos ' + Str( UO.Count( Ingi,'0x0000' ) ) + ' ingots' )
         UO.DeleteJournal()
         UO.WaitMenu ('Tinkering', 'Tools', 'Tools', 'clock parts' )
         UO.UseType( Instrum,'0x0000' )
               repeat
                   wait(300)
               until uo.injournal('You put|fail')
         while uo.count(Clock,'0x0000')
            UO.FindType( Clock,'0x0000','backpack' )
            UO.MoveItem( 'finditem', '0', 'sunduk' )
            wait( 1000 )
            checklag()
            UO.Print( 'Clock moved' )
          wend
      Wend
   goto zagruzka
end sub
Sub Checklag()
   deljournal('a backpack')
   uo.click('backpack')
   repeat
      wait(50)
   until uo.injournal('a backpack')
endsub
Sub deljournal(msg)
   while uo.injournal(msg)
      uo.setjournalline(uo.injournal(msg)-1,"")
   wend
endsub


Top
   
 Post subject: Re: automenu cancelled
PostPosted: 2016-11-09 23:40:28 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
clock parts
на
Clock Parts
попробуй поменяй
А в чеклаге
until uo.injournal('a backpack')
на
until uo.injournal('ackpack')

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject: Re: automenu cancelled
PostPosted: 2016-11-14 00:08:56 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
Мираж спс тебе!


Top
   
 Post subject: Re: automenu cancelled
PostPosted: 2016-11-14 11:37:55 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Незачё :)
Регистр важен так что я стараюсь избегать в проверках журнала всяких "You put" писЯ "ou put" вместо него. Так и с меню надо быть крайне внимательным. Админы бывает подкладывают мертвую крысу меняя буквы вверх и вниз в регистре. И скрипты дохнут :roll:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


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 16 guests


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