Как сделать ?

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
JaguarBlack
Posts: 2
Joined: 2006-09-06 17:51:36

Как сделать ?

Post by JaguarBlack »

Как сделать, чтоб он выкладывал вместо креста, квадрат !! То есть вместо 4 ящиков клал 8 ! И образовалась как бы коробочка, а не крест ! Спасибо !

Code: Select all

sub POPA() 
var x 
if uo.getglobal('vetki')=='1' then 
uo.print('Kto to shas obosretsa :-)') 
goto exit2 
end if 
uo.setglobal('vetki','1') 
UO.Set('lasttarget','laststatus') 
x=uo.getserial('lasttarget') 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)-1),str(uo.gety(x)),0,"finditem") 
end if 
wait(400) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)+1),0,"finditem") 
end if 
wait(500) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)+1),str(uo.gety(x)),0,"finditem") 
end if 
wait(500) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)-1),0,"finditem") 
end if 
uo.setglobal('vetki','0') 
exit2: 
uo.print('Mudilo v pope :-)') 
end sub
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

sub POPA() 
var x 
if uo.getglobal('vetki')=='1' then 
uo.print('Kto to shas obosretsa :-)') 
goto exit2 
end if 
uo.setglobal('vetki','1') 
UO.Set('lasttarget','laststatus') 
x=uo.getserial('lasttarget') 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)-1),str(uo.gety(x)),0,"finditem") 
end if 
wait(400) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)+1),0,"finditem") 
end if 
wait(500) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)+1),str(uo.gety(x)),0,"finditem") 
end if 
wait(500) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)-1),0,"finditem") 
end if
wait(500)
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)-1),str(uo.gety(x)+1),0,"finditem") 
end if 
wait(500) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)+1),str(uo.gety(x)+1),0,"finditem") 
end if 
wait(500) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)-1),str(uo.gety(x)-1),0,"finditem") 
end if 
wait(500) 
uo.findtype("0x09AA") 
if uo.findcount() then 
uo.drop("1",str(uo.getx(x)+1),str(uo.gety(x)-1),0,"finditem") 
end if 
wait(500) 
uo.setglobal('vetki','0') 
exit2: 
uo.print('Mudilo v pope :-)') 
end sub
пробуй- нетестил...
JaguarBlack
Posts: 2
Joined: 2006-09-06 17:51:36

Post by JaguarBlack »

Красавец :)) Все работает, Огромное Спасибо :)) :D
Post Reply