From: abu_jwka
Actually, there is no need for this.
Once you click the spell and then the noted item, you just wait for the runes to run out and there's no risk of equipping because the items NOTED.
The item they decide to use, be it rune arrows or leather, is up to the user. Sure you could make the script and recommend arrows, but there's no use limiting it to arrows when it can work with any noted item in a given inventory slot.
If items are noted, no risk of equipping.
Well, you can't note arrows :p All you have to do is add this to the alch loop:
if ExistsItem(Slot) then
begin
//MouseTBox(SlotBox, mouse_left);
//Whatever is done when clicking the item to alch
end else
begin
if ItemEquipped('arrows') then
MouseEquippedItem('arrows', mouse_left);
Wait(500+Random(250));
GameTab(tab_Inv);
end;
There's no function for ItemEquipped() so I whipped one up real quick:
function ItemEquipped(Which: Variant): Boolean;
var
Box: TBox;
begin
if not LoggedIn then Exit;
GameTab(tab_Equip);
Box := GetEquippedItemBounds(Which);
Result := FindColor(x, y, srl_outline_black, Box.x1, Box.y1, Box.x2, Box.y2);
end;
That should solve any issues with arrows :)
EDIT: You should set the slot to alch to 1, since unequipping the arrows will automatically place them in the first open slot.