-
Contributor
[ENG] Missing Power Buff Warming
- show Icon/message if player loss the power buff
- show message for local player
- option to speak warming message
Missing Buff.jpg
No buff v2.jpg
Copy to plugins\DAV
[C#] DAV_MissingBuff - Pastebin.com
[C#] DAV_MissingBuffConfig - Pastebin.com
Current Missing Buff
Code:
// Aquila Cuirass
// Crusader - Akarats Champion
// Crusader - Aegis of Valor, Set 2
// Crusader - Aegis of Valor, Set 4
// Monk - Sweeping Wind for monkey king set
// DemonHunter - Unhallowed Essence, Low Discipline
// Nephalem Glory Globes - Knock back back effect
// Barbarian - Band of Might
// Squirt's Necklace
// Bastions of Will
// Ignore Pain for Meta
// Necromancer - Dayntee's Binding
// Monk - Spirit Guards
// Wizard - Halo Of Karini
// Necromancer - Steuart's Greaves
// Necromancer - Simulacrum for Rat Run (option 1)
// Necromancer - Simulacrum + Land of the Dead for Rat Run (option 2)
// Necromancer - Bone Armor
Remark:
It's hard to customization as coding knowledge is required,
please share them if you find something useful
Last edited by s4000; 11-28-2019 at 07:27 AM.
-
Post Thanks / Like - 10 Thanks
-
Active Member
Hmm, got these 4 exception s4
DavPlayer\DAV_MissingBuff.cs(32,86) : error CS1061: 'ISnoItemList' does not contain a definition for 'P66_Unique_Amulet_010' and no accessible extension method 'P66_Unique_Amulet_010' accepting a first argument of type 'ISnoItemList' could be found (are you missing a using directive or an assembly reference?)
2019.09.04 14:57:32.615 19.8.21.1 DavPlayer\DAV_MissingBuff.cs(32,209) : error CS1061: 'ISnoItemList' does not contain a definition for 'P66_Unique_Amulet_010' and no accessible extension method 'P66_Unique_Amulet_010' accepting a first argument of type 'ISnoItemList' could be found (are you missing a using directive or an assembly reference?)
2019.09.04 14:57:32.615 19.8.21.1 DavPlayer\DAV_MissingBuff.cs(34,41) : error CS1061: 'ISnoPowerList' does not contain a definition for 'SquirtsNecklace' and no accessible extension method 'SquirtsNecklace' accepting a first argument of type 'ISnoPowerList' could be found (are you missing a using directive or an assembly reference?)
2019.09.04 14:57:32.615 19.8.21.1 Plugins\DavPlayer\DAV_MissingBuff.cs(42,76) : error CS1061: 'ISnoItemList' does not contain a definition for 'P66_Unique_Amulet_010' and no accessible extension method 'P66_Unique_Amulet_010' accepting a first argument of type 'ISnoItemList' could be found (are you missing a using directive or an assembly reference?)
Strange that I got these in STABLE version, copied them to BETA THUD and seems to start good. It is suposed to only work with Beta ?
Last edited by Saico; 09-04-2019 at 01:03 PM.
-
Legendary
2019.09.04 14:57:32.615 19.8.21.1
It seems it was included in version 26.3, if you still don't want to use the beta version, you can use 26.3.
-
Active Member
Originally Posted by
RNN
2019.09.04 14:57:32.615 19.8.21.1
It seems it was included in version 26.3, if you still don't want to use the beta version, you can use 26.3.
Hm, it should be that, I was not using 26.3 Stable, now seems to work
I was playing zbarb and the "No IP" Message was appearing even when I was spammin it, it was not suposed to be like that I guess, right ? Checkin the others buffs
Last edited by Saico; 09-04-2019 at 03:46 PM.
-
Contributor
Originally Posted by
Saico
Hm, it should be that, I was not using 26.3 Stable, now seems to work
I was playing zbarb and the "No IP" Message was appearing even when I was spammin it, it was not suposed to be like that I guess, right ? Checkin the others buffs
work well when play necro, will inspect later
-
Active Member
Originally Posted by
s4000
work well when play necro, will inspect later
This happened when I was the zbarb and was Givin IP to others. (Message No IP) appeared when I was using IP
-
Legendary
Originally Posted by
s4000
work well when play necro, will inspect later
I think it works like this:
With player.Powers.BuffIsActive(Hud.Sno.SnoPowers.Barbarian_IgnorePain.Sno) you check if a player has ip
If you use an index (player.Powers.BuffIsActive(Hud.Sno.SnoPowers.Barbarian_IgnorePain.Sno, Index)) you have to handle 2 indexes:
Index = 0 -> the IP is given by the player himself
Index = 1 -> the IP has received it from another player
Practical example: if you want to find the remaining IP time of a player, you must compare the values of player.Powers.GetBuff (79528).TimeLeftSeconds[0] and player.Powers.GetBuff(79528).TimeLeftSeconds[1] and keep the highest value
In summary, there is a differentiation between the ip you give and the one you receive
Last edited by RNN; 09-05-2019 at 01:38 PM.
-
Member
Could you make other party members see the buff messages?
-
Contributor
Originally Posted by
RNN
I think it works like this:
With player.Powers.BuffIsActive(Hud.Sno.SnoPowers.Barbarian_IgnorePain.Sno) you check if a player has ip
If you use an index (player.Powers.BuffIsActive(Hud.Sno.SnoPowers.Barbarian_IgnorePain.Sno, Index)) you have to handle 2 indexes:
Index = 0 -> the IP is given by the player himself
Index = 1 -> the IP has received it from another player
Practical example: if you want to find the remaining IP time of a player, you must compare the values of player.Powers.GetBuff (7952
.TimeLeftSeconds[0] and player.Powers.GetBuff(7952
.TimeLeftSeconds[1] and keep the highest value
In summary, there is a differentiation between the ip you give and the one you receive
Just remember that:
- Mob Rule: All allies within 50 yards (including their followers and pets) also benefit from Ignore Pain, but with half of normal effect (only 25% damage reduction).
-
Legendary
True, it is convenient to know where IP comes from for things like that.
The problem of this Plugin with the ip, is that in the rule only index 1 is specified. A possible solution is to allow index = -1 and in BufIsOn do the checking without index in such case
JarJarD3, I remember incorrectly or did you already report an error with AccountBound? I think it returns "false" if an Item on the ground is associated with player accounts but none of them is in the game.
Last edited by RNN; 09-06-2019 at 02:14 PM.
-
Member
[bug] im receive message No Storm Armor. But SA is Active.
-
Contributor
Originally Posted by
imnotabotuser
[bug] im receive message No Storm Armor. But SA is Active.
change SNO = Hud.Sno.SnoPowers.HaloOfKarini.Sno,
to SNO = Hud.Sno.SnoPowers.Wizard_StormArmor.Sno,
still work on the issue reported & other comment (the iconindex issue cause problems for many plugin too)
no sure if the missing buff can apply to other palyers
-
Post Thanks / Like - 1 Thanks
imnotabotuser (1 members gave Thanks to s4000 for this useful post)
-
Member
It's a really good plugin that I'm using really well. I have one question. I want to disable the sound. Where should I modify it?
-
Contributor
Originally Posted by
rlslvlrl4
It's a really good plugin that I'm using really well. I have one question. I want to disable the sound. Where should I modify it?
change to
public bool SpeakEnable { get; set; } = false;
-
Member
Originally Posted by
s4000
change to
public bool SpeakEnable { get; set; } = false;
Thank you. It works very well. I will use it well.