-
Member
Buff FD on ExpBar
Hi!
Can anyone help me, please, show Flying Dragon buff in exp bar on AttackSpeed Panel?
-
Savvy ? 🐒
PHP Code:
Hud.RunOnPlugin<AttributeLabelListPlugin>(plugin =>
{
var dpsDecorator = plugin.LabelList.LabelDecorators[2];
dpsDecorator.TextFunc = () =>
{
var dps = Hud.Game.Me.Offense.SheetDps * (Hud.Game.Me.Powers.BuffIsActive(246562, 1) ? 2 : 1);
return ValueToString(dps, ValueFormat.ShortNumber);
};
var apsDecorator = plugin.LabelList.LabelDecorators[3];
apsDecorator.TextFunc = () =>
{
var aps = Hud.Game.Me.Offense.AttackSpeed * (Hud.Game.Me.Powers.BuffIsActive(246562, 1) ? 2 : 1);
return aps.ToString("F2", System.Globalization.CultureInfo.InvariantCulture) + "/s";
};
});
If you don't know what to do with this code : Default theme customization 101
Last edited by JackCeparou; 03-29-2017 at 10:41 AM.
Reason: code fix
-
won't this result a nullref exception?
-
Savvy ? 🐒
Originally Posted by
KillerJohn
won't this result a nullref exception?
True, i rushed it too fast ^^
Only tested on my monk who has the item ^^'
Edit : fixed.
Last edited by JackCeparou; 03-28-2017 at 04:48 PM.
-
Member
Thanks, but this is work incorrect
It simple always *2 AS on bar:
-
Savvy ? 🐒
Totally forgot the icon...
Code snippet re-fixed ^^'
-
Post Thanks / Like - 1 Thanks
denismax7 (1 members gave Thanks to JackCeparou for this useful post)
-
Member
Its working! BIG thanks!!!