Post by thewrs
I'm using ShardMax
to automatically delete any excess shards.
It does exactly what it says on the tin and no more, perfect for my needs.
If you're a warlock with Improved Drain Soul you'll probably find yourself generating too many shards as you use Drain Soul to get mana back at the end of a fight. This addon solves that that problem by deleting excess shards automatically. Uses ACE2.
To set a maximum limit for shards to keep
/sm max N
where N is the number of shards to keep. 0 means keep all shards.
To delete shards when bags are getting full
/sm spare N
/sm min N
Spare is the number of spare bag slots to keep free. If there are less than this number free then shards will get deleted, but will not get deleted past the minimum number to keep.
Thanks to Blixa for German translation
You can scan through his code to see how items are deleted.