-
Legendary
[V9.1] [INTERNATIONAL] [RNN] BandOfMight
Supported TurboHUD version: 9.x
Show an icon for Band of Might and warns with a sound when the buff expires, with the option to notify in advance (1s by default)
Download: BandOfMight.cs
Installation: Place BandOfMight.cs in "plugins\RNN\BandOfMight.cs"
Custom code (in Plugins\User\PluginEnablerOrDisablerPlugin.cs , Optional) :
Code:
Hud.GetPlugin<RNN.BandOfMight>().Enabled = true;
Hud.RunOnPlugin<RNN.BandOfMight>(plugin =>
{
plugin.ShowIcon = true;
plugin.SoundEnabled = true;
plugin.FileSound = "notification_8.wav";// File to be played. It must be in the Sounds\ folder
plugin.EarlyAlert = 1f; // You can choose to be notified in advance. Valid values: from 0 to 4. If it is zero it will notify us just when the bonus ends
plugin.BeepOption = false; // Play a beep instead of a .wav file
plugin.BeepFrecuency = 1000; // Beep Frequency
plugin.BeepDuration = 50; // Beep Duration, in milliseconds
plugin.Xpor = 0.525f; // Valid values: from 0 to 1 . To set the x coordinate of the icon
plugin.Ypor = 0.452f; // Valid values: from 0 to 1 . To set the y coordinate of the icon
plugin.SizeMultiplier = 0.45f; // Icon Size Multiplier
} );
Last edited by RNN; 12-25-2019 at 11:47 AM.
Reason: Bug when SoundEnabled= false. Fixed
-
Post Thanks / Like - 7 Thanks
-
Legendary
I have been asked for an icon for Berserker, I add it here as an extra: Berserker.cs
If you copy this plugin with another name and edit the lines 8,54 (change the word Berserker) and 77,78,79 (powersno,powerindex,textureid. Plugin ([V9.0] [ENG] [RNN] MyBuffs) can help) it is possible to easily create an icon for buffs of other skills.
For items modify 8,54 (change the word Berserker) and 77,78,80,81 (powersno,powerindex,snoItem and powersno4cd). textureid will be ignored if snoItem is different from null. To find out snoItem Read interfaces\controllers\sno\ISnoItemList.cs . For example, for the chilanik belt it would look like this:
Code:
powersno = 318821; // Buff Chilanik
powerindex = 1; // Buff Chilanik
textureid = 0; // ignored value
snoItem = Hud.Sno.SnoItems.Unique_BarbBelt_101_x1; // Item Chilanik. It will be used to get the item Texture
powersno4cd = 375483; // Buff Warcry, for Chilanik. It will be used to get the cooldowns
Update
Added Cooldown (if the buff is of a skill) and Showstacks (default value is false)
Update
Added snoItem and powersno4cd.
Last edited by RNN; 12-30-2019 at 09:51 AM.
Reason: Added snoItem and powersno4cd
-
Post Thanks / Like - 5 Thanks
-
Member
Hey RNN,
Thanks in advance for your support. I put the file in /Plugin/RNN folder, but the buffs wasn´t show. Could you help me?
-
Legendary
Requirements:
- Download the file directly to the plugins\RNN folder (avoid copy/paste)
- Have the Band of Might ring equipped (or in the kanai cube)
- Not being in town
- Activate the ring with any of the 3 skills mentioned in the item description
-
Member
Good plugin!! But i want to chilanik's chain 10second increase speed buff icon.
Im sorry, could help me?
-
Legendary
I think you ask for something like this:
plugins\RNN\Chilanik.cs
Modify Xpor, Ypor, SizeMultiplier ... according to your needs.
I will upload an update of Berserker.cs in a few minutes to improve the creation of icons for items with legendary powers
Last edited by RNN; 12-30-2019 at 08:57 AM.
-
Post Thanks / Like - 3 Thanks
-
Member
Seems to be an issue with the pastebin, can someone post the cs source here?