Yoko

All sides of Injection
It is currently 2024-03-19 10:48:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2016-04-23 10:12:54 
Offline

Joined: 2016-04-23 10:09:13
Posts: 5
Здравствуйте! Помогите плз со скриптом, все работает норм, но проходит мин 5-10 и скрипт "тормозится" не работает, перезапуск не помогает, приходится перезапускать УО...

Code:
sub BowCraft() 
   VAR Sunduk = '0x40011A4B'     
   VAR Logs = '0x1BDD'   
   VAR Instrum = '0x0F51' 
   VAR Shaft = '0x1BD4'       
   VAR Kolvo = 7       
   VAR k = 0
   UO.SetGlobal( 'TimeProcess', str( UO.Timer() ) )
   While TRUE
      UO.FindType( Logs, -1, Sunduk ) 
      If UO.FindCount() == 0 Then
         UO.Print("Logs not found, script terminated")
         return
      Endif
      UO.Grab( Str( Kolvo ), 'finditem' )
      wait( 250 )
      While UO.Count( Logs ) > 2
         ; Iiea a iaea anou eiae
         ; UO.CancelMenu()
         Uo.Print( str( Uo.count( '0x1BDD', '0x0000', '0x40011A4B' ) ) + "  Ostalos logov..." )
         UO.DeleteJournal()
         UO.WaitMenu ('What do you want','Bowyer Items','Bowyer Items','Shafts')
         uo.waittargettype(Logs)
         UO.UseType( Instrum )
         k = 0
         while NOT UO.InJournal('You put') AND NOT UO.InJournal('You fail') AND ( k < 30 )
            k = k + 1
            wait(150)
         wend
         if UO.Count( Shaft ) > 0 then
            UO.FindType( Shaft, -1, -1 )
            UO.MoveItem( 'finditem', 0, Sunduk )
            wait( 150 )
            ; UO.Print( 'Shafts moved' )
         end if
      Wend
   Wend
end sub


Top
   
PostPosted: 2016-04-26 16:06:46 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Venturi wrote:
проходит мин 5-10 и скрипт "тормозится" не работае

Хоть бы показал часть или строку на которой останавливается, и последнее сообщение в журнале.

_________________
CodeSweeper


Top
   
PostPosted: 2016-04-26 16:15:56 
Offline

Joined: 2016-04-23 10:09:13
Posts: 5
Incorrect User wrote:
Venturi wrote:
проходит мин 5-10 и скрипт "тормозится" не работае

Хоть бы показал часть или строку на которой останавливается, и последнее сообщение в журнале.


Все, спс! Разобрался!


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB® Forum Software © phpBB Limited