Yoko

All sides of Injection
It is currently 2025-11-05 16:38:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2006-02-14 07:37:19 
Offline

Joined: 2006-02-13 19:46:11
Posts: 19
скрипт пашет исправно, потом нестого нессего выплёвывает ошибку и скрипт слетает "Unhandled exception in parser"

если тут есть неленивые и добрые дядьки-огромная просьба дописать 2 скрипа
1 проверка на лаги
2 чтоб кушал хавку с пола

Code:
#####################################################################
; Carpentry. v.1.13D (c) Edred (переделан под шитьё тряпок)
;
; Чар берет берет с пола логи, крафтит из них удочки и скидывает удочки
; в трэш. Если логи на полу кончились - выход.
; (Get logs from ground and craft fishing pole. Move fishing pole trash)
;
; Special Edition (for Democratic)
;
;
sub carpentry()
   VAR MyTrash = '0x4006F418'       ; Сериал сундука
   VAR Cloth = '0x175D'          ; Тип ткани
   VAR Rubanok = '0x0F9D'          ; Тип инструмента
   VAR Udochka = '0x1766'          ; Тип тряпочки (Pattern)
   VAR Kolvo = 2          ; Брать ткань
   VAR j, k
   While TRUE
      UO.FindType( Cloth, -1, 1 )       ; Ищем ткань
      UO.Grab( Str( Kolvo ), 'finditem' )    ; Кладем ткань в пак
      wait( 1000 )
      If UO.FindCount() == 0 Then
         UO.Print("Cloth not found, script terminated")
         return
      Endif
      While UO.Count( Cloth ) > 0
         ; Пока в паке есть логи
         UO.Print('I have ' + Str( UO.Count( Cloth ) ) + ' cloth' )
         UO.DeleteJournal()
         UO.CancelMenu()
         UO.WaitMenu ('Cloth','Pattern')
         UO.WaitTargetType('0x175D')
         UO.UseType( Rubanok )
         k = 0
         while NOT UO.InJournal('You put') AND NOT UO.InJournal('fail') AND ( k < 30 )
            k = k + 1
            wait(500)
         wend
         ; Wait( 14000 )
         ; Скрафтили удочку
         ; Сразу переложим ее в трэш
         if UO.Count( Udochka ) > 0 then
            UO.FindType( Udochka )
            UO.MoveItem( 'finditem', 0, MyTrash )
            wait( 1000 )
            UO.Print( 'quarter staff trashed' )
         end if
      Wend
   Wend
end sub


Top
   
PostPosted: 2006-02-15 01:37:15 
Offline

Joined: 2006-02-03 11:32:16
Posts: 256
Location: ND
Старый, ну найдите мне похожий ледник на Земле, а? Обычно это плоская плюха и вертикальная стена на краю, вызванная очень быстрым таянием в земных условиях. А здесь стена не вертикальная а очен


Last edited by LordTom on 2009-12-23 16:14:13, edited 3 times in total.

Top
   
 Post subject:
PostPosted: 2006-02-15 09:34:21 
Offline

Joined: 2006-02-13 19:46:11
Posts: 19
спасибо.
а ошибка-это защита от инжы


Top
   
 Post subject:
PostPosted: 2006-02-15 10:39:45 
Offline
Expert!

Joined: 2004-06-04 03:24:25
Posts: 333
какая ошибка? ошибка парсера? чудеса...


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 10 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