-
-
Post Thanks / Like - 3 Thanks
-
Legendary
Update
Added MySancIP (default value: enabled) and SancIpOthers (default value: disabled)
-
Post Thanks / Like - 2 Thanks
-
Active Member
Originally Posted by
RNN
Update
Added MySancIP (default value: enabled) and SancIpOthers (default value: disabled)
Nice update RNN, is this plugin that shows green bar on char feet and HP numbers private ? Dont remember see this around here on forum
Ty
-
Legendary
HealthPlayer.cs (the numbers will only be seen in Town)
-
Post Thanks / Like - 1 Thanks
mois (1 members gave Thanks to RNN for this useful post)
-
Active Member
Originally Posted by
RNN
Ty so much RNN. =)
Is there a way to enlarge "IP" text size only for others ?
Last edited by Saico; 11-22-2019 at 11:02 AM.
-
Member
Looking for a way to add a circle on map for monk, like this.
maxMapShapeDecorator = new MapShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 180, 147, 109, 1),
ShapePainter = new CircleShapePainter(Hud),
Radius = 34,
};
Need to see his Cyclone strike radisu on the map, how can i add it to this plugin?
-
Legendary
This plugin is not intended for that function, doing that would make future updates difficult
You can use this code (put it in User\ , name CycloneStrike.cs):
Code:
using Turbo.Plugins.Default;
using System.Linq;
namespace Turbo.Plugins.User
{
public class CycloneStrike : BasePlugin, IInGameWorldPainter
{
public MapShapeDecorator CycloneStrikeDecorator { get; set; }
public CycloneStrike()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
CycloneStrikeDecorator = new MapShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 180, 147, 109, 1),
ShapePainter = new CircleShapePainter(Hud),
Radius = 34,
};
}
public void PaintWorld(WorldLayer layer)
{
if (!Hud.Game.IsInGame || Hud.Game.IsInTown ) return;
if (Hud.Game.Me.HeroClassDefinition.HeroClass==HeroClass.Monk) // Monk
{
var skill = Hud.Game.Me.Powers.UsedSkills.FirstOrDefault(s => s.SnoPower.Sno == 223473); // Cyclone Strike
if (skill != null)
{
CycloneStrikeDecorator.Radius = (skill.Rune == 1)? 34:24; // el radio se ajusta a la runa
CycloneStrikeDecorator.Paint(Hud.Game.Me, Hud.Game.Me.FloorCoordinate, null);
}
}
}
}
}
Last edited by RNN; 11-28-2019 at 07:55 PM.
Reason: fixed code
-
Member
Originally Posted by
RNN
This plugin is not intended for that function, doing that would make future updates difficult
You can use this code (put it in User\ , name CycloneStrike.cs):
Code:
using Turbo.Plugins.Default;
using System.Linq;
namespace Turbo.Plugins.User
{
public class CycloneStrike : BasePlugin, IInGameWorldPainter
{
public MapShapeDecorator CycloneStrikeDecorator { get; set; }
public CycloneStrike()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
CycloneStrikeDecorator = new MapShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 180, 147, 109, 1),
ShapePainter = new CircleShapePainter(Hud),
Radius = 34,
};
}
public void PaintWorld(WorldLayer layer)
{
if (!Hud.Game.IsInGame || Hud.Game.IsInTown ) return;
if (Hud.Game.Me.HeroClassDefinition.HeroClass==HeroClass.Monk) // Monk
{
var skill = Hud.Game.Me.Powers.UsedSkills.FirstOrDefault(s => s.SnoPower.Sno == 223473); // Cyclone Strike
if (skill != null)
{
CycloneStrikeDecorator.Radius = (skill.Rune == 1)? 34:24; // el radio se ajusta a la runa
CycloneStrikeDecorator.Paint(Hud.Game.Me, Hud.Game.Me.FloorCoordinate, null);
}
}
}
}
}
oh quick clarification i want the circle on others not me Hud.Game.Me.Powers.UsedSkills
-
Legendary
I don't understand why you want in others, so you must be more concrete: do you want the circle only in the other players? The requirement would only be that they are monks and have a cyclone strike or ... do you only want to show the circle if they have the 34y rune? And you don't want to show it around you even if you are a monk?
In other words, you have to tell me the conditions under which you want to see the circles and who you want to draw them to
Last edited by RNN; 11-29-2019 at 06:49 AM.
-
Member
OK
Yeah showing the 34yrd. circle only on other monks when they have only cyclone strike equiped.
Showing it when im a monk is obviusly a plus but mainly need to see it in others.
-
Legendary
This should work:
Code:
using Turbo.Plugins.Default;
using System.Linq;
namespace Turbo.Plugins.User
{
public class CycloneStrike : BasePlugin, IInGameWorldPainter
{
public MapShapeDecorator CycloneStrikeDecorator { get; set; }
public CycloneStrike()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
CycloneStrikeDecorator = new MapShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 180, 147, 109, 1),
ShapePainter = new CircleShapePainter(Hud),
Radius = 34,
};
}
public void PaintWorld(WorldLayer layer)
{
if (!Hud.Game.IsInGame || Hud.Game.IsInTown ) return;
var players = Hud.Game.Players.Where(p => p.Powers.UsedSkills.Any(s => (s.SnoPower.Sno == 223473) && (s.Rune == 1)) );
foreach(var pl in players)
{
CycloneStrikeDecorator.Paint(pl, pl.FloorCoordinate, null);
}
}
}
}
-
Post Thanks / Like - 1 Thanks
Pe1a0 (1 members gave Thanks to RNN for this useful post)
-
Member
How to get sanc blue circle?
Originally Posted by
RNN
Update
Added MySancIP (default value: enabled) and SancIpOthers (default value: disabled)
Hey RNN,
love the plugins! Thanks a ton!
I don't see the blue circle around sanc in my game though; was wondering if that was a separate plugin, or?
If it is, would you be able to post it?
Thanks!
-
Legendary
It is another plugin that I made for my own use. I will not modify it, if you find it useful here you have it:
Plugins\RNN\MonkSanc.cs
Color 2 is always the same, Color 1 varies according to the rune used.
If you want the most intense color when you are inside the sanctuary modify line 65, change the 80 to a higher value (0..255)
Code:
Brush = Hud.Render.CreateBrush(80, 0, 0, 100, 4, SharpDX.Direct2D1.DashStyle.Dash),
Update
Changed the border color of the sanc to make it stand out better, the color was very similar to the spirit barrage circles. (Lines 65 and 75 edited)
Last edited by RNN; 04-23-2020 at 03:08 PM.
Reason: Changed default color
-
Post Thanks / Like - 3 Thanks
-
Member
Originally Posted by
RNN
It is another plugin that I made for my own use. I will not modify it, if you find it useful here you have it:
Plugins\RNN\
MonkSanc.cs
Color 2 is always the same, Color 1 varies according to the rune used.
If you want the most intense color when you are inside the sanctuary modify line 65, change the 80 to a higher value (0..255)
Code:
Brush = Hud.Render.CreateBrush(80, 0, 0, 100, 4, SharpDX.Direct2D1.DashStyle.Dash),
Thank you very much!
-
Member
inner.png
Plugins\RNN\MonkSanc.cs
line 85,
CountDownFrom = 8,
to change it ^^
CountDownFrom = 6,
thank you so much
-
Post Thanks / Like - 1 Thanks
RNN (1 members gave Thanks to rogue00722 for this useful post)