Yoko

All sides of Injection
It is currently 2025-12-03 13:47:45

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2006-05-06 14:06:04 
Offline

Joined: 2006-04-05 19:58:43
Posts: 8
Ребят, подскажите, лутить должно в радиусе двух тайлов от себя... а не лутит :(((

Code:
sub Loot() 
if uo.Waiting() then
uo.CancelTarget()
end if
var L, Exit
dim Loot[3]
   Loot[0]=0x0F09 # Стренж банки
   Loot[1]=0x0EED # Голд
   Loot[2]=0x19B9 # Руда
uo.SetReceivingContainer('Backpak')
wait(200)
for L=0 to 2
Exit=0
repeat
uo.FindType(Loot[L],'-2',"ground")
if uo.GetQuantity('finditem')>0 then
uo.Grab(STR(0),'finditem')
wait(300)
else
Exit=1
end if
until Exit==1
next
uo.UnSetReceivingContainer()
end sub


Top
   
PostPosted: 2006-05-06 14:38:43 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
jin wrote:
Ребят, подскажите, лутить должно в радиусе двух тайлов от себя... а не лутит :(((

Code:
sub Loot() 
if uo.Waiting() then
uo.CancelTarget()
end if
var L, Exit
dim Loot[3]
   Loot[0]=0x0F09 # Стренж банки
   Loot[1]=0x0EED # Голд
   Loot[2]=0x19B9 # Руда
uo.SetReceivingContainer('Backpak')
wait(200)
for L=0 to 2
Exit=0
repeat
uo.FindType(Loot[L],'-2',"ground")
if uo.GetQuantity('finditem')>0 then
uo.Grab(STR(0),'finditem')
wait(300)
else
Exit=1
end if
until Exit==1
next
uo.UnSetReceivingContainer()
end sub




Code:
sub Loot() 
uo.Set('finddistance','2')
if uo.Waiting() then
uo.CancelTarget()
end if
var L, Exit
dim Loot[3]
   Loot[0]=0x0F09 # Стренж банки
   Loot[1]=0x0EED # Голд
   Loot[2]=0x19B9 # Руда
uo.SetReceivingContainer('Backpak')
wait(200)
for L=0 to 2
Exit=0
repeat
uo.FindType(Loot[L],'-2',"ground")
if uo.GetQuantity('finditem')>0 then
uo.Grab(STR(0),'finditem')
wait(300)
else
Exit=1
end if
until Exit==1
next
uo.UnSetReceivingContainer()
end sub


пробуй


Top
   
PostPosted: 2006-05-06 15:08:05 
Offline

Joined: 2006-04-05 19:58:43
Posts: 8
You Must Die wrote:
sub Loot()
uo.Set('finddistance','2')
...........

пробуй

ОГРОМНОЕ Спасибо :)


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