If you want to make Arrows and Bullets Auto-Equip after they have been restocked:
if (.@qu){
.@ru = restkid;
++ if (getiteminfo(.@ru, ITEMINFO_TYPE) == 10) autoequip(.@ru, 1);
restock_item(.@ru,.@qu,.@fr);
if (.@fr == 1) .@from$ = "Storage";
if (.@fr == 2) .@from$ = "Guild Storage";
sleep2 500;
if (countitem(.@ru) == 0) {
announce "Trying to restock "+.@qu+"x "+.@ru+" from "+.@from$+". Failed. Amount does not fit.",bc_self,0xFF8F01;
}
++ if (getiteminfo(.@ru, ITEMINFO_TYPE) == 10) autoequip(.@ru, 0);
restkid = 0;
}