API:UseEquipmentItem

Uses currently equiped items.

Arguments

 * equipmentslotid
 * number - The equipment slot number ie. 10 = ranged weapon

Returns

 * None

Example
Uses currently equiped items, slot 10 is ranged weapon slot. If you have the Rune Catapult bow using this code will give you a stack of Runic Thorn arrows.

I couldn't think of other uses for this function except this.