-
Member
Plugin distance to rgk
Hey all,
I'm looking for a plugin to get a line between me and the rg(rift guardian) to show the distance, I know that 1 plugin i saw has it between every elite and me, but i only want it for the rg. If someone posts like a few lines of code pls also explain short how i need to implement it
Last edited by kwoss; 04-26-2018 at 04:06 PM.
-
Contributor
What is RGK?
Key guardian?
-
Member
Rift Guardian from greater rift sry
-
Active Member
-
Post Thanks / Like - 1 Thanks
kwoss (1 members gave Thanks to bm206 for this useful post)
-
Member
thx but it shows lines to every elite and i only need to the rift guardian ._.
-
Contributor
change
MonsterBrushes.ContainsKey(monster.Rarity)
to
monster.Rarity == ActorRarity.Boss
I didn't test it.
-
Post Thanks / Like - 1 Thanks
kwoss (1 members gave Thanks to SeaDragon for this useful post)
-
Member
Thx gonna test it tomorrow
-
Active Member
This draws zei gem circle aroung RG.
Code:
using System.Linq;
using Turbo.Plugins.Default;
namespace Turbo.Plugins.glq
{
public class ZeiCircleForBoss : BasePlugin, IInGameWorldPainter
{
public GroundCircleDecorator ZeiDecorator { get; set; }
public ZeiCircleForBoss()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
ZeiDecorator = new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255,192,96,0, 1.5f),
Radius = 50f
};
}
public void PaintWorld(WorldLayer layer)
{
var me = Hud.Game.Me;
var monsters = Hud.Game.AliveMonsters.Where(x => x.SnoMonster.Priority == MonsterPriority.boss);
foreach (var monster in monsters)
{
if (me.Powers.BuffIsActive(403468, 0))
ZeiDecorator.Paint(monster, monster.FloorCoordinate, null);
}
}
}
}
-
Post Thanks / Like - 1 Thanks
kwoss (1 members gave Thanks to ch25 for this useful post)
-
Member
and where exactly do i have to place it, i have no clue about those random code snippets and how to "enable" it
-
Member
-
Member
i don't get it to work with that guide
-
Active Member
-
Post Thanks / Like - 1 Thanks
kwoss (1 members gave Thanks to ch25 for this useful post)