uo.drop help!!!
Posted: 2015-09-02 10:18:25
uo.drop How to write, put them on the table.
Code: Select all
sub zuozi() #一键原地放桌子
UO.FindType ('0x0B3c',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B3A',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B36',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B35',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B34',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
endif
endif
endif
endif
end if
UO.FindType ('0x0B3c',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B3A',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B36',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B35',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B34',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')-1,UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
endif
endif
endif
endif
end if
UO.FindType ('0x0B3c',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B3A',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B36',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B35',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B34',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')-1,UO.GetZ('self'))
wait(250)
endif
endif
endif
endif
end if
UO.FindType ('0x0B3c',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B3A',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B36',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B35',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B34',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self'),UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
endif
endif
endif
endif
end if
UO.FindType ('0x0B3c',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B3A',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B36',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B35',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B34',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self'),UO.GetZ('self'))
wait(250)
endif
endif
endif
endif
end if
UO.FindType ('0x0B3c',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B3A',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B36',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B35',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
else
UO.FindType ('0x0B34',-1,'xiaobao')
if ( UO.FindCount() > 0 ) then
UO.MoveItem('finditem','1','ground',UO.GetX('self')+1,UO.GetY('self')+1,UO.GetZ('self'))
wait(250)
endif
endif
endif
endif
end if
end sub
Code: Select all
UO.MoveItem( 'finditem', 0, 'tableID', x, y, z)