Yoko

All sides of Injection
It is currently 2025-10-16 01:04:30

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2009-10-29 18:01:44 
Offline

Joined: 2009-09-27 22:26:33
Posts: 22
пишет ошибка линии 31 в чем дело не пойму

Code:
sub Loot()
   VAR i,Exit
   DIM Loot[20]

Loot[0]=0x0EED ; gp
Loot[1]=0x0F7B ; BM
Loot[2]=0x0F7A ; BP
Loot[3]=0x0F84 ; GA
Loot[4]=0x0F85 ; GI
Loot[5]=0x0F86 ; MR
Loot[6]=0x0F88 ; NS
Loot[7]=0x0F8C ; SA
Loot[8]=0x0F8D ; SS
Loot[9]=0x13FA ;two handed axe
Loot[10]=0x1413 ;arm
Loot[11]=0x1415 ;arm
Loot[12]=0x1411 ;arm
Loot[13]=0x1410 ;arm
Loot[14]=0x1414 ;arm
Loot[15]=0x0E21 ;ban
Loot[16]=0x0F78 ;batw
Loot[17]=0x0F8B ;pumise
Loot[18]=0x0F7E ;Kosti
Loot[19]=0x0F3F ;Streli

UO.SetReceivingContainer('0x42916607') ;ID backpacka

   For i=0 to 20
      Exit=0
      repeat
       UO.FindType(Loot[i],-1,'lastcontainer')
        if UO.GetQuantity('finditem') then
         UO.Grab('0','finditem')
          wait(100)
          Else
         Exit=1
        endif
      until Exit==1 OR uo.injournal("loot")
   Next
UO.UnSetReceivingContainer()
end sub


Top
   
 Post subject:
PostPosted: 2009-10-29 21:36:20 
Offline

Joined: 2009-09-27 22:26:33
Posts: 22
проблему решил спасибо синтрону ))


Top
   
 Post subject:
PostPosted: 2009-10-29 22:59:11 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
В цикле обходишь больше элементов, чем объявлено.


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