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

Подкорректируйте скрипт на обработку хлопка плиз
http://forum.yoko.com.ua/viewtopic.php?f=20&t=5158
Page 1 of 1

Author:  Mihail [ 2005-09-13 13:39:56 ]
Post subject:  Подкорректируйте скрипт на обработку хлопка плиз

скрипт должен просить указать прялку, сундук - из которого брать хлопок и в который складывать нитки, на практики же скрипт просто берет по 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

Author:  Mihail [ 2005-09-15 21:10:13 ]
Post subject: 

ну народ не ленитесь..

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