-
Legendary
[V9.x] [RNN] TheFellowshipOfThePotion
Shows information about potions in season 28 (cooldown, power, circles)
Installation: Place in "plugins\RNN\TheFellowshipOfThePotion.cs"
Download: TheFellowshipOfThePotion.cs
Custom code (in Plugins\User\PluginEnablerOrDisablerPlugin.cs , is Optional) :
Code:
Hud.GetPlugin<RNN.TheFellowshipOfThePotion>().Enabled = true;
Hud.RunOnPlugin<RNN.TheFellowshipOfThePotion>(plugin =>
{
plugin.OffsetX = 2.55f; // To set the x coordinate of the icon (OffsetYX * Portrait Width)
plugin.OffsetY = 0.50f; // To set the y coordinate of the icon (OffsetYX * Portrait Height)
plugin.Opacity = 0.75f; // 0f..1f Opacity for icon texture
plugin.SizeMultiplier = 0.65f; // Size multiplier for icons
plugin.swapTexturePotion = true; // Change the texture when you get a buff from the potion.
plugin.notifyPotionPower = true; // Notify when you get potion power
plugin.msgPotionPower = "Potion Power"; // message for notify
} );
--------------------------------------
If you only want the potion for yourself
Installation: Place in "plugins\RNN\MyPreciousPotion.cs"
Download: MyPreciousPotion.cs
Custom code (in Plugins\User\PluginEnablerOrDisablerPlugin.cs , is Optional) :
Code:
Hud.GetPlugin<RNN.MyPreciousPotion>().Enabled = true;
Hud.RunOnPlugin<RNN.MyPreciousPotion>(plugin =>
{
plugin.OffsetX_Me = 0.55f; // 0f..1f To set the x coordinate of the icon (OffsetX_Me * Hud.Window.Size.Width)
plugin.OffsetY_Me = 0.505f; // 0f..1f To set the y coordinate of the icon (OffsetY_Me * Hud.Window.Size.Height)
plugin.Opacity = 0.75f; // 0f..1f Opacity for icon texture
plugin.SizeMultiplier = 0.75f; // Size multiplier for icons
plugin.swapTexturePotion = true; // Change the texture when you get a buff from the potion.
plugin.notifyPotionPower = true; // Notify when you get potion power
plugin.msgPotionPower = "My Precious"; // message for notify
} );
--------------------------
One Potion to rule them all, One Potion to find them, One Potion to bring them all, and in the darkness bind them
Last edited by RNN; 03-07-2023 at 09:04 AM.
Reason: fixed bug
-
Post Thanks / Like - 6 Thanks
-
Legendary
Update
added notification for power , added plugin variant
-
Legendary
Update
Added Counter for powers you've had in Rifts
-
Active Member
Excellent Plugin RNN - TYVM
I have noticed when I have the Power Potion buff active and then hit a channelling pylon, the "Potion Power" TTS announces again even when the power buff wasn't refreshed. Perhaps add a condition to only announce when Buff duration >15secs
-
Legendary
When you take a channeling, the cooldown of the potion is reset and if you have the pction on autocast it will be used again, and it can happen that you get power again, it happened to me too. Anyway, I'll look into it if it happens, even when you don't get another power.
Edit:
You're right, add an additional check to it: Hud.Game.Me.Powers.GetBuff(488072)?.TimeLeftSeconds[0] > 15
You noticed this bug because your autocast doesn't work as it should
Before using the potion it is convenient to check if you have power from a pylon, from the potion or from an echoing nightmare.
if (!Hud.Game.Me.Powers.BuffIsActive(262935,0) && !Hud.Game.Me.Powers.BuffIsActive(488072,0) && !Hud.Game.Me.Powers.BuffIsActive(486865,0) )
I'll upload the updated version in a moment
Last edited by RNN; 03-07-2023 at 08:58 AM.
-
Legendary
Update
Fixed Bug. (thanks to Jembo for reporting it)
-
Post Thanks / Like - 1 Thanks
Jembo (1 members gave Thanks to RNN for this useful post)