is there any plugin already existed to show number of count of phantasm for WD menu

User Tag List

Results 1 to 4 of 4
  1. #1
    takayo72's Avatar Active Member
    Reputation
    17
    Join Date
    Jan 2018
    Posts
    203
    Thanks G/R
    43/15
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    is there any plugin already existed to show number of count of phantasm for WD

    for the new Witch doctor set Mundunugu, cast three times of spirit barriage on target and keep haunt until phantasm timeout and explosion and then repeat the cast totation.

    is there any plugin already existed to show number of count of phantasm for WD
  2. #2
    Kactus's Avatar Member
    Reputation
    1
    Join Date
    Aug 2018
    Posts
    19
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would be nice, I'm interested too.

  3. #3
    Alessendro's Avatar Member
    Reputation
    2
    Join Date
    Feb 2018
    Posts
    14
    Thanks G/R
    5/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    hkjhkh's Avatar Member
    Reputation
    9
    Join Date
    Mar 2018
    Posts
    82
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's adapted from necro. Maybe someone knows a better way to do it.

    Phantom Dec with Phantom Counter


    Code:
    using System;
    using System.Linq;
    using System.Collections.Generic;	
    using Turbo.Plugins.Default;
    	
    namespace Turbo.Plugins.User
    {
        
    	using System.Text;
     
        public class WDskills1 : BasePlugin, IInGameWorldPainter, IInGameTopPainter
        {
    		//public WorldDecoratorCollection PhantomCountDecorator { get; set; }
    		//public WorldDecoratorCollection PhantomDecorator { get; set; }
    		
    		public bool Phantom { get; set; }
            
    		public IFont TextFont { get; set; }
            public int yard { get; set; }
    		public float XWidth { get; set; }
            public float YHeight { get; set; }  
    		
    		public TopLabelWithTitleDecorator PhantomCountDecorator { get; set; }
            public WorldDecoratorCollection PhantomDecorator { get; set; }
    		
    		public static HashSet<ActorSnoEnum> wdskills = new HashSet<ActorSnoEnum>(new List<uint>
    		{	   
    
    			181880 		//wd_spiritbarragerune_aoe_ghostmodel
    			
    		}.Select(x => (ActorSnoEnum)x));
    
    	
    			
    
    		public WDskills1()
            {
                Enabled = true;
            }
     
            public override void Load(IController hud)
            {
                base.Load(hud);
    			
    			PhantomCountDecorator = new TopLabelWithTitleDecorator(Hud)
                {
                    BackgroundBrush = Hud.Render.CreateBrush(80, 134, 238, 240, 0),
                    BorderBrush = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                    TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 0, 0, true, false, true),
                };
    			
    			PhantomDecorator = new WorldDecoratorCollection(
                    new GroundCircleDecorator(Hud)
                    {
                        Brush = Hud.Render.CreateBrush(255, 204, 0, 204, 3, SharpDX.Direct2D1.DashStyle.Dash),
                        Radius = 5f,
                    },
    				
    				new GroundLabelDecorator(Hud)
                    {
                        CountDownFrom = 10,
    					BackgroundBrush = Hud.Render.CreateBrush(255, 200, 50, 50, 0),
                        TextFont = Hud.Render.CreateFont("tahoma", 9.5f, 255, 255, 255, 255, false, false, false),
                    },
    				new GroundTimerDecorator(Hud)
                    {
                        CountDownFrom = 10,
                        BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
                        BackgroundBrushFill = Hud.Render.CreateBrush(200, 255, 32, 255, 0),
                        Radius = 30,
                    }
    			
    			);		
    		}
    		
    		public void PaintWorld(WorldLayer layer)
            {
    			if (!isHeroInGame(HeroClass.WitchDoctor)) return;
    						
    			//PhantomDecorator
    			foreach (var actor in Hud.Game.Actors.Where(x => wdskills.Contains(x.SnoActor.Sno)))
    									
    				{													
    					if (actor.SnoActor.Sno == ActorSnoEnum._wd_spiritbarragerune_aoe_ghostmodel)
    						PhantomDecorator.Paint(layer, actor, actor.FloorCoordinate, "");						
    				}	
    		} 
    		
    		 public void PaintTopInGame(ClipState clipState)
            {
    			if (clipState != ClipState.BeforeClip) return;
    			int Count = 0;			
    				//Count++;
                    var uiRect = Hud.Render.GetUiElement("Root.NormalLayer.game_dialog_backgroundScreenPC.game_progressBar_manaBall").Rectangle;
                    var w = uiRect.Width / 1.6f;
                    var h = uiRect.Height * 0.15f;
                    var x = uiRect.Left + w * 0.28f;
                    var y = uiRect.Top - uiRect.Height * 0.17f;
    				
    				foreach (var actor in Hud.Game.Actors.Where(d => wdskills.Contains(d.SnoActor.Sno) && d.IsOnScreen))
                        {
                            Count++;
                        }
    				
    				if (Count > 0)
                        {
                            switch (Hud.Game.Me.HeroClassDefinition.HeroClass)
                            {
                                case HeroClass.WitchDoctor:
                                    PhantomCountDecorator.Paint(x, y, w, h, "Phantom:" + Count);
                                    break;
                            }
                        }													
    		}
    		
    		
    		
    		private bool isHeroInGame(HeroClass HClass)
    		{
    			bool ClassInGame = false;
    			
    			foreach (var p in Hud.Game.Players)
    			{
    				ClassInGame = ( (ClassInGame || (!ClassInGame && p.HeroClassDefinition.HeroClass == HClass) ) ? true : false);
    			}
    			
    			return ClassInGame;
    		}
    	}
    }
    Last edited by hkjhkh; 03-08-2020 at 04:30 AM.

Similar Threads

  1. [Question] is there a plugin existed to draw a line between player and pylon?
    By takayo72 in forum TurboHUD Discussions
    Replies: 0
    Last Post: 09-06-2019, 06:21 PM
  2. [Question] is there a plugin to show dynamic dps and toughness?
    By greetree in forum TurboHUD Support
    Replies: 3
    Last Post: 03-27-2019, 06:25 AM
  3. Is there any way for me to...
    By jdismeuc in forum Community Chat
    Replies: 1
    Last Post: 05-15-2008, 06:01 PM
  4. Is there any way to race swap without the use of .M2 files?
    By Nemefist in forum WoW ME Questions and Requests
    Replies: 9
    Last Post: 10-23-2007, 07:33 AM
  5. [Question] Is there any raids/5mans you can use model editting to solo?
    By TheAussieTroll in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 10-09-2007, 07:20 AM
All times are GMT -5. The time now is 11:50 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