Кто может рассказать о Гампах?
Posted: 2006-03-15 04:29:00
Как они работают?
И как можно информацию перенисти их в уо?
И как можно информацию перенисти их в уо?
CRazych wrote:Вот после команды ,infigump можно какнить перенести из того окна что появляется в скрипт или журнал? Или на крайняк в файл записать?
Code: Select all
var t
var str = 'abcdefg'
t = str[0] #a
t = str[1] #b
t = str[5] #f
Code: Select all
sub sort()
var i,x,y.ii
if 60<x<80 then
uo.setreceivingcontainer('Bag')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
else
uo.setreceivingcontainer('Next')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
end if
end sub
CRazych wrote:А больше условий можно создать?
В плане
if (60<x) and (x<80) and (10<y) and (y<50) then
Такая конструкция работать будет?
Code: Select all
sub sort()
var i,x,y.ii
if (30<x) and (x<40) and (60<y) and (y<70)then
uo.setreceivingcontainer('Bag1')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
else
if (10<x) and (x<25) and (75<y) and (y<90)then
uo.setreceivingcontainer('Bag2')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
else
if (65<x) and (x<80) and (75<y) and (y<90)then
uo.setreceivingcontainer('Bag3')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
else
if (130<x) and (x<145) and (80<y) and (y<95)then
uo.setreceivingcontainer('Bag4')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
else
if (60<x) and (x<85) and (110<y) and (y<125)then
uo.setreceivingcontainer('Bag5')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
else
uo.setreceivingcontainer('Bag6')
uo.grab(-1,'finditem')
uo.unsetreceivingcontainer()
wait(400)
end if
end if
end if
end if
end if
end sub
Code: Select all
if (30<x) and (x<40)
Code: Select all
if (30>x) and (x<40)