Yoko

All sides of Injection
It is currently 2018-07-22 16:29:11

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2016-04-25 20:16:53 
Offline

Joined: 2016-04-25 20:05:40
Posts: 15
Code:
sub tailor1() 
VAR Sunduk = '0x41DC7700'
VAR Tkan = '0x175D'
VAR Spools = '0x0FA0'
VAR Instrum = '0x0F9D'
VAR Dress = '0x1EFF'
VAR Fak = '0x175D'
VAR Kolvo = 200 ;
VAR Vzat = 150
VAR k = 0
While TRUE
UO.FindType( Spools, -1, Sunduk ) ;
If UO.FindCount() == 0 Then
UO.Print("Spools not found, script terminated")
return
Endif
UO.Grab( Str( Vzat ), 'finditem' )
wait( 2000 )
While UO.Count( Spools ) > 10
UO.Print('Ostalos ' + Str( UO.Count( Spools ) ) + ' Spools' )
While TRUE
UO.FindType( Tkan, -1, Sunduk ) ;
If UO.FindCount() == 0 Then
UO.Print("Tkan not found, script terminated")
return
Endif
UO.Grab( Str( Kolvo ), 'finditem' )
wait( 2000 )
While UO.Count( Tkan ) > 12
UO.Print('Ostalos ' + Str( UO.Count( Tkan ) ) + ' Tkan' )
UO.DeleteJournal()
UO.CancelMenu()
UO.WaitTargetType( Fak )
UO.WaitMenu ('Cloth', 'Shirts', 'Shirts', 'fancy dress' )
UO.UseType( Instrum )
k = 0
while NOT UO.InJournal('You put') AND NOT UO.InJournal('Плохой') AND ( k < 30 )
k = k + 1
wait(500)
wend
if UO.Count( Dress ) > 0 then
UO.FindType( Dress, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
UO.Print( 'Dress moved' )
end if
Wend
Wend
end sub

Не хочет добирать Spools повторно. Кто поможет исправить?


Last edited by slafoka on 2016-05-04 23:32:02, edited 1 time in total.

Top
   
PostPosted: 2016-04-26 16:14:22 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
slafoka wrote:
Кто поможет исправить?

Попробуй замени строку
Code:
UO.Grab( Str( Vzat ), 'finditem' )
на
Code:
UO.Grab(Vzat, 'finditem' )

_________________
CodeSweeper


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

All times are UTC+02:00


Who is online

Users browsing this forum: Baidu [Spider] and 1 guest


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