Yoko

All sides of Injection
It is currently 2026-02-06 09:31:09

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2008-12-12 04:33:05 
Offline

Joined: 2008-12-12 04:30:22
Posts: 89
sub Loot()
VAR i,Exit
DIM Loot[6]
Loot[0]=0x0EED
Loot[1]=0x1bfb
UO.SetReceivingContainer('backpack')
For i=0 to 53
Exit=0
repeat
UO.FindType(Loot[i],-1,'ground')
if UO.GetQuantity('finditem') then
UO.Grab('0','finditem')
wait(500)
Else
Exit=1
endif

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


Вот скрипт подскажите что не правильно плиз! =)


Top
   
 Post subject:
PostPosted: 2008-12-12 07:01:59 
Offline
User avatar

Joined: 2008-09-12 05:07:34
Posts: 247
массив задан на 6 значений DIM Loot[6]
реально там присутствует только 2 значения
Loot[0]=0x0EED
Loot[1]=0x1bfb
а опрашивается 54 значения For i=0 to 53
короче эту строчку For i=0 to 53
сделай такой For i=0 to 1


Top
   
PostPosted: 2008-12-22 09:52:36 
Offline

Joined: 2008-12-12 04:30:22
Posts: 89
Все работает на ура, спасибо =)


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:  
Powered by phpBB® Forum Software © phpBB Limited