Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Linq;
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.glq
- {
- public class ZeiCircleForBoss : BasePlugin, IInGameWorldPainter
- {
- public GroundCircleDecorator ZeiDecorator { get; set; }
- public bool OnlyEquiped { get; set; }
- public ZeiCircleForBoss()
- {
- Enabled = true;
- OnlyEquiped = 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) || !OnlyEquiped)
- ZeiDecorator.Paint(monster, monster.FloorCoordinate, null);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement