Yoko

All sides of Injection
It is currently 2024-03-29 15:37:02

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2014-10-10 11:45:46 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
Code:
sub Cloth()
   UO.Print("SELECT YOU CHEST")
   UO.Exec('addobject Chest')
   While UO.Targeting()
      Wait(300)
   Wend
   UO.Set('grabdelay',STR(GrabDelay))
   UO.UseObject('Chest')
   REPEAT
      If UO.Count(Bolts) Then
         UO.WaitTargetType(Bolts,'-1')
         UO.UseType('0x0F9E')
         UO.DeleteJournal()
         REPEAT
            Wait(300)
         Until UO.InJournal("You put") or UO.Dead()
      EndIf
      UO.FindType(Cloth,'-1','1')
      If UO.FindCount() Then
         UO.MoveItem('finditem','all','Chest')
         Wait(1000)
      EndIf
      UO.FindType(Bolts,'-1','Chest')
      While UO.GetQuantity('finditem')==0
         UO.Print("ERROR: Low quantity of the Bolts of cloth!!!")
         Wait(5000)
         UO.FindType(Bolts,'-1','Chest')
      Wend
      UO.MoveItem('finditem',CountBolts,'-1')
      Wait(1000)
   Until UO.Dead()
end sub


Top
   
PostPosted: 2014-10-10 16:22:42 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Пробуй вот так. Запускай с пустым паком.
Code:
sub Cloth()
   UO.Print("SELECT YOU CHEST")
   UO.Exec('addobject Chest')
   While UO.Targeting()
      Wait(300)
   Wend
   UO.Set('grabdelay',STR(GrabDelay))
   UO.UseObject('Chest')
   Wait(300)
   REPEAT
      UO.FindType(Bolts,'-1','Chest')
      While UO.GetQuantity('finditem')==0
         UO.Print("ERROR: Low quantity of the Bolts of cloth!!!")
         Wait(5000)
         UO.FindType(Bolts,'-1','Chest')
      Wend
      UO.MoveItem('finditem',CountBolts,'backpack')
      Wait(1000)
      If UO.Count(Bolts) Then
         UO.DeleteJournal()
         UO.WaitTargetType(Bolts)
         UO.UseType('0x0F9E')
         REPEAT
            Wait(300)
         Until UO.InJournal("You put") or UO.Dead()
      EndIf
      UO.FindType(Cloth,'-1','backpack')
      If UO.FindCount() Then
         UO.MoveItem('finditem',0,'Chest')
         Wait(1000)
      EndIf
   Until UO.Dead()
end sub

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2014-10-10 17:54:40 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
Да так на много лучше спасибо!!


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 7 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