Jump to content
Existing

Auto delete soul shard script / macro

Recommended Posts

I was annoyed by too many soul shards in my bags. 

I wasn't satisfied with the existing macros so i mad my own one. 

This macro will run through all items in all your bags and delete soul shards over your defined threshold. 

For this macro to work you need the addon "Super Macro".

After the addon in installed create a new macro. 

Add this code in the right text area (extended lua code):

function delShards(number) i=1; for bag = 0,4,1 do for slot = 1, GetContainerNumSlots(bag), 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name,"Soul Shard") then if i > number then DEFAULT_CHAT_FRAME:AddMessage("Deleting "..name.." "..i); PickupContainerItem(bag,slot); DeleteCursorItem(); end; i=i+1; end; end; end; end;

Add this code to the left text area:

/script delShards(5)

In this example all shard above 5 will be deleted. You can enter any number there.

You even can combine the code on the left with a spell if you want.

Like this:

/cast Drain Soul(Rank 1)
/script delShards(5)

This casts Drain Soul and deletes a shard at the same time.

Here is an example of how it should look like with a different macro tho:

 3z3grwp.png 

Hope this helps someone.

Greetings

Share this post


Link to post
Share on other sites

Much easier to just install Necrosis addon and set it to your desired treshhold. I set it to put all the shards in the last bag and if it's full delete new shards.

Share this post


Link to post
Share on other sites

post from my guide on nost (https://forum.nostalrius.org/viewtopic.php?f=40&t=14455)

 

The following is your Drain Soul Macro. This is what you will use in place of Drain Soul once you get a soul shard bag. It will delete the item (soul shard) in the bottom right corner of your left most bag, which normally would be our soul shard bag. If the bag is not full, it wont delete anything. You should be using this macro/spell to kill every mob you are fighting. This will give you a nice 10 second buff that will give you a nice little chunk of mana. 

/cast Drain Soul(Rank 1)
/run local a=GetBagName(4); if a=="Core Felcloth Bag" or a=="Felcloth Bag" or a=="Soul Pouch" or a=="Box of Souls" or a=="Small Soul Pouch" then PickupContainerItem(4,GetContainerNumSlots(4)) DeleteCursorItem() else end

Edited by Xashe
link

Share this post


Link to post
Share on other sites

Hi Xashe, 

yeah that is a pretty common macro i found in several places. 

The problem i had with it is that it only deletes soul shards from "soul shard bags". My macro deletes them no matter in what bag and also allows you to specify how many shard you want to keep. This is especially useful when you don't have a soul shard bag.

btw, thx for the guide. I use it all the time, pretty great resource!

Edited by Existing

Share this post


Link to post
Share on other sites
On 2/1/2017 at 2:51 PM, Soullock said:

Much easier to just install Necrosis addon and set it to your desired treshhold. I set it to put all the shards in the last bag and if it's full delete new shards.

+1, Not a bad macro tho, for those that dont want to use necrosis.

Share this post


Link to post
Share on other sites

This is magnificent. Thank you. I like others cannot get Necrosis to load for whatever reason no matter what version of the addon I use. But this supermacro solution works perfectly and doesn't force you to use a soul bag. So its absolutely flawless.

Share this post


Link to post
Share on other sites

Is there a way to change Necrosis from using the whole last bag as Soulshard container?
Especially for leveling or grinding i dont need more than 2-4 Soulshards.

Greetings 

Share this post


Link to post
Share on other sites
3 minutes ago, emuwow said:

Is there a way to change Necrosis from using the whole last bag as Soulshard container?
Especially for leveling or grinding i dont need more than 2-4 Soulshards.

Greetings 

You can set how many shards to keep. Ofc you can't use a soul bag then if you want other stuff in the bag.

Share this post


Link to post
Share on other sites
4 minutes ago, TheDruidCode said:

You can set how many shards to keep. Ofc you can't use a soul bag then if you want other stuff in the bag.

On second thought I think I'm wrong. Haven't warlocked in a while. Sorry for that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×