-
Legendary
[V9.1] [RNN] GoblinsPlugin
Decorators and notifications (TTS) for goblins seen by you. Includes a counter (the default position is for 1920x1080 resolution, modify xPor and yPor to change it) .
The same goblin will not be counted or reported multiple times, and if a group of goblins of the same type are detected simultaneously, the total number will be reported.
Inspired by the GLQ_GoblinPlugin plugin ( GLQ_GoblinPlugin.cs - Pastebin.com ) .I have used their decorators because I am used to them.
(For devs: the method used to account/differentiate goblins may seem absurd but it is effective, although I have not tested it with low levels (less than 70) . It is based on registering the maximum health, which is different for each goblin).
Download: GoblinsPlugin.cs
Installation: Place GoblinsPlugin.cs in "plugins\RNN\GoblinsPlugin.cs"
Custom code (in Plugins\UserPluginEnablerOrDisablerPlugin.cs , Optional) :
Code:
Hud.GetPlugin<RNN.GoblinsPlugin>().Enabled = true;
Hud.RunOnPlugin<RNN.GoblinsPlugin>(plugin =>
{
plugin.EnableSpeak = true;
plugin.MalevolentSpeak = "Malevolent Tormentor"; // null -> NameLocalized , "" -> no Speak
plugin.BloodSpeak = null; // "Blood Thief"
plugin.OdiousSpeak = null; // "Odious Collector"
plugin.GemSpeak = null; // "Gem Hoarder"
plugin.GelatinousSpeak = null; // "Gelatinous Sire"
plugin.GelatinousSplit1Speak = ""; // "" -> no Speak
plugin.GelatinousSplit2Speak = "";
plugin.GildedSpeak = null; // "Gilded Baron"
plugin.InsufferableSpeak = null; // "Insufferable Miscreant"
plugin.MenageristSpeak = null; // "Menagerist Goblin"
plugin.RainbowSpeak = null; // "Rainbow Goblin"
plugin.FiendSpeak = null; // "Treasure Fiend"
plugin.TreasureSpeak = null; // "Treasure Goblin"
plugin.DevilhandSpeak = null; // "Snitchley"
plugin.VisionSpeak = ""; // "Vision Goblin" speak when found. "" for nothing (ex. if you are installed EnmityVisionplugin)
plugin.TextVisionGoblin = "Vision Goblin"; // to differentiate it from the treasure goblins, will be used instead of namelocalized for report and decorators
plugin.ShowCounter = true; // Counter Icon
plugin.xPor = 0.324f; // To set the x coordinate of the icon
plugin.yPor = 0.850f; // To set the y coordinate of the icon
plugin.Opacity = 0.80f; // 0f..1f Opacity for icon texture
plugin.SizeMultiplier = 0.5f; // Size multiplier for icon
} );
Last edited by RNN; 04-06-2024 at 08:49 AM.
Reason: minor changes
-
Post Thanks / Like - 6 Thanks
-
Member
RNN,
I came across this nifty plugin of yours while trying to nab confirmed sno id's of goblins for use in another plugin ( Prrovoss.Popups.MonsterAppearedPopup ).
File download ( not copy / paste ).. and file move to turbohud\plugins\rnn structure...
Thud compiles fine and runs.. but if i attempt to add the customization to PluginEnablerOrDisablerPlugin.cs .. a direct copy and paste to it.. compile yields exception.
Code:
2020.12.11 09:35:35.897 20.12.9.0 error while initializing plugins
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(404,7) : error CS0103: The name 'EnableSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(406,7) : error CS0103: The name 'MalevolentSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(407,7) : error CS0103: The name 'BloodSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(408,7) : error CS0103: The name 'OdiousSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(409,7) : error CS0103: The name 'GemSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(410,7) : error CS0103: The name 'GelatinousSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(411,7) : error CS0103: The name 'GelatinousSplit1Speak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(412,7) : error CS0103: The name 'GelatinousSplit2Speak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(413,7) : error CS0103: The name 'GildedSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(414,7) : error CS0103: The name 'InsufferableSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(415,7) : error CS0103: The name 'MenageristSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(416,7) : error CS0103: The name 'RainbowSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(417,7) : error CS0103: The name 'FiendSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(418,7) : error CS0103: The name 'TreasureSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(419,7) : error CS0103: The name 'DevilhandSpeak' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(421,7) : error CS0103: The name 'ShowCounter' does not exist in the current context
2020.12.11 09:35:35.898 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(422,7) : error CS0103: The name 'xPor' does not exist in the current context
2020.12.11 09:35:35.899 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(423,7) : error CS0103: The name 'yPor' does not exist in the current context
2020.12.11 09:35:35.899 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(424,7) : error CS0103: The name 'Opacity' does not exist in the current context
2020.12.11 09:35:35.899 20.12.9.0 D:\TurboHud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(425,7) : error CS0103: The name 'SizeMultiplier' does not exist in the current context
However.. i realized your posting was missing the plugin. in the custimization referrence.. to access the
Code:
Hud.GetPlugin<RNN.GoblinsPlugin>().Enabled = true;
Hud.RunOnPlugin<RNN.GoblinsPlugin>(plugin =>
{
plugin.EnableSpeak = true;
plugin.MalevolentSpeak = "Malevolent Tormentor"; // null -> NameLocalized , "" -> no Speak
plugin.BloodSpeak = null; // "Blood Thief"
plugin.OdiousSpeak = null; // "Odious Collector"
plugin.GemSpeak = null; // "Gem Hoarder"
plugin.GelatinousSpeak = null; // "Gelatinous Sire"
plugin.GelatinousSplit1Speak = ""; // "" -> no Speak
plugin.GelatinousSplit2Speak = "";
plugin.GildedSpeak = null; // "Gilded Baron"
plugin.InsufferableSpeak = null; // "Insufferable Miscreant"
plugin.MenageristSpeak = null; // "Menagerist Goblin"
plugin.RainbowSpeak = null; // "Rainbow Goblin"
plugin.FiendSpeak = null; // "Treasure Fiend"
plugin.TreasureSpeak = null; // "Treasure Goblin"
plugin.DevilhandSpeak = null; // "Snitchley"
plugin.ShowCounter = true; // Counter Icon
plugin.xPor = 0.318f; // To set the x coordinate of the icon
plugin.yPor = 0.850f; // To set the y coordinate of the icon
plugin.Opacity = 0.80f; // 0f..1f Opacity for icon texture
plugin.SizeMultiplier = 0.5f; // Size multiplier for icon
} );
Just a heads up..
Last edited by LazyDruid; 04-26-2021 at 08:05 PM.
-
Post Thanks / Like - 2 Thanks
RNN,
sokolsu (2 members gave Thanks to LazyDruid for this useful post)
-
Legendary
-
Post Thanks / Like - 1 Thanks
LazyDruid (1 members gave Thanks to RNN for this useful post)
-
Member
-
Member
RNN, noticed a small typo in the first couple of strings of code. Not sure how big of a difference it would make if any.
Rnn2.png
-
Legendary
reuploaded
Update
bugs fixed, and changes for compatibility