-
Active Member
[INTERNATIONAL][Psycho] ShrineLabelsPlugin
Place in Plugins/Psycho/ShrineLabelsPlugin.cs
Code:
Hud.RunOnPlugin<Psycho.ShrineLabelsPlugin>(plugin =>
{
//Enable Healing Well Example
plugin.ShowHealingWells = true;
//Enable Pool of reflection Example
plugin.ShowPoolOfReflection = true;
//Change Pylon Short Name Example
plugin.ShrineCustomNamesShort[ShrineType.BanditShrine] = "**BANDIT**";
//Change Pylon Minimap Name Example
plugin.ShrineCustomNames[ShrineType.BanditShrine] = "OMG A BANDIT SHRINE";
//Change Pylon Minimap Decorator Example
//CreateMapDecorators(Font Size, Saturation(0-255), Red(0-255), Green(0-255), Blue(0-255), Radius Offset)
plugin.ShrineDecorators[ShrineType.BanditShrine] = plugin.CreateMapDecorators(8,255,255,0,0,5);
//Change Pylon Ground Label Decorator Example
//CreateGroundLabelDecorators(Font Size, Saturation(0-255), Red(0-255), Green(0-255), Blue(0-255), Bg Saturation(0-255), Bg Red(0-255), Bg Green(0-255), Bg Blue(0-255) )
plugin.ShrineShortDecorators[ShrineType.BanditShrine] = plugin.CreateGroundLabelDecorators(8,255,255,0,0,255,0,0,0);
});
Last edited by PsychoPyro202; 03-26-2017 at 08:42 AM.
-
Post Thanks / Like - 9 Thanks
-
Savvy ? 🐒
-
Post Thanks / Like - 1 Thanks
PsychoPyro202 (1 members gave Thanks to JackCeparou for this useful post)
-
Member
copied this (raw data) and it is not working. what am i doing wrong?
-
Contributor
-
Savvy ? 🐒
Originally Posted by
cherouvim13
copied this (raw data) and it is not working. what am i doing wrong?
Exception message ?
-
Member
No exception, i am just standing beside a normal shrine (not inside rift) with the plugin in the folder and it is not showing the shrine's name in the minimap
-
Active Member
Dumb question here, but are your mobs showing up on the minimap? Some errors will not display an exception message in the bottom left and disable all overlays but will generate very lengthy error logs.
If things are working except for this plugin... Please make sure you placed this file under Plugins/Psycho/ShrineLabelsPlugin.cs
Last edited by PsychoPyro202; 03-26-2017 at 06:50 PM.
-
Member
Dear Psycho,
Everything else seems in order, mobs are appearing in the minimap normally, I have also plugins from Jacks (the dangerous monster affixes and doors plugins) and no issues
I have placed the .cs as you have mentioned in the appropriate folder and nothing.
Maybe I should make 2 .cs files? because the one I see here is shorter than the one from your link's raw data.
-
Member
I have used the TCT customization tool and it worked. Weird..
-
Active Member
Ohhhh, ok. Delete the first cs file you made. Use the data from the link ONLY. And you will be good to go. The code block in the op is for configuration of the plugin.
-
Contributor
Psycho forgive but I allowed myself to add TTS to your plugin
Code:
//Under public bool ShowPoolOfReflection { get; set;} add
public bool EnableSpeak { get; set; }
//Inside ShrineLabelsPlugin add EnableSpeak = false; like under
public ShrineLabelsPlugin()
{
Enabled = true;
EnableSpeak = false;
}
//After this 2 line
if (shrine.Type == ShrineType.HealingWell && ShowHealingWells == false) continue;
if (shrine.Type == ShrineType.PoolOfReflection && ShowPoolOfReflection == false) continue;
// add this lines
if (EnableSpeak && (shrine.LastSpeak == null) && Hud.LastSpeak.TimerTest(5000))
{
Hud.Speak(shrine.SnoActor.NameLocalized);
shrine.LastSpeak = Hud.CreateWatch();
shrine.LastSpeak.Restart();
}
Inside Hud.RunOnPlugin<Psycho.ShrineLabelsPlugin> add plugin.EnableSpeak = true; like under
Code:
Hud.RunOnPlugin<Psycho.ShrineLabelsPlugin>(plugin =>
{
//Enable TTS
plugin.EnableSpeak = true;
//Enable Healing Well Example
plugin.ShowHealingWells = true;
//Enable Pool of reflection Example
plugin.ShowPoolOfReflection = true;
//Change Pylon Short Name Example
plugin.ShrineCustomNamesShort[ShrineType.BanditShrine] = "**BANDIT**";
//Change Pylon Minimap Name Example
plugin.ShrineCustomNames[ShrineType.BanditShrine] = "OMG A BANDIT SHRINE";
//Change Pylon Minimap Decorator Example
//CreateMapDecorators(Font Size, Saturation(0-255), Red(0-255), Green(0-255), Blue(0-255), Radius Offset)
plugin.ShrineDecorators[ShrineType.BanditShrine] = plugin.CreateMapDecorators(8,255,255,0,0,5);
//Change Pylon Ground Label Decorator Example
//CreateGroundLabelDecorators(Font Size, Saturation(0-255), Red(0-255), Green(0-255), Blue(0-255), Bg Saturation(0-255), Bg Red(0-255), Bg Green(0-255), Bg Blue(0-255) )
plugin.ShrineShortDecorators[ShrineType.BanditShrine] = plugin.CreateGroundLabelDecorators(8,255,255,0,0,255,0,0,0);
});
-
Post Thanks / Like - 2 Thanks
-
Member
Where do I add code from the topic header?
Inside the file [C#] using Turbo.Plugins.Default; using System.Collections.Generic; using System.Li - Pastebin.com ? At the beginning or end of the file?
-
Member
Originally Posted by
pumo
After you download the plugin (there's a button) after clicking the pastebin link, and saving it to "Plugins/Psycho/ShrineLabelsPlugin.cs"
Edit the ShineLabelsPlugin.cs file and paste the customization code you are referring to in the Customize() method:
public void Customize()
{
Hud.TogglePlugin<ShrinePlugin>(false);
//ADD THE CODE HERE
}
Last edited by Litespeed0; 04-11-2017 at 04:02 PM.
-
Member
Is it possible to add custom tts to this plugin, like "by the might of grayskull" for Power Pylons
-
Member
Originally Posted by
Delkim
Is it possible to add custom tts to this plugin, like "by the might of grayskull" for Power Pylons
[v7.2] [INTERNATIONAL] [Dark] ShrineAlertPlugin (Shrine TTS)