Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Note: I've used many snippets from other plugins as template/idea to create this one.Plugins such as GargsMasterPlugin, BountyCacheIndicatorPlugin, DemonForgePlugin & last ZeiCircleForBoss plugin for powerbuff instead of Zeistone itemSno.
- using System.Linq;
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.Everknown
- {
- public class ZeiStonePlugin : BasePlugin, IInGameWorldPainter
- {
- public bool ShowInTown { get; set; }
- public bool ShowZeiCircle { get; set; }
- public GroundCircleDecorator ZeiYardIndicator { get; set; }
- public ZeiStonePlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- ShowInTown = false;
- ShowZeiCircle = true;
- ZeiYardIndicator = new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(50, 14, 200, 245, 1.5f),
- Radius = 50f
- };
- }
- public void PaintWorld(WorldLayer layer)
- {
- if (Hud.Game.IsInGame && !(Hud.Game.Me.IsInTown && !ShowInTown))
- {
- var me = Hud.Game.Me;
- if (ShowZeiCircle)
- {
- if (me.Powers.BuffIsActive(403468, 0))
- {
- ZeiYardIndicator.Paint(me, me.FloorCoordinate, null);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement