-
Legendary
[V9.1] [INTERNATIONAL] [RNN] TimeLeftSkillBar
Supported TurboHUD version: 9.x
Shows the remaining time (duration) of the buff associated with each of the skills.
This is a simplified description, there can really be several timelefts related to the buff and this plugin selects 1 of them following certain criteria and subsequent adjustment.
In some cases it may require some modification because I have not thoroughly checked all the skills.
Download: TimeLeftSkillBar.cs
Installation: Place TimeLeftSkillBar.cs in "plugins\RNN\TimeLeftSkillBar.cs"
Last edited by RNN; 03-31-2020 at 12:24 PM.
Reason: Corrected index for Soul Harvest
-
Post Thanks / Like - 13 Thanks
AffaBanana,
Mugatuu,
731113,
JollyTex,
BeeAntOS,
Pe1a0,
takayo72,
mois,
rogue00722,
llllll5749,
profredseries,
TobiaSBooN,
NiGHTsC (13 members gave Thanks to RNN for this useful post)
-
Active Member
I noticed the buff Soul Harvest for WD would persist for 30secs after it expires (IconIndex: 4) - So i decided to put it in the Exlusions section. Seems to be working well
Code:
{ 67616, new List<int>{4} }, // Soul Harvest (WD)
Last edited by Jembo; 03-31-2020 at 11:42 AM.
-
Post Thanks / Like - 1 Thanks
RNN (1 members gave Thanks to Jembo for this useful post)
-
Legendary
You are right, thanks. I have already corrected it.
As there does not seem to be any other interesting index I have added it to FixedIndex
Code:
{ 67616, 0}, //Soul Harvest (WD) // or exclude 4
-
Post Thanks / Like - 1 Thanks
Jembo (1 members gave Thanks to RNN for this useful post)
-
Active Member
Hey RNN, do you think it would be possible to change Fist of the Heavens for the Crusader from showing how long the Fissure rune last to instead show *(stacks) + Duration* of the Aegis of Valor 4pc Damage Reduction buff ?
-
Legendary
Not the purpose of this plugin (show the Timeleft of the power associated with the skill).
If you want to see an icon under your character with that information, add this to file PluginEnablerOrDisablerPlugin.cs
Code:
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin => {
plugin.BuffPainter.ShowTimeLeftNumbers = true;
plugin.RuleCalculator.Rules.Add(new BuffRule(483655) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = true }); //P67_ItemPassive_Unique_Ring_949
} );
-
Active Member
Hey RNN, would it possible to hide storm armour/magic weapon buffs if Archon buff is active: 134872 (2) Archon Buff.png
Last edited by Jembo; 08-09-2020 at 10:26 AM.
-
Legendary
Originally Posted by
Jembo
Hey RNN, would it possible to hide storm armour/magic weapon buffs if Archon buff is active: 134872 (2)
Archon Buff.png
I think it should not happen because the plugin uses:
Code:
foreach (var skill in Hud.Game.Me.Powers.CurrentSkills)
try:
change line 143
Code:
else { buff = skill.Buff; }
to
Code:
else { buff = Hud.Game.Me.Powers.AllBuffs.FirstOrDefault(b => b.SnoPower.Sno == skill.CurrentSnoPower.Sno ); }
and if you want to see the archon timeleft in the first icon you can do this: Add to "ReplaceSno" {392883, 134872},
Last edited by RNN; 08-09-2020 at 12:58 PM.
-
Post Thanks / Like - 1 Thanks
Jembo (1 members gave Thanks to RNN for this useful post)
-
Active Member
Hey RNN, bit of an odd one: Would it be possible to change when this rune is selected DemonHunter_MarkedForDeath Rune: 2 (Valley of Death) - 130738 IconIndex: 3
Timer from 30secs to 15secs due to the Valley of Death only lasting 15secs ?
-
Legendary
There is no specific index for that rune, the only way is to subtract 15 from the time remaining when you are using it.
You can do the math mentally or if you prefer, change these lines of code (147-153):
Code:
if (FixedIndex.TryGetValue(buff.SnoPower.Sno, out var index)) // Por si queremos fijar el índice para determinadas habilidades.
{
if (buff.TimeLeftSeconds[index] > 0)
{
TimeLeftDraw( skill.Key, buff.TimeLeftSeconds[index]);
}
}
Code:
if (FixedIndex.TryGetValue(buff.SnoPower.Sno, out var index)) // Por si queremos fijar el índice para determinadas habilidades.
{
var timeleft = (skill.CurrentSnoPower.Sno == 130738 && skill.Rune == 2)? buff.TimeLeftSeconds[index] - 15: buff.TimeLeftSeconds[index]; // or buff.SnoPower.Sno == 130738
if (timeleft > 0)
{
TimeLeftDraw( skill.Key, timeleft);
}
}
Last edited by RNN; 09-01-2020 at 03:37 AM.
-
Post Thanks / Like - 1 Thanks
Jembo (1 members gave Thanks to RNN for this useful post)
-
Active Member
Hey RNN, was wondering if it's possible to change the Rain of Vengeance skill to instead show the 10second buff from the Natalya's Vengeance 6pc set *434964 [1]* when it is equipped and active. Instead of currently showing the Dark Cloud rune which last 8seconds. Thanks
RaidOfVengeance6pc.png
Last edited by Jembo; 12-12-2020 at 07:03 AM.
-
Legendary
You could add in ReplaceSno:
-
Post Thanks / Like - 1 Thanks
Jembo (1 members gave Thanks to RNN for this useful post)
-
Member
This is another dead addon/plug in - when going to the pastebin to download - "Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it."