Crisis , the way it flow, it will scan and kept a count. so no loop is required. Are you sure you are the right ID for the trash can.
Have a look at this.
sub ClearPackGarbage
menu delete scriptstatus
Menu Font BGColor Black
menu Font Color Lime
menu text scriptstatus 95 100 Clearing Pack of Garbage
finditem %Garbage C_ , #backpackid
if #findcnt > 0
{
for %i 1 #findcnt
{
finditem %Garbage C_ , #backpackid
exevent drag #findid #findstack
wait 10
exevent dropc %Trashbarrel
wait 10
}
}
return
or maybe this if all the bows are the same colour
sub ClearPackGarbage
menu delete scriptstatus
Menu Font BGColor Black
menu Font Color Lime
menu text scriptstatus 95 100 Clearing Pack of Garbage
finditem %Garbage C_ , #backpackid
for #findindex 1 #findcnt
{
if #findcol <> 0
{
exevent drag #findid #findstack
wait 10
exevent dropc %Trashbarrel
wait 10
}
}
return