Yoko

All sides of Injection
It is currently 2025-12-03 04:13:54

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Change script
PostPosted: 2005-05-05 20:45:57 
Offline

Joined: 2005-04-04 20:45:29
Posts: 25
Помогите плиз сделайте чтоб чар место бутылок делал локпики

Code:
sub tinker() 
   VAR Sunduk = '0x40017C34'       ; Ñåðèàë ñóíäóêà
   VAR Ingi = '0x1BEF'          ; Òèï èíãîâ
   VAR Instrum = '0x1EBC'          ; Òèï èíñòðóìåíòà òèíêåðà
   VAR Bottle = '0x0F0E'          ; Òèï áóòûëêè
   VAR Kolvo = 200          ; Áðàòü èíãîâ
   VAR k = 0
   While TRUE
      UO.FindType( Ingi, -1, Sunduk )   ; Èùåì èíãè â ñóíäóêå
      If UO.FindCount() == 0 Then
         UO.Print("Iron Ingots not found, script terminated")
         return
      Endif
      UO.Grab( Str( Kolvo ), 'finditem' )
      wait( 2000 )
      While UO.Count( Ingi ) > 0
         ; Ïîêà â ïàêå åñòü èíãè
         UO.Print('Ostalos ' + Str( UO.Count( Ingi ) ) + ' ingots' )
         UO.DeleteJournal()
         UO.CancelMenu()
         UO.WaitMenu ('Tinkering', 'Tools', 'Tools', 'empty bottle' )
         UO.UseType( Instrum )
         k = 0
         while NOT UO.InJournal('You put') AND NOT UO.InJournal('fail') AND ( k < 30 )
            k = k + 1
            wait(500)
         wend
         if UO.Count( Bottle ) > 0 then
            UO.FindType( Bottle, -1, -1 )
            UO.MoveItem( 'finditem', 0, Sunduk )
            wait( 1000 )
            UO.Print( 'Bottle moved' )
         end if
      Wend
   Wend
end sub


Top
   
 Post subject:
PostPosted: 2005-05-05 21:11:46 
Offline

Joined: 2005-05-05 19:04:28
Posts: 3
sub tinker()
VAR Sunduk = '0x40017C34' ; Na?eae noiaoea
VAR Ingi = '0x1BEF' ; Oei eiaia
VAR Instrum = '0x1EBC' ; Oei eino?oiaioa oeiea?a
VAR lockpick = '0x0F0E' ; Oei aooueee
VAR Kolvo = 200 ; A?aou eiaia
VAR k = 0
While TRUE
UO.FindType( Ingi, -1, Sunduk ) ; Euai eiae a noiaoea
If UO.FindCount() == 0 Then
UO.Print("Iron Ingots not found, script terminated")
return
Endif
UO.Grab( Str( Kolvo ), 'finditem' )
wait( 2000 )
While UO.Count( Ingi ) > 0
; Iiea a iaea anou eiae
UO.Print('Ostalos ' + Str( UO.Count( Ingi ) ) + ' ingots' )
UO.DeleteJournal()
UO.CancelMenu()
UO.WaitMenu ('Tinkering', 'Tools', 'Tools', 'lockpick' )
UO.UseType( Instrum )
k = 0
while NOT UO.InJournal('You put') AND NOT UO.InJournal('fail') AND ( k < 30 )
k = k + 1
wait(500)
wend
if UO.Count( lockpick ) > 0 then
UO.FindType( Bottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
UO.Print( 'lockpick moved' )
end if
Wend
Wend
end sub

end sub


Top
   
 Post subject:
PostPosted: 2005-05-06 04:57:39 
Offline

Joined: 2005-04-04 20:45:29
Posts: 25
Скрипт не передвигает локпики когда их сделал


Top
   
 Post subject:
PostPosted: 2005-05-06 16:01:07 
Offline
User avatar

Joined: 2005-03-31 19:22:32
Posts: 38
Location: +7, 095.
Code:
sub tinker() 
VAR Sunduk = '0x40017C34' ; Na?eae noiaoea
VAR Ingi = '0x1BEF' ; Oei eiaia
VAR Instrum = '0x1EBC' ; Oei eino?oiaioa oeiea?a
VAR lockpick = '0x0F0E' ; Oei aooueee
VAR Kolvo = 200 ; A?aou eiaia
VAR k = 0
While TRUE
UO.FindType( Ingi, -1, Sunduk ) ; Euai eiae a noiaoea
If UO.FindCount() == 0 Then
UO.Print("Iron Ingots not found, script terminated")
return
Endif
UO.Grab( Str( Kolvo ), 'finditem' )
wait( 2000 )
While UO.Count( Ingi ) > 0
; Iiea a iaea anou eiae
UO.Print('Ostalos ' + Str( UO.Count( Ingi ) ) + ' ingots' )
UO.DeleteJournal()
UO.CancelMenu()
UO.WaitMenu ('Tinkering', 'Tools', 'Tools', 'lockpick' )
UO.UseType( Instrum )
k = 0
while NOT UO.InJournal('You put') AND NOT UO.InJournal('fail') AND ( k < 30 )
k = k + 1
wait(500)
wend
if UO.Count( lockpick ) > 0 then
UO.FindType( lockpick, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
UO.Print( 'lockpick moved' )
end if
Wend
Wend
end sub

end sub

В строке "VAR lockpick = '0x0F0E' ;" вместо "0x0F0E" вставляй тайп Локпиков.

_________________
Слухи о моей смерти сильно преувеличены.
© Марк Твен


Last edited by Kenny on 2005-05-06 16:50:51, edited 2 times in total.

Top
   
 Post subject:
PostPosted: 2005-05-06 16:22:39 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Kenny wrote:
В строке "VAR lockpick = '0x0F0E' ;" вместо "0x0F0E" вставляй ID Локпиков.


Не ID, а тип. 8)

_________________
Image


Top
   
 Post subject:
PostPosted: 2005-05-06 16:49:57 
Offline
User avatar

Joined: 2005-03-31 19:22:32
Posts: 38
Location: +7, 095.
Leo wrote:
Kenny wrote:
В строке "VAR lockpick = '0x0F0E' ;" вместо "0x0F0E" вставляй ID Локпиков.


Не ID, а тип. 8)

Точняк, чавой-то я тупанул ... +)

_________________
Слухи о моей смерти сильно преувеличены.

© Марк Твен


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited