-
Contributor
[v7.6] [INTERNATIONAL] [glq] ZeiCircleForBoss
Supported TurboHUD version: 9.0
ZeiCircleForBoss.cs - Pastebin.com
Place in plugins\glq\ZeiCircleForBoss.cs
When you equiped a Zei's gem, will draw a circle of 50 yards for BOSS
Sorry, I don't have a wizard hero:gusta:
Last edited by SeaDragon; 02-13-2019 at 10:49 AM.
-
Post Thanks / Like - 10 Thanks
-
Member
-
Member
Is it possible to add a radius of damage to the hydra?
-
Contributor
Originally Posted by
(Sarge)
Is it possible to add a radius of damage to the hydra?
Maybe this is another plugin
-
Member
Works on 7.3beta. Doesn't put zeis on the new Vesalius RG though.
-
Contributor
Originally Posted by
bobbydigital12
Works on 7.3beta. Doesn't put zeis on the new Vesalius RG though.
It need KJ to add new the BOSS to the group
-
Post Thanks / Like - 1 Thanks
bobbydigital12 (1 members gave Thanks to SeaDragon for this useful post)
-
Member
Your link isn't working. Could you make a new pastebin link?
-
Contributor
Originally Posted by
zakarumloz
Your link isn't working. Could you make a new pastebin link?
I tried and everything was ok
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);
}
}
}
}
-
Member
Hi SeaDragon,
Is it possible a code for the "ZeiCircleForBoss" to appear if another member of the party has "Zei"? I ask, as i play zMonk, I would like to know if the DPS member is positioning himself well before attacking the boss.
ty,
-
Contributor
yes it is possible
PHP Code:
public void PaintWorld(WorldLayer layer)
{
foreach (var monster in Hud.Game.AliveMonsters.Where(x => x.SnoMonster.Priority == MonsterPriority.boss))
{
foreach (IPlayer player in Hud.Game.Players)
{
IBuff ZeiStone = player.Powers.UsedLegendaryGems.ZeisStoneOfVengeancePrimary;
if (ZeiStone != null && ZeiStone.Active)
{
ZeiDecorator.Paint(monster, monster.FloorCoordinate, null);
return; //prevent double painting
}
}
}
}
or you can draw a zei circle around each player who uses it, in boss fight
greetz gjuz
Last edited by gjuz; 09-19-2017 at 01:21 PM.
-
Post Thanks / Like - 1 Thanks
Maria_Clara (1 members gave Thanks to gjuz for this useful post)
-
Member
No, no, it's perfect gjuz! No need to each player
Once more, thank you! ^^
-
Contributor
Originally Posted by
Maria_Clara
No, no, it's perfect gjuz! No need to each player
Once more, thank you! ^^
Sorry, I just saw your request now. I updated it
I didn't test it, but I think it should work
Add a custom code
Hud.GetPlugin<ZeiCircleForBoss>().OnlyEquiped = false;
-
Post Thanks / Like - 1 Thanks
Maria_Clara (1 members gave Thanks to SeaDragon for this useful post)
-
Member
-
Contributor
but OnlyEquiped draws the circle regardless if anyone has it equipped or not.
greetz gjuz
-
Member
Hi,
Small request
I would like to have the same thing constantly around me and in fine line and only during a GR
Can you add this in your plugins like PluginsConfig.cs
Tk