-
Member
Enmity Portal
I used a plugin that speaks when certain text shows in the chat window (ie: Rainbow goblin) so that I don't miss it when speed running thru a bounty. I've tried to add in the text that shows when a enmity portal spawns, but it doesn't seem to trigger the speaking part.
Is it because the text is coming from a different source (it appears white, like a server announcement)?
The one I have is a plugin by RNN. Any help would be greatly appreciated!
Code:
using Turbo.Plugins.Default;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Turbo.Plugins.RNN
{
public class SearchChat : BasePlugin, IChatLineChangedHandler
{
public Dictionary<string, string> SearchList { get; set; } = new Dictionary<string, string>();
private string LineaPrevia { get; set; } = string.Empty;
public bool DebugAll { get; set; } = false;
public bool DebugFound { get; set; } = false;
public SearchChat()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
SearchList.Add("enmity has fulminated", a Portal has opened"); // text to search , text to speak
SearchList.Add("engaged a Rainbow Goblin","Rainbow Rainbow Rainbow"); // text to search , text to speak
*Update
It turns out that it's NOT chat, it's something that I don't really understand. It was told to me that it would only be recognized by actor?
These are the various portals that open (seasonal):
_p76_portal_oldtristram_seasontheme = 488545,
_p76_portal_newtristram_seasontheme = 488546,
_p76_portal_graveyardact1_seasontheme = 488681,
_p76_portal_bloodpit_seasontheme = 488692,
_p76_portal_moors_sacrifice_seasontheme = 488720,
_p76_portal_boneyard_seasontheme = 488736,
_p76_portal_church_seasontheme = 488776,
_p76_portal_alcarnus_seasontheme = 488777,
_p76_portal_sescheron_seasontheme = 488801,
_p76_portal_foresttower_seasontheme = 488802,
_p76_portal_bog_seasontheme = 488876,
_p76_portal_gideonscourt_seasontheme = 488877,
_p76_portal_spire_seasontheme = 488878,
_p76_portal_hell_seasontheme = 488879,
_p76_portal_ram_seasontheme = 488880,
It would be fantastic if someone could create an audible (speech) warning for them as a plugin.
Last edited by Buzzy62; 09-25-2023 at 04:50 PM.
Reason: More info
-
Contributor
-
Post Thanks / Like - 2 Thanks
Buzzy62,
Punkk (2 members gave Thanks to s4000 for this useful post)
-
Member
That works perfectly! Thanks!
-
Banned
hi how to add your own sound ??
-
Member
Originally Posted by
ququz
hi how to add your own sound ??
If you want to change what is says, just edit this line of code:
public string SpeakMessage { get; set; } = "Enmity Portal Found";