Yoko

All sides of Injection
It is currently 2024-03-29 08:05:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2014-01-31 10:20:33 
Offline

Joined: 2006-08-06 20:13:49
Posts: 2
Подскажите, в чем тут ошибка?
Этот скрипт выкидывает стрелы из backpack в мешок, лежащий на полу.
При запуске скрипта, стрелы он перекладывает, но выдает ошибку в 9 строке.


Code:
sub strela() 
   VAR i,Exit 
   DIM Loot[1]
      Loot[0]=0x0F3F
      UO.SetReceivingContainer('0x40448BBC') ; ID Meshka na polu
     For i=0 to 1
      Exit=0
      repeat
       UO.FindType(Loot[i],-1,'backpack')           
        if UO.GetQuantity('finditem') then
         UO.Grab('0','finditem')
          wait(650)
          Else
         Exit=1
        endif
      until Exit==1 OR uo.injournal("loot")
   Next 
UO.UnSetReceivingContainer()
end sub


Top
   
PostPosted: 2014-02-06 01:09:01 
Offline
User avatar

Joined: 2012-03-20 00:32:06
Posts: 243
Location: РФ, г. Москва
TBAPb wrote:
Подскажите, в чем тут ошибка?
Этот скрипт выкидывает стрелы из backpack в мешок, лежащий на полу.
При запуске скрипта, стрелы он перекладывает, но выдает ошибку в 9 строке.


Code:
sub strela() 
   VAR i,Exit 
   DIM Loot[1]
      Loot[0]=0x0F3F
      UO.SetReceivingContainer('0x40448BBC') ; ID Meshka na polu
     For i=0 to 1
      Exit=0
      repeat
       UO.FindType(Loot[i],-1,'backpack')           
        if UO.GetQuantity('finditem') then
         UO.Grab('0','finditem')
          wait(650)
          Else
         Exit=1
        endif
      until Exit==1 OR uo.injournal("loot")
   Next 
UO.UnSetReceivingContainer()
end sub

Пробуй так...
Code:
sub strela() 
   VAR i,Exit 
   VAR Loot='0x0F3F'
      UO.SetReceivingContainer('0x40448BBC') ; ID Meshka na polu 
      Exit=0
      repeat
       UO.FindType(Loot,-1,'backpack')           
        if UO.GetQuantity('finditem') then
         UO.Grab('0','finditem')
          wait(650)
          Else
         Exit=1
        endif
      until Exit==1 OR uo.injournal("loot")
   Next 
UO.UnSetReceivingContainer()
end sub

_________________
Не быть жадным - уже богатство, не быть расточительным – доход.
TylllKaH
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"


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: Bing [Bot], Google [Bot] and 13 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