Yoko

All sides of Injection
It is currently 2024-03-29 13:10:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2015-05-10 15:45:25 
Offline

Joined: 2015-02-21 10:24:12
Posts: 5
Народ подскажите плиз как написать чтоб искал руду в паке и выкладывал в стеки на земле по цвету?

sub drop()
if uo.waiting() then
uo.canceltarget()
endif
UO.Set('finddistance',2)
VAR ore1,ore2,orecolor
repeat
UO.FindType(0x19B9)
if UO.GetQuantity('finditem')>0 then
ore1=UO.GetSerial('finditem')
orecolor=UO.GetColor('finditem')
UO.FindType(0x19B9, orecolor,'ground')
ore2=UO.GetSerial('finditem')
UO.SetReceivingContainer(ore2)
UO.Grab('0',ore1)
wait(1000)
endif
until UO.GetQuantity('finditem')==0
end sub


Top
   
PostPosted: 2015-05-10 16:31:09 
Offline

Joined: 2015-02-21 10:24:12
Posts: 5
решено:)

sub drop()
var x,y,z
if uo.waiting() then
uo.canceltarget()
endif
UO.Set('finddistance',2)
VAR ore1,ore2,orecolor
repeat
UO.FindType('0x19B9')
if UO.GetQuantity('finditem')>0 then
ore1=UO.GetSerial('finditem')
orecolor=UO.GetColor('finditem')
UO.FindType('0x19B9', orecolor,'ground')
ore2=UO.GetSerial('finditem')
x=UO.GetX(ore2)
y=UO.GetY(ore2)
z=UO.GetZ(ore2)
uo.moveitem(ore1,'0',ore2,x,y,z)
wait(1000)
endif
until UO.GetQuantity('finditem')==0
end sub


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: No registered users and 18 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