-
Member
Rathma's Shield as BuffIcon under Toon
Hey fellow Thud'ers,
I have a little request for a snippit. I want to see the remaining duration of the Rathmas Shield passive under my toon like the Focus and Restraint.
I myself tried to get it to work and .. well ... it doesnt
Code:
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
{
plugin.RuleCalculator.Rules.Add(new BuffRule(472910) { IconIndex = 3, MinimumIconCount = 1, ShowTimeLeft = true });
});
Thats basically the code i put in the Customize function but it doesnt seem to work.
Can someone please quickly help me?
Thank you guys and have a good one.
-
Contributor
Originally Posted by
kC0pter
Hey fellow Thud'ers,
I have a little request for a snippit. I want to see the remaining duration of the Rathmas Shield passive under my toon like the Focus and Restraint.
I myself tried to get it to work and .. well ... it doesnt
Code:
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
{
plugin.RuleCalculator.Rules.Add(new BuffRule(472910) { IconIndex = 3, MinimumIconCount = 1, ShowTimeLeft = true });
});
Thats basically the code i put in the Customize function but it doesnt seem to work.
Can someone please quickly help me?
Thank you guys and have a good one.
use "IconIndex = 1"
greetz gjuz
-
Member
Doesnt that interfere with the Focus BuffIcon ?
-
Contributor
you create for each buff its own buffrule.
no it doesn't interfere
some of my own rules:
PHP Code:
// 465350 - Simulacrum
plugin.RuleCalculator.Rules.Add(new BuffRule(465350)
{ IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, });
// 465839 - Land of the Dead
plugin.RuleCalculator.Rules.Add(new BuffRule(465839)
{ IconIndex = 0, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, });
// 466857 - Bone Armor
plugin.RuleCalculator.Rules.Add(new BuffRule(466857)
{ IconIndex = 0, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, ShowStacks = true, });
// 462089 - SkeletalMage
plugin.RuleCalculator.Rules.Add(new BuffRule(462089)
{ IconIndex = 6, MinimumIconCount = 1, ShowTimeLeft = false, IconSizeMultiplier = 1.0f, ShowStacks = true, UsePowersTexture = true, });
// 476587 - NayrsBlackDeath
plugin.RuleCalculator.Rules.Add(new BuffRule(476587)
{ IconIndex = 7, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, ShowStacks = true, });
// 472910 - Rathma's Shield
plugin.RuleCalculator.Rules.Add(new BuffRule(472910)
{ IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, });
greetz gjuz
Last edited by gjuz; 12-07-2017 at 05:15 AM.
-
Member
Since obviously you know what you're doing in this framework what does that IconIndex mean and how do i find out what IconIndex to use ?
-
Contributor
each buff has some arrays off numbers, with length 32
IconIndex is the postion where to get number from the arrays.
how to get IconIndex, you have to get the data from whole arrays, use the index which match your purpose.
greetz gjuz
-
Post Thanks / Like - 1 Thanks
kC0pter (1 members gave Thanks to gjuz for this useful post)