Yoko
http://forum.yoko.com.ua/

Проблемка млин...
http://forum.yoko.com.ua/viewtopic.php?f=3&t=7588
Page 1 of 1

Author:  jin [ 2006-05-06 14:06:04 ]
Post subject:  Проблемка млин...

Ребят, подскажите, лутить должно в радиусе двух тайлов от себя... а не лутит :(((

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

Author:  Scripts Writer [ 2006-05-06 14:38:43 ]
Post subject:  Re: Проблемка млин...

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


пробуй

Author:  jin [ 2006-05-06 15:08:05 ]
Post subject:  Re: Проблемка млин...

You Must Die wrote:
sub Loot()
uo.Set('finddistance','2')
...........

пробуй

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/