Help with Frozen affix Decorator menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Saico's Avatar Active Member
    Reputation
    21
    Join Date
    Apr 2019
    Posts
    379
    Thanks G/R
    35/20
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Help with Frozen affix Decorator

    Hey guys, I was trying to add Frozen Decorator to my (DangerPlugin.cs), tried to put it just like Wornhole decorator, that already has pink brush and form. but I could not. =(

    Anyone can help ? I would like to add a visual effect and/or text Warning for Frozen (not frozen pulse) just as Wornhole pink effect.

    I can post DangerPlugin.cs code here, if someone can help me to add this affix. I would be so appreciated

    Help with Frozen affix Decorator
  2. #2
    s4000's Avatar Contributor
    Reputation
    285
    Join Date
    Oct 2018
    Posts
    489
    Thanks G/R
    18/272
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    the default plugin already contains that skill?? (plugins\Default\Monsters\EliteMonsterSkillPlugin.cs)

  3. #3
    Saico's Avatar Active Member
    Reputation
    21
    Join Date
    Apr 2019
    Posts
    379
    Thanks G/R
    35/20
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Oh ya, totally forgot about this plugin, it contains the FrozenBallDecorator, I changed radius and colors now, thank you.

    But I would like more, I`d like to change colors inside the circle to red, or orange, just like Wornhole is pink and has a Text when you are close to in DangerPlugin.cs

    Do you have any idea how I can do it ? I copied the wornhole to EliteMonsterSkillPlugin.cs but didnt work (of course Im missin something)

    WormholeWarningDecorator = new WorldDecoratorCollection(
    new GroundCircleDecorator(Hud)
    {
    Brush = Hud.Render.CreateBrush(205, 255, 50, 255, 3, SharpDX.Direct2D1.DashStyle.Dash),
    Radius = 5f,
    },
    new GroundCircleDecorator(Hud)
    {
    Brush = Hud.Render.CreateBrush(205, 255, 50, 255, 0),
    Radius = 4f,
    },
    new GroundLabelDecorator(Hud)
    {
    BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
    TextFont = Hud.Render.CreateFont("tahoma", 20, 255, 255, 255, 255, true, true, true),
    }
    );

    WormholeDecorator = new WorldDecoratorCollection(
    new GroundCircleDecorator(Hud)
    {
    Brush = Hud.Render.CreateBrush(160, 255, 50, 255, 3, SharpDX.Direct2D1.DashStyle.Dash),
    Radius = 5f,
    },
    new GroundCircleDecorator(Hud)
    {
    Brush = Hud.Render.CreateBrush(160, 255, 50, 255, 0),
    Radius = 4f,
    },
    new GroundLabelDecorator(Hud)
    {
    TextFont = Hud.Render.CreateFont("tahoma", 9, 160, 255, 255, 255, true, false, 128, 0, 0, 0, true),
    }
    I tried adding
    publicWorldDecoratorCollection FrozenBallWarningDecorator { get; set; }
    to class, and this code but nothin happened.
    Last edited by Saico; 05-21-2019 at 10:00 AM.

  4. #4
    s4000's Avatar Contributor
    Reputation
    285
    Join Date
    Oct 2018
    Posts
    489
    Thanks G/R
    18/272
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Try
    Code:
    public class WormHolePlugin : BasePlugin, IInGameWorldPainter {
    		
    		public WorldDecoratorCollection SampleDecorator { get; set; }
    		public WorldDecoratorCollection WormholeDecorator { get; set; }
    		public WorldDecoratorCollection WormholeWarningDecorator { get; set; }
    
    		public WormHolePlugin() {
    			Enabled = true;
    		}
    
    		public override void Load(IController hud) {
    			base.Load(hud);
    
    
    			SampleDecorator = new WorldDecoratorCollection(
    				new GroundCircleDecorator(Hud) {
    					Brush = Hud.Render.CreateBrush(160, 255, 51, 51, 0),
    					Radius = 4f,
    				},
    				new GroundLabelDecorator(Hud) {
    					BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
    					TextFont = Hud.Render.CreateFont("tahoma", 15, 255, 255, 255, 255, true, true, true),
    				}
    			);
    			
    			WormholeWarningDecorator = new WorldDecoratorCollection(
    				new GroundCircleDecorator(Hud) {
    					Brush = Hud.Render.CreateBrush(160, 255, 51, 51, 0),
    					Radius = 4f,
    				},
    				new GroundLabelDecorator(Hud) {
    					BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
    					TextFont = Hud.Render.CreateFont("tahoma", 15, 255, 255, 255, 255, true, true, true),
    				}
    			);
    
    			WormholeDecorator = new WorldDecoratorCollection(
    				new GroundCircleDecorator(Hud) {
    					Brush = Hud.Render.CreateBrush(160, 255, 50, 255, 0),
    					Radius = 4f,
    				},
    				new GroundLabelDecorator(Hud) {
    					TextFont = Hud.Render.CreateFont("tahoma", 9, 160, 255, 255, 255, true, false, 128, 0, 0, 0, true),
    				}
    			);
    		}
    
    		public void PaintWorld(WorldLayer layer) {
    			var actors = Hud.Game.Actors;
    			foreach (var actor in actors) {
    				if (actor.SnoActor.Sno == ActorSnoEnum._x1_monsteraffix_teleportmines) {
    					if (actor.NormalizedXyDistanceToMe <= 6) WormholeWarningDecorator.Paint(layer, actor, actor.FloorCoordinate, "Wormhole !!!");
    					else WormholeDecorator.Paint(layer, actor, actor.FloorCoordinate, "Wormhole");
    					
    					if (Hud.Sound.LastSpeak.TimerTest(5000))
    						Hud.Sound.Speak("Wormhole");
    				}
    				
    				else if (actor.SnoActor.Sno == ActorSnoEnum._monsteraffix_frozen_iceclusters /* elite skill sample from the default plugin */) {
    					SampleDecorator.Paint(layer, actor, actor.FloorCoordinate, "your message");
    				}
    			}
    		}
    	}

Similar Threads

  1. need help with shammy talents
    By jason in forum World of Warcraft General
    Replies: 5
    Last Post: 07-19-2006, 02:02 AM
  2. help with emu server
    By Chsz in forum World of Warcraft General
    Replies: 1
    Last Post: 07-04-2006, 10:01 PM
  3. Help with wowglider
    By Voldaroi in forum World of Warcraft General
    Replies: 6
    Last Post: 06-17-2006, 08:54 PM
  4. Help with Ranks!!
    By Krazzee in forum Community Chat
    Replies: 7
    Last Post: 06-16-2006, 06:58 PM
  5. Help with Auto-it!!
    By Krazzee in forum World of Warcraft General
    Replies: 7
    Last Post: 06-12-2006, 09:22 PM
All times are GMT -5. The time now is 12:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search