как в
uo.findtype("0x09aa","0xffff","my") Прописать еше один тип для поиска, если этого зделать нельзя то как правильно пользоваться командами
IF THEN ELSE
Вот сам скрипт , несудите строго - я начинаюший.
Code: Select all
sub Box()
UO.Set('lasttarget','laststatus')
if uo.findcount(0) then
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")+1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
else
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")+1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
wait(500)
endif
if uo.findcount(0) then
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")+1),str(uo.getz("lasttarget")),"finditem")
wait(500)
else
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")+1),str(uo.getz("lasttarget")),"finditem")
endif
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
if uo.findcount(0) then
uo.drop("1",str(uo.getx("lasttarget")-1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
wait(500)
else
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")-1),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")),"finditem")
endif
if uo.findcount(0) then
uo.findtype("0x09aa" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")-1),str(uo.getz("lasttarget")),"finditem")
wait(500)
else
uo.findtype("0x0e7d" or "0x0e7d","0xffff","my")
uo.drop("1",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")-1),str(uo.getz("lasttarget")),"finditem")
endif
end sub