Jump to content

Help for custom spell that applies charges one at a time [solved]

By Atraxian
in General

Recommended Posts

Hi, I was wondering if in Azerothcore, 3.3.5a was possible to make a custom spell that works in this way:

- Passive spell with a proc effect.
- On proc, it adds a a single charge of an aura that uses charges (like Inner Fire).

My idea was to create the passive that generates charges 1 by 1 that are then used by another spell.

At the moment I managed to do something like this:
- Passive spell has a triggered effect that applies 1 aura on the character when I cast a custom spell. In order to do that I had to insert an appropriate line in the Spell_Proc_Event table inside of the database.
Problem is that if I make the aura similar to Inner Fire, when it is applied to the character it will automatically apply the maximum number of charges.

I tried to use the Spell_Proc table instead of the Spell_Proc_Event table since it has a specific column for charges, but for the life of me, it seems I can't get the passive spell to proc that way.

Thank you in advance.

PS: Alternatively, I tried to use a regular aura without charges, but that stacks up to a maximum number, but I would need to have a spell that removes the stacks one by one which I don't really know how to implement.

 

EDIT:

Solved, sort of...

To simplify things I used the Warlock and Soul Shards.

1) I modified the soul shards in order to make them stackable and made them into keyring items (so they won't clutter the inventory).

2) Similar to how "Lovely Charm Collector's Kit" has a passive spell that is always active as long as you have it in your inventory, I added a passive spell to the Soul Shards. At the moment it is just a dummy aura, but you can actually add effects to it.

3) I modified a Shadowbolt spell to use Soul Shards as reagents.

Then I wanted to be able to cast Shadowbolt even without having Soul Shards in my inventory, in order to do that:

4) I created a passive spell that removes the reagent requirement of Shadow Bolt (similar to how Glyph of Unburdened Rebirth works) and taught it to the Warlock.

5) I added two lines in the database at the table "Spell_Linked_Spell" one line allows the Soul Shard aura to automatically remove the reagent free aura and the second reactivates the reagents free aura as soon as the Soul Shard aura is removed from the character (when you no longer have soul shards in your inventory).

Tnis way what happens is that as long as I have soul shards in my inventory, shadowbolt will consume them when cast, but as soon as I don't have them, it becomes reagents free.
This "solution" does not give you multiple stacks of a buff to keep track of how many "charges" you have, but at least gives you a number to track the available reagents in the spellbar, so it still works out.

Link to comment
Share on other sites

×
×
  • Create New...