Yoko

All sides of Injection
It is currently 2025-12-25 15:15:15

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-09-13 13:39:56 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
скрипт должен просить указать прялку, сундук - из которого брать хлопок и в который складывать нитки, на практики же скрипт просто берет по 20 хлопка из сундука и перетаскивает в пак независимо от всего остального.. :(

Code:
sub cotton() 
uo.print('#Select Spinning Wheel')
uo.exec('addobject SpinningWheel')
while uo.targeting()
wait(100)
wend
uo.print('#Select Container(with cotton)')
uo.exec('addobject Cont')
while uo.targeting()
wait(100)
wend
repeat
uo.findtype('0x0DF9',-1,'my')               #ищем хлопок в паке
if uo.findcount() and uo.getquantity()>1 then
uo.waittargetobject('SpinningWheel')
uo.usetype('finditem')
wait(150)
else
wait(1000)
uo.findtype('0x0DF9',-1,'Cont')
uo.unsetreceivingcontainer()
wait(1000)
uo.grab('20','finditem')
wait(1500)
uo.print('20 cotton')
end if
uo.findtype('0x0FA0',-1,'my')             #ищем нитки в паке
if uo.findcount() and uo.getquantity()>95 then
uo.setreceivingcontainer('Cont')
wait(1000)
uo.grab('0','finditem')
wait(1500)
uo.print('clear(spool)')
uo.unsetreceivingcontainer()
end if
until uo.dead()
end sub


Top
   
 Post subject:
PostPosted: 2005-09-15 21:10:13 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
ну народ не ленитесь..


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: Bing [Bot] and 3 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:  
Powered by phpBB® Forum Software © phpBB Limited