Code: Select all
VAR Ingi = '0x1BF2'
VAR Instrum = '0x1EB9'
VAR izdelie = '0x14FB'
VAR Kolvo = 500
VAR k
VAR o
sub main()
start:
k = 0
o = 0
While TRUE
UO.FindType( Ingi, 0x0602, 1) ; Ищем инги
UO.Grab( Str( Kolvo ), 'finditem' )
wait( 2000 )
While UO.Count( Ingi ) > 0
; Пока в паке есть инги
UO.Print('Ostalos ' + Str( UO.Count( Ingi ) ) + ' ingots' )
UO.UseType( Instrum )
UO.waittargettype( ingi )
wait ( 2500 )
UO.Lclick ( 76 , 389 )
if UO.InJournal("You create the item and place it in your pack.") then
o=o+1
endif
if o>300 then
goto drop()
endif
if UO.InJournal("You create the item and place it in your pack.") or UO.InJournal("You destroy some material.") then
k=k+1
endif
if k==10 then
goto start:
endif
end sub
sub drop()
UO.Exec ("waittargettype '0x14FB'")
UO.Exec ("drop")
Wend
Wend
end sub
моя идея заключалась в том, чтобы скрипт доходил до журнала, делал паузу выжидая, пока k=10, затем пускалась заново.... может я что-то ужасное намутил конечно =) прошу вобщем помощи =)
[Не путаем теги [cоde][/cоde] и [quоte][/quоte]. Leo]