Code: Select all
sub main()
var shovel = '0x0F39'
var x1
var y
var timeout = 0
while not uo.dead()
x1 = -3
y = -3
while x1 < 4
while y < 4
uo.deletejournal()
uo.print (str(x1) + " " + str(y))
while uo.injournal ('is no ore') == 0
uo.deletejournal()
uo.usetype (shovel)
uo.waittargettile (val(uo.getx()+x1),val(uo.gety()+y),val(uo.getZ()),val(233))
timeout = 0
while uo.injournal ('ou loosen') == 0 and uo.injournal('ou put') == 0 and uo.injournal ('is no ore') == 0 and timeout < 15
wait (1000)
timeout = timeout + 1
wend
wend
y = y + 1
wend
x1 = x1 + 1
wend
uo.print ("WELL DONE")
wend
end sub
так вот! эта шваль проходится только по Y, почему она игнорирует цикл с прибавлением Х?