sub Arrow()
var shafts, feathers, feathers_count, shafts_count
shafts='0x1bd4'
feathers='0x1bd1'
while uo.count(shafts)>0
UO.waittargettype(feathers)
uo.exec("drop 1")
repeat
wait (100)
until uo.countonground(feathers)<>0
uo.waittargetground(feathers)
uo.exec("waitmenu 'create' 'Arrow'")
uo.usetype(shafts)
shafts_count=uo.count(shafts)
repeat
wait (100)
until uo.count(shafts)<>shafts_count
wend
end sub