Yoko

All sides of Injection
It is currently 2025-11-11 22:57:09

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2006-04-21 17:59:03 
Offline

Joined: 2004-07-02 09:47:30
Posts: 43
Вообщем скрипт тут наваял на тайлор:
Code:
sub Bandage()
   DIM Cloth[4]
   Cloth[0] = '0x1762'
   Cloth[1] = '0x1763'
   Cloth[2] = '0x1764'
   Cloth[3] = '0x1761'
   VAR i
   VAR Chest = '0x4001573A'
   VAR nitki = '0x4000F690'
   For i = 0 To 3
If UO.Count( Cloth[i] ) == 0 Then
UO.FindType( Cloth[i], '-1', Chest )    # FoR TesT!!!!
  If UO.FindCount() > 0 Then
UO.MoveItem( 'finditem' )
wait(1000)
UO.Print( 'Ïåðåïðîâåðü âñ¸ åù¸ ïàðó ðàç. Íåâèæó ÿ â ñóíäóêå òêàíè!!!)
Endif
Endif
Repeat
UO.WaitMenu('Cloth','Clean Bandages')
wait (1000)
uo.waittargettype(Cloth[i])
uo.useobject( nitki )
wait (1000)
UO.DeleteJournal()
while not (UO.InJournal("You put") or UO.InJournal("Tailoring failed"))
wait(300)
wend
wait(200)
until UO.Dead()
Next
end sub

Смысл в том что у нас на севре несколько типов ткани... Так вот с такой фигнёй сталкиваюсь первый раз. Скрипт постоянно выдаёт ошибки в строчках которые Должны работать, либо в последней строчке, которой не усуществует. Может кто подсказать де косяк?


Top
   
 Post subject:
PostPosted: 2006-04-21 18:03:25 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
Code:
UO.Print( 'Ia?ai?iaa?u an? au? ia?o ?ac. Iaae?o y a noiaoea oeaie!!!) 

кавычку забыл...


Top
   
 Post subject:
PostPosted: 2006-04-21 18:12:17 
Offline

Joined: 2004-07-02 09:47:30
Posts: 43
Рабочая версия... Может кому пригодится:)
Code:
sub Bandage() 
   DIM Cloth[4]
   Cloth[0] = '0x1762'
   Cloth[1] = '0x1763'
   Cloth[2] = '0x1764'
   Cloth[3] = '0x1761'
   VAR i
   VAR Chest = '0x4001573A'
   VAR nitki = '0x4000F690'
   For i = 0 To 3
Repeat
If UO.Count( Cloth[i] ) == 0 Then
UO.FindType( Cloth[i], '-1', Chest )    # FoR TesT!!!!
  If UO.FindCount() > 0 Then
UO.MoveItem( 'finditem' )
wait(1000)
Endif
Endif
UO.WaitMenu('Cloth','Clean Bandages')
wait (1000)
uo.waittargettype(Cloth[i])
uo.useobject( nitki )
wait (1000)
UO.DeleteJournal()
while not (UO.InJournal("You put") or UO.InJournal("Tailoring failed"))
wait(300)
wend
wait(200)
until UO.Dead()
Next
end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


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