function useTrinkets(trinket1, trinket2)
pickUpItem(trinket1);
if CursorHasItem() then
EquipCursorItem(13);
end
ClearCursor()
pickUpItem(trinket2);
if CursorHasItem() then
EquipCursorItem(14);
end
ClearCursor()
end
function pickUpItem(item)
foundItem = false
for bag = 0, 4, 1 do
for slot = 1, GetContainerNumSlots(bag), 1 do
link = GetContainerItemLink(bag,slot);
if link then
name = gsub(link,'^.*%[(.*)%].*$','%1')
if name == item then
PickupContainerItem(bag, slot);
foundItem = true;
break
end
end
end
if foundItem == true then break end
end
end