-
Contributor
[v7.6] [ENGLISH] [glq] NecDeadBodyPlugin
Last edited by SeaDragon; 02-13-2019 at 10:44 AM.
-
Post Thanks / Like - 8 Thanks
-
Active Member
-
Member
In which line(s) can I modify the color of the circle or the circle itself? Thanks!
-
Contributor
Originally Posted by
cherouvim13
In which line(s) can I modify the color of the circle or the circle itself? Thanks!
Code:
DeadBodyCircleDecorator = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2f),
Radius = 1.5f
}
);
-
Post Thanks / Like - 2 Thanks
-
Member
it's possible to set the bar can show body to disapiar when you are out of range to use it like devour ?
-
Contributor
Originally Posted by
Ev480
it's possible to set the bar can show body to disapiar when you are out of range to use it like devour ?
Do you mean to set a range to display the body and count?
I'll update it when I have time
-
Active Member
Originally Posted by
SeaDragon
Do you mean to set a range to display the body and count?
I'll update it when I have time
Can you make it only show when Corpse skills are being used in skillbar?
Such as :
454174 Corpse Explosion
461650 Corpse Lance
460757 Devour
462239 Revive
I don't know how to do it myself. I tried using Hud.Game.Me.Powers.CurrentSkills(*SnoID*), but it gives me error that i can't use CurrentSkills this way... Powers.BuffIsActive(*snoID*,*unknown what param this is for, so i used 0*) also not working.
Last edited by everknown; 07-22-2017 at 11:43 PM.
-
Contributor
Originally Posted by
everknown
Can you make it only show when Corpse skills are being used in skillbar?
Such as :
454174 Corpse Explosion
461650 Corpse Lance
460757 Devour
462239 Revive
I don't know how to do it myself. I tried using Hud.Game.Me.Powers.CurrentSkills(*SnoID*), but it gives me error that i can't use CurrentSkills this way... Powers.BuffIsActive(*snoID*,*unknown what param this is for, so i used 0*) also not working.
Updated
-
Post Thanks / Like - 3 Thanks
-
Member
How would I move the Body Count to the center and below my character? Also, would it be possible to remove the Body in the window and just have the number in the box? I tried to modify it but kept getting exceptions. Thanks for making this.
-
Post Thanks / Like - 1 Thanks
SeaDragon (1 members gave Thanks to misuny for this useful post)
-
Member
Originally Posted by
SeaDragon
Changelog
2017.8.1
1.Modify the Count font color
When the number of corpses is less than 10, the font color is white
When the number of corpses is 10~15, the font color is orange
When the number of corpses is 16 (maximum), the font color is red
2017.7.23
1.only show when Corpse skills are being used in skillbar
2.Change the style of the DeadBodys
Cool !
thank you for improvement
-
Contributor
Originally Posted by
misuny
How would I move the Body Count to the center and below my character? Also, would it be possible to remove the Body in the window and just have the number in the box? I tried to modify it but kept getting exceptions. Thanks for making this.
Hud.GetPlugin<NecDeadBodyPlugin>().DeadBodyCircle = false;
This disables BodyCircle display
The 80 and 81 lines are display coordinates, and you can modify them appropriately
-
Member
PHP Code:
DeadBodyCircleDecorator = new WorldDecoratorCollection(
new GroundShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(192, 255, 0, 0, -3),
ShadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1), //doesnt work
ShapePainter = WorldStarShapePainter.NewCross(Hud), //doesnt work
Radius = 1f,
RadiusTransformator = new StandardPingRadiusTransformator(Hud, 400, 0.8f, 1.0f),
RotationTransformator = new CircularRotationTransformator(Hud, 30), //doesnt work
},
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2f),
Radius = 1f
}
);
Im getting exceptions for the marked lines. Message: ShadowBrush, ShapePainter, RotationTransformator not defined in GroundShapeDecorator. What am i missing?
Also, wouldnt it be better to set the deadbody-calculationradius to 60 yards (distance necro can use devour) instead of IsOnScreen? Because if i kill some monsters and have lets say 16 corpse and than move a little bit away, so that the counter shows 15 and I press devour, than it will cosume all 16 corpses. --> Devour range > IsOnScreen
PHP Code:
var DeadBody = Hud.Game.Actors.Where(d => d.SnoActor.Sno == 454066 && d.IsOnScreen);
-
Contributor
Originally Posted by
deeplearning
PHP Code:
DeadBodyCircleDecorator = new WorldDecoratorCollection(
new GroundShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(192, 255, 0, 0, -3),
ShadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1), //doesnt work
ShapePainter = WorldStarShapePainter.NewCross(Hud), //doesnt work
Radius = 1f,
RadiusTransformator = new StandardPingRadiusTransformator(Hud, 400, 0.8f, 1.0f),
RotationTransformator = new CircularRotationTransformator(Hud, 30), //doesnt work
},
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2f),
Radius = 1f
}
);
Im getting exceptions for the marked lines. Message: ShadowBrush, ShapePainter, RotationTransformator not defined in GroundShapeDecorator. What am i missing?
Also, wouldnt it be better to set the deadbody-calculationradius to 60 yards (distance necro can use devour) instead of IsOnScreen? Because if i kill some monsters and have lets say 16 corpse and than move a little bit away, so that the counter shows 15 and I press devour, than it will cosume all 16 corpses. --> Devour range > IsOnScreen
PHP Code:
var DeadBody = Hud.Game.Actors.Where(d => d.SnoActor.Sno == 454066 && d.IsOnScreen);
Question 1
copy code:NecDeadBodyPlugin.cs - Pastebin.com
save in plugins\glq\NecDeadBodyPlugin.cs
Check whether the path is wrong or not
Question 2
var DeadBody = Hud.Game.Actors.Where(d => d.SnoActor.Sno == 454066 && d.IsOnScreen);
Change to
var DeadBody = Hud.Game.Actors.Where(d => d.SnoActor.Sno == 454066 && d.CentralXyDistanceToMe <= 16);
-
Member
Originally Posted by
SeaDragon
Question 1
copy code:
NecDeadBodyPlugin.cs - Pastebin.com
save in
plugins\glq\NecDeadBodyPlugin.cs
Check whether the path is wrong or not
Question 2
var DeadBody = Hud.Game.Actors.Where(d => d.SnoActor.Sno == 454066 &&
d.IsOnScreen);
Change to
var DeadBody = Hud.Game.Actors.Where(d => d.SnoActor.Sno == 454066 &&
d.CentralXyDistanceToMe <= 16);
1) Yes, i made sure everything is right and all your other plugins are working for me. If i disable the 3 lines where i get the error, it works. I just dont know why... I copied it 1:1, so no way im missing imports?!?
2) Devour distance is 60 yards. The 16 in your code has to be a 60 than, right?
-
Contributor
Originally Posted by
deeplearning
1) Yes, i made sure everything is right and all your other plugins are working for me. If i disable the 3 lines where i get the error, it works. I just dont know why... I copied it 1:1, so no way im missing imports?!?
2) Devour distance is 60 yards. The 16 in your code has to be a 60 than, right?
Question 1
I'm not quite sure why
Question 2
You're right. I made a mistake. It should be 60