Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.WindyForce
- {
- public class FlyingDragonPlugin : BasePlugin
- {
- public const uint DragonSno = 246562;
- public WorldDecoratorCollection DragonDecorator { get; set; }
- public FlyingDragonPlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- DragonDecorator = new WorldDecoratorCollection(new GroundLabelDecorator(hud)
- {
- BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
- BorderBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 2),
- TextFont = Hud.Render.CreateFont("tahoma", 20, 250, 250, 0, 0, true, false, false)
- });
- }
- public override void PaintWorld(WorldLayer layer)
- {
- var me = Hud.Game.Me;
- var buf = me.Powers.GetBuff(DragonSno);
- if (null!= buf && buf.IconCounts.Length>=1 && buf.IconCounts[1] == 1)
- {
- DragonDecorator.Paint(layer, me, me.FloorCoordinate, "DRAGON!!!");
- }
- } //
- } //class
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement