Помогите найти ошибку в BS

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
D3VnuLL
Posts: 87
Joined: 2006-10-08 08:37:57

Помогите найти ошибку в BS

Post by D3VnuLL »

Помогите найти ошибку плз) выскакивает Unhandled exception in parser

Code: Select all

var ingot='0x1BEF'
var item='0x1B73'
var timer=60000
var msg1 = 'You put the'
var msg2 = 'have failed'

sub BlackSmith()
uo.exec('ongump repeat')
    uo.usetype(ingot)
    wait(1000)
    uo.findtype(item)
    while uo.findcount()
      uo.drophere('finditem')
      check.lag()
      wait(1000)
      uo.findtype(item)
    wend
    timer = 0
    repeat
      wait(100)
      timer = timer + 100
     until uo.injournal(msg1) or uo.injournal(msg2) or timer > 15000
      wait(1000)
      wend
      end sub

Sub check.lag()
 if uo.Waiting()>0 then
  uo.Exec('canceltarget')
   end if
    uo.DeleteJournal()
     uo.Click('backpack')
      repeat
       wait(50)
        until uo.InJournal('backpack')
         end sub
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

wend лишний.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
D3VnuLL
Posts: 87
Joined: 2006-10-08 08:37:57

Post by D3VnuLL »

Без него функцию вообще отключает (
Purgen
Posts: 187
Joined: 2005-04-04 18:23:12

Post by Purgen »

while - 1 штука
wend - 2 штуки
На размышления не наталкивает ?
D3VnuLL
Posts: 87
Joined: 2006-10-08 08:37:57

Post by D3VnuLL »

Всё спасибо :)
Post Reply