Haven't seen this anywhere around this warlock subsection and I thought it would be worth sharing for fellow warlocks that might not know of them.
Destroying a single shard:
Code:
/run i="Soul Shard"d=1 for x=0,4 do for y=1,GetContainerNumSlots(x) do if (d>0) then l=GetContainerItemLink(x,y) if l and GetItemInfo(l)==i then PickupContainerItem(x,y) DeleteCursorItem() d=d-1 end end end end
Destroy all but a specified number of shards:
Code:
/run i="Soul Shard"d=GetItemCount(i)-20 for x=0,4 do for y=1,GetContainerNumSlots(x) do if (d>0) then l=GetContainerItemLink(x,y) if l and GetItemInfo(l)==i then PickupContainerItem(x,y) DeleteCursorItem() d=d-1 end end end end
Change the "20" in "d=GetItemCount(i)-20" to set the number of shards you want to carry.