-
Contributor
updated v2
- can show party no buff icon
- sound can be enable/disable for each buff
Last edited by s4000; 09-09-2019 at 11:34 AM.
-
Contributor
update:
- buff for class for better performance
-
Contributor
Missing buff code for zbarb
Code:
// Band of Might
plugin.HeroNoBuffList.Add(HeroClass.Barbarian, new DAV_NoBuffRule() {
InCombatOnly = true,
IsRelevant = (player) => player.Powers.BuffIsActive(Hud.Sno.SnoPowers.BandOfMight.Sno, 0),
IsBuffOn = (player) => player.Powers.BuffIsActive(Hud.Sno.SnoPowers.BandOfMight.Sno, 1),
// IconMsg = (player) => ,
SpeakEnable = false,
Message = "No Band of Might",
warmFont = stdFont,
IconSize = stdSize,
Icon_Brush = Brush_Red,
Icon_BG = Hud.Texture.InventorySetBackgroundSmall,
Icon_Texture = Hud.Texture.GetItemTexture(Hud.Sno.SnoItems.P61_Unique_Ring_05)
});
Last edited by s4000; 11-27-2019 at 01:29 AM.
-
Post Thanks / Like - 1 Thanks
takayo72 (1 members gave Thanks to s4000 for this useful post)
-
Member
-
Contributor
Originally Posted by
Violet rain
Have exception
what exception?
have you download the latest version?
-
Member
Exception occurred when adding above 'Band of Might'. (ver. 19.9.26.0)
-
Contributor
Originally Posted by
Violet rain
Exception occurred when adding above 'Band of Might'. (ver. 19.9.26.0)
No exception myself,
Please provide more detail, otherwise I cannot help
-
Member
\Plugins\DavPlayer\dav_missingbuffconfig.cs(146,12) : error CS1061: 'DAV_MissingBuff' does not contain a definition for 'HeroNoBuffList' and no accessible extension method 'HeroNoBuffList' accepting a first argument of type 'DAV_MissingBuff' could be found (are you missing a using directive or an assembly reference?)
\Plugins\DavPlayer\dav_missingbuffconfig.cs(155,19) : error CS0103: The name 'Brush_Red' does not exist in the current context
-
Member
I'm really sorry. I've been using the old version. Working well.
-
Contributor
code of bone armor for necro & simu for rat runs
Code:
// Simulacrum for Rat Run
plugin.HeroNoBuffList.Add(HeroClass.Necromancer, new DAV_NoBuffRule() {
InCombatOnly = true,
IsRelevant = (player) => player.Powers.BuffIsActive(Hud.Sno.SnoPowers.ScytheOfTheCycle.Sno, 0) && player.Powers.UsedSkills.Any(x => x.SnoPower.Sno == Hud.Sno.SnoPowers.Necromancer_Simulacrum.Sno),
IsBuffOn = (player) => player.Powers.BuffIsActive(Hud.Sno.SnoPowers.Necromancer_Simulacrum.Sno, 1),
// IconMsg = (player) => ,
SpeakEnable = false,
Message = "No Simulacrum",
warmFont = stdFont,
IconSize = stdSize,
Icon_Brush = Brush_Yellow,
// Icon_BG = Hud.Texture.InventorySetBackgroundSmall,
Icon_Texture = Hud.Texture.GetTexture(Hud.Sno.SnoPowers.Necromancer_Simulacrum.NormalIconTextureId)
});
Code:
// Bone Armor
plugin.HeroNoBuffList.Add(HeroClass.Necromancer, new DAV_NoBuffRule() {
InCombatOnly = true,
IsRelevant = (player) => player.Powers.UsedSkills.Any(x => x.SnoPower.Sno == Hud.Sno.SnoPowers.Necromancer_BoneArmor.Sno),
IsBuffOn = (player) => player.Powers.BuffIsActive(Hud.Sno.SnoPowers.Necromancer_BoneArmor.Sno),
// IconMsg = (player) => ,
SpeakEnable = false,
Message = "No Bone Armor",
warmFont = stdFont,
IconSize = stdSize,
Icon_Brush = Brush_Red,
// Icon_BG = Hud.Texture.InventorySetBackgroundSmall,
Icon_Texture = Hud.Texture.GetTexture(Hud.Sno.SnoPowers.Necromancer_BoneArmor.NormalIconTextureId)
});
Last edited by s4000; 09-28-2019 at 12:05 AM.
-
Member
Exception occurred when adding above Bone Armor and Simulacrum for Rat Run.
\Plugins\DavPlayer\dav_missingbuffconfig.cs(190,102) : error CS1003: Syntax error, ',' expected
\Plugins\DavPlayer\dav_missingbuffconfig.cs(205,102) : error CS1003: Syntax error, ',' expected
-
Active Member
Originally Posted by
Violet rain
Exception occurred when adding above Bone Armor and Simulacrum for Rat Run.
\Plugins\DavPlayer\dav_missingbuffconfig.cs(190,102) : error CS1003: Syntax error, ',' expected
\Plugins\DavPlayer\dav_missingbuffconfig.cs(205,102) : error CS1003: Syntax error, ',' expected
He just made a space, in last line
Just merge "TextureId" Text and it works
Icon_Texture = Hud.Texture.GetTexture(Hud.Sno.SnoPowers.Necromancer_BoneArmor.NormalIconTexture Id)
Icon_Texture = Hud.Texture.GetTexture(Hud.Sno.SnoPowers.Necromancer_Simulacrum.NormalIconTextur eId)
-
Member
-
Contributor
code for necro Steuart's Greaves buff
Code:
// Steuart's Greaves
plugin.HeroNoBuffList.Add(HeroClass.Necromancer, new DAV_NoBuffRule() {
InCombatOnly = false,
IsRelevant = (player) => player.Powers.BuffIsActive(Hud.Sno.SnoPowers.SteuartsGreaves.Sno, 0),
IsBuffOn = (player) => player.Powers.BuffIsActive(Hud.Sno.SnoPowers.SteuartsGreaves.Sno, 1),
// IconMsg = (player) => ,
SpeakEnable = false,
Message = "Blood Rush",
warmFont = stdFont,
IconSize = stdSize,
Icon_Brush = Brush_Yellow,
// Icon_BG = Hud.Texture.InventorySetBackgroundSmall,
Icon_Texture = Hud.Texture.GetTexture(Hud.Sno.SnoPowers.Necromancer_BloodRush.NormalIconTextureId)
});
-
Post Thanks / Like - 1 Thanks
takayo72 (1 members gave Thanks to s4000 for this useful post)
-
Member
It's finally found
Thank you 谢了