So i wanted to rework the Totemizer Routine a bit to have it working with 2 Vaal Auras.
First thing i realized was, that in the original Totemizer Routine it would cast the Auras as soon as they are available, i commented out that part and got a single Vaal Discipline Aura working with the threshold. I then bought another Vaal Discipline and tried to have 2 for better surviveability in the case 1 wouldnt be enough. Figured out this doesn't work, the routine would never cast the second Vaal Discipline. Fiddled around with the code a bit but couldn't get it running.
Next i thought i would just add a different aura, in this case Vaal Grace and give both auras a different threshold. So i copied all the Vaal Discipline code and changed it for Vaal Grace. And see, Vaal Grace being cast as intended but then i realized Vaal Discipline wouldn't be cast anymore. So i changed the values, tried this and that without success. Now, then i thought it doesn't read the threshold values correct from the GUI, so i hardcoded them into the Totemizer.cs (That's why GUI values wont work in the following Plugin). But still, It only casts Vaal Grace.
So, anyone with more coding knowledge (pushedx, Tony, DBF, exvault <3), what do i miss? Why can't i cast two different (or even two same) Vaal Auras?
I hope someone can help me out there. I think even more people, not just me, could find that addition handy.
Here's the Plugin with my little changes:
All credits to tozededao because i just messed around with his code.
First thing i realized was, that in the original Totemizer Routine it would cast the Auras as soon as they are available, i commented out that part and got a single Vaal Discipline Aura working with the threshold. I then bought another Vaal Discipline and tried to have 2 for better surviveability in the case 1 wouldnt be enough. Figured out this doesn't work, the routine would never cast the second Vaal Discipline. Fiddled around with the code a bit but couldn't get it running.
Next i thought i would just add a different aura, in this case Vaal Grace and give both auras a different threshold. So i copied all the Vaal Discipline code and changed it for Vaal Grace. And see, Vaal Grace being cast as intended but then i realized Vaal Discipline wouldn't be cast anymore. So i changed the values, tried this and that without success. Now, then i thought it doesn't read the threshold values correct from the GUI, so i hardcoded them into the Totemizer.cs (That's why GUI values wont work in the following Plugin). But still, It only casts Vaal Grace.
So, anyone with more coding knowledge (pushedx, Tony, DBF, exvault <3), what do i miss? Why can't i cast two different (or even two same) Vaal Auras?
I hope someone can help me out there. I think even more people, not just me, could find that addition handy.
Here's the Plugin with my little changes:
All credits to tozededao because i just messed around with his code.
Attachments
Last edited: