Advertisement
zjqyf

ZeiCircleForBoss.cs

May 2nd, 2017
2,819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. using System.Linq;
  2. using Turbo.Plugins.Default;
  3.  
  4. namespace Turbo.Plugins.glq
  5. {
  6. public class ZeiCircleForBoss : BasePlugin, IInGameWorldPainter
  7. {
  8. public GroundCircleDecorator ZeiDecorator { get; set; }
  9. public bool OnlyEquiped { get; set; }
  10. public ZeiCircleForBoss()
  11. {
  12. Enabled = true;
  13. OnlyEquiped = true;
  14. }
  15. public override void Load(IController hud)
  16. {
  17. base.Load(hud);
  18.  
  19. ZeiDecorator = new GroundCircleDecorator(Hud)
  20. {
  21. Brush = Hud.Render.CreateBrush(255,192,96,0, 1.5f),
  22. Radius = 50f
  23. };
  24. }
  25.  
  26. public void PaintWorld(WorldLayer layer)
  27. {
  28. var me = Hud.Game.Me;
  29. var monsters = Hud.Game.AliveMonsters.Where(x => x.SnoMonster.Priority == MonsterPriority.boss);
  30. foreach (var monster in monsters)
  31. {
  32. if (me.Powers.BuffIsActive(403468, 0) || !OnlyEquiped)
  33. ZeiDecorator.Paint(monster, monster.FloorCoordinate, null);
  34. }
  35.  
  36. }
  37.  
  38. }
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement