Опять ошибка, помогите плиз

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Mitya
Posts: 15
Joined: 2006-02-08 10:29:37

Опять ошибка, помогите плиз

Post by Mitya »

Code: Select all

sub tinkering()


VAR boks = '0x4000EFD6'
VAR boks2 = '0x4000AE6C'
Var col1
Var col2

na4alo:

 wait (1000)

#delauem Axle
col1 = uo.Count ( '0x1BDD', '0x0000' ) ; logs
uo.cancelmenu()
While col1 >= 4
wait ( 1500 )
uo.waittargettype ( '0x1BDD', '0x0000' ) ; logs
wait ( 100 )
uo.automenu('Tinkering','Misc')
uo.automenu( 'Misc', 'Wooden Items')
uo.automenu( 'Wooden Items', 'Axle')
UO.UseType ( '0x1ebc' ) ;instryment
wait ( 3500 )
col1 = uo.Count ( '0x1BDD', '0x0000' ) ; logs
wait ( 500 )
Wend


#vikidivaem sdelanoe
col2 = uo.Count ( '0x1051', '0x0000' )   ;AXLE
While col2 > 0
 wait ( 100 )
 UO.FindType( '0x1051', 'backpack')
 wait ( 100 )
 uo.moveitem('finditem','all',boks2)
 wait (100)
 col2 = uo.Count ( '0x1BDD' )
wend
wait ( 1000 )



#berem 400 logov iz boks(a)
 UO.FindType( '0x1BDD', '0x0000', boks)
 wait ( 100 )
 uo.moveitem('finditem','400','backpack')
 wait (1000)



wait ( 100 )
goto na4alo
endsub


Ошибка возникает когда делается AXLE, помогите кто может
CFA
Posts: 64
Joined: 2006-02-03 06:53:36

Re: Опять ошибка, помогите плиз

Post by CFA »

какая ошибка то?
Mitya
Posts: 15
Joined: 2006-02-08 10:29:37

Post by Mitya »

Unhandled exception in parser
CFA
Posts: 64
Joined: 2006-02-03 06:53:36

Post by CFA »

Mitya wrote:Unhandled exception in parser

в какой момент? он успевает чтото сделать?
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

ошибка не очевидная попробуйц отформатировать нормально
Mitya
Posts: 15
Joined: 2006-02-08 10:29:37

Post by Mitya »

да успевает, делает делает и ощибка.
много сделать не успевает, где-то штук 10 сделает и вылетает
CFA
Posts: 64
Joined: 2006-02-03 06:53:36

Post by CFA »

тогда подозреваю дело в этом:
uo.moveitem('finditem','all',boks2)
вместо 'all' поставить 0 или 1
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

Code: Select all

sub tinkering() 
VAR boks = '0x4000EFD6'
VAR boks2 = '0x4000AE6C'
Var col1
Var col2
   uo.automenu('Tinkering','Misc')
   uo.automenu('Misc', 'Wooden Items')
   uo.automenu('Wooden Items', 'Axle')
   while not uo.Dead()
      wait(1000)
      #delauem Axle
      col1 = uo.Count('0x1BDD', '0x0000') ; logs
      While col1 >= 4
         wait(1500)
         uo.waittargettype('0x1BDD', '0x0000') ; logs
         wait(100)
         UO.UseType('0x1ebc') ;instryment
         wait(3500)
         col1 = uo.Count('0x1BDD', '0x0000') ; logs
         wait(500)
      Wend
      #vikidivaem sdelanoe
      col2 = uo.Count('0x1051', '0x0000')   ;AXLE
      While col2 > 0
         wait(100)
         UO.FindType('0x1051', 'backpack')
         wait(100)
         uo.moveitem('finditem','all',boks2)
         wait(100)
         col2 = uo.Count('0x1BDD')
      wend
      wait(1000)
      #berem 400 logov iz boks(a)
      UO.FindType('0x1BDD', '0x0000', boks)
      wait(100)
      uo.moveitem('finditem', '400', 'backpack')
      wait(1000)
   wend
end sub

пробуй...
Post Reply