-
Member
Hi all,
Sorry if someone already posted a solution somewhere, but is there any way to add an alert when simulacrum is not active?
Thanks.
Last edited by Mundzso; 09-09-2019 at 05:24 AM.
-
Active Member
Originally Posted by
Mundzso
Hi all,
Sorry if someone already posted a solution somewhere, but is there any way to add an alert when simulacrum is not active?
Thanks.
Code:
// Simulacrum
AlertList.Alerts.Add(new Alert(Hud, HeroClass.Necromancer)
{
TextSnoId = 465350,
MessageFormat = "\uD83D\uDCAA {0} \uD83D\uDCAA", //💪
Rule =
{
CheckSkillCooldowns = true,
EquippedSkills = new[] { new SnoPowerId(465350) },
InactiveBuffs = new[] { new SnoPowerId(465350,1) }
}
});
-
Member
Hello all,
I'm looking for a way to add band of might to the top player alerts. I can't seem to figure it out on my own. And i keep forgetting to charge or stomp for it so am looking for a reminder.
Kind regards
-
Active Member
Originally Posted by
Percula05
Hello all,
I'm looking for a way to add band of might to the top player alerts. I can't seem to figure it out on my own. And i keep forgetting to charge or stomp for it so am looking for a reminder.
Kind regards
Code:
// Band of Might
AlertList.Alerts.Add(new Alert(Hud, HeroClass.Barbarian)
{
TextSnoId = 447060,
MessageFormat = "\u26A0 Band of Might \u26A0", //⚠
Rule =
{
// CheckSkillCooldowns = true,
ActiveBuffs = new[] { new SnoPowerId(447060) },
InactiveBuffs = new[] { new SnoPowerId(447060,1) }
}
});
-
Post Thanks / Like - 1 Thanks
genosypheus (1 members gave Thanks to Jembo for this useful post)
-
Member
Spirit Walk 4pc Mundunugu's Regalia
Code:
// Spirit Walk 4pc Mundunugu's Regalia
AlertList.Alerts.Add(new Alert(Hud, HeroClass.WitchDoctor)
{
TextSnoId = powers.WitchDoctor_SpiritWalk.Sno,
MessageFormat = "\u26A0 {0} \u26A0", //⚠
Rule =
{
EquippedSkills = new[] { new SnoPowerId(powers.WitchDoctor_SpiritWalk.Sno) },
ActiveBuffs = new[] { new SnoPowerId(484129) }, // mundunugu set 4 piece
InactiveBuffs = new[] { new SnoPowerId(484129, 1) },
}
});
-
Post Thanks / Like - 1 Thanks
genosypheus (1 members gave Thanks to PTS_TDS for this useful post)
-
Member
How do i add alert to Wrath of the Berserker?
-
Active Member
Code:
// Wrath of the Berserker
AlertList.Alerts.Add(new Alert(Hud, HeroClass.Barbarian)
{
TextSnoId = 079607,
MessageFormat = "\uD83D\uDCAA {0} \uD83D\uDCAA", //💪
Rule =
{
CheckSkillCooldowns = true,
EquippedSkills = new[] { new SnoPowerId(079607) },
InactiveBuffs = new[] { new SnoPowerId(079607,0) }
}
});
-
Post Thanks / Like - 1 Thanks
genosypheus (1 members gave Thanks to Jembo for this useful post)
-
Member
Originally Posted by
JackCeparou
This will display a green "!!! Goblin !!!" alert when a goblin is alive & around (i can't test it before tonight but this should work)
PHP Code:
Hud.RunOnPlugin<Jack.Alerts.PlayerTopAlertListPlugin>(plugin =>
{
plugin.AlertList.Alerts.Add(new Jack.Alerts.Alert(Hud)
{
MessageFormat = "!!! Goblin !!!",
Rule =
{
CustomCondition = player =>
{
if (Hud.Game.Me.IsInTown) return false;
return Hud.Game.AliveMonsters.Any(m => m.SnoMonster.Priority == MonsterPriority.goblin);
},
},
Label =
{
TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 30, 244, 30, false, false, 242, 0, 0, 0, true),
}
});
});
Can anyone help, i get this error when trying to add goblin alert
PHP Code:
User\PluginEnablerOrDisablerPlugin.cs(40,59) : error CS1061: 'IEnumerable<IMonster>' does not contain a definition for 'Any' and no accessible extension method 'Any' accepting a first argument of type 'IEnumerable<IMonster>' could be found (are you missing a using directive or an assembly reference?)
-
Legendary
Insert at the beginning of the PluginEnablerOrDisablerPlugin.cs file the line
-
Active Member
Is it possible to get the Goblin Name instead of just "!!! Goblin !!!" ? Couldn't figure it out yet.
Code:
if (ActorSnoEnum._treasuregoblin_a) {
MessageFormat = "!!! Treasure Goblin !!!";
} else if (ActorSnoEnum._treasuregoblin_b) {
MessageFormat = "!!! Odious Collector !!!";
} else if (ActorSnoEnum._treasuregoblin_c) {
MessageFormat = "!!! Gem Hoarder !!!";
} else if (ActorSnoEnum._treasuregoblin_d_splitter) {
MessageFormat = "!!! Gelatinous Sire !!!";
} else if (ActorSnoEnum._treasuregoblin_d_splitter_02) {
MessageFormat = "!!! Gelatinous Spawn !!!";
} else if (ActorSnoEnum._treasuregoblin_d_splitter_03) {
MessageFormat = "!!! Gelatinous Spawn !!!";
} else if (ActorSnoEnum._treasuregoblin_e) {
MessageFormat = "!!! Insufferable Miscreant !!!";
} else if (ActorSnoEnum._treasuregoblin_f) {
MessageFormat = "!!! Blood Thief !!!";
} else if (ActorSnoEnum._treasuregoblin_h) {
MessageFormat = "!!! Malevolent Tormentor !!!";
} else if (ActorSnoEnum._treasuregoblin_j) {
MessageFormat = "!!! Gilded Baron !!!";
} else if (ActorSnoEnum._p1_treasuregoblin_tentacle_a) {
MessageFormat = "!!! Rainbow Goblin !!!";
}
Doesn't seem to work. Only getting exceptions. Probably the completely wrong way?
Last edited by Firegone; 04-22-2020 at 11:34 AM.
-
Member
Hey
I'd like to monitor when the monk skill Epiphany buff is up or not.
I made this code:
//Epiphany
AlertList.Alerts.Add(new Alert(Hud, HeroClass.Monk)
{
TextSnoId = 312307,
MessageFormat = "!! {0} !!",
Rule =
{
EquippedSkills = new[] { new SnoPowerId(312307) },
InactiveBuffs = new[] { new SnoPowerId(312307) },
},
});
Problem is that the alert is triggered when the skill comes out of cooldown, not when the buff has disappeared (which i d like).
I guess i am using the wrong SnoId, anyone can help me ?
-
Active Member
Hey jjacko73, try this:
Code:
// Epiphany
AlertList.Alerts.Add(new Alert(Hud, HeroClass.Monk)
{
TextSnoId = 312307,
MessageFormat = "!! {0} !!",
Rule =
{
CheckSkillCooldowns = true,
EquippedSkills = new[] { new SnoPowerId(312307) },
InactiveBuffs = new[] { new SnoPowerId(312307,1) }
},
Label =
{
TextFont = Hud.Render.CreateFont("tahoma", 11, 255, 255, 255, 0, false, false, 242, 0, 0, 0, true)
}
});
-
Post Thanks / Like - 1 Thanks
jjacko73 (1 members gave Thanks to Jembo for this useful post)
-
Member
Hey Jembo,
Thanks for your help but it doesnt change anything, the alert is stil triggered when the skill comes out of cooldown and not when the epihany buff has disappeared
Any other idea ?
-
Active Member
Hmmm It's got me stumped - it's working fine on my end:
Only shows when Epihphany is off cooldown & Buff is inactive
I'm not sure why Alert is triggered for you when the buff is still active :confused:
-
Member
I think i found the misunderstanding:
What i d like is the alarm appears when the buff is inactive even if it is on cooldown