Idea for plugin menu

User Tag List

Results 1 to 4 of 4
  1. #1
    FoxPox's Avatar Member
    Reputation
    12
    Join Date
    Jun 2018
    Posts
    83
    Thanks G/R
    19/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Idea for plugin

    Add an indicator that lights up when a certain class enters a given radius.
    kkkk.png

    Idea for plugin
  2. #2
    wigworth's Avatar Member
    Reputation
    2
    Join Date
    Mar 2019
    Posts
    8
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah something like this would be really nice for the barb, so as to be sure the wiz is in range to be given IP.

  3. #3
    RNN's Avatar Legendary
    Reputation
    811
    Join Date
    Sep 2018
    Posts
    1,051
    Thanks G/R
    103/774
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Code:
    using Turbo.Plugins.Default;
    using System.Linq;
    
    namespace Turbo.Plugins.RNN
    {
        public class HeroIsNear : BasePlugin, IInGameTopPainter
        {
    		public IBrush BorderBrush { get; set; }
    		public IBrush BackgroundBrush1 { get; set; }
    		public IBrush BackgroundBrush2 { get; set; }
    		
    		public HeroClass Heroclass { get; set; } 
    		public float Distance { get; set; }
    		
    		public float WidthRectangle { get; set; }
    		public float HeightRectangle { get; set; }
    		public float Offset { get; set; }
    		
    		public float xPos { get; set; } 
    		public float yPos { get; set; } 
    		
    		public HeroIsNear()
    		{
    			Enabled = true;			
    		}
    		
    		public override void Load(IController hud)
    		{
    			base.Load(hud);
    			Order = 30001;
    			
    			Heroclass = HeroClass.Wizard; //HeroClass.Barbarian , HeroClass.Crusader , HeroClass.DemonHunter, HeroClass.Monk , HeroClass.WitchDoctor, HeroClass.Wizard, HeroClass.Necromancer
    			Distance = 50f;
    
    			WidthRectangle =  (Hud.Window.Size.Width * 0.015f) ;
    			HeightRectangle =  (Hud.Window.Size.Height * 0.01f) ;			
    			Offset = - (Hud.Window.Size.Height / 6) ;
    			
    			xPos = (Hud.Window.Size.Width - WidthRectangle) / 2 ;
    			yPos =  (Hud.Window.Size.Height - HeightRectangle) / 2 + Offset;
    						
    			BorderBrush = Hud.Render.CreateBrush(255, 255, 255, 255, 1);
    			BackgroundBrush1 = Hud.Render.CreateBrush(255, 0, 200, 0, 0);
    			BackgroundBrush2 = Hud.Render.CreateBrush(255, 255, 0, 0, 0);
    		}
    		public void PaintTopInGame(ClipState clipState) 
    		{
    			if (clipState != ClipState.BeforeClip) return;
    			if (!Hud.Game.IsInGame || Hud.Game.IsInTown) { return; }
    			bool near = Hud.Game.Players.Where(p => !p.IsMe && p.HasValidActor && (p.HeroClassDefinition.HeroClass == Heroclass) && (p.CentralXyDistanceToMe <= Distance)).Any();
    			(near?BackgroundBrush1:BackgroundBrush2).DrawRectangle(xPos, yPos, WidthRectangle, HeightRectangle);
    			BorderBrush.DrawRectangle(xPos , yPos, WidthRectangle, HeightRectangle);			
    		}
    	}
    }

  4. Thanks FoxPox, blejdzik (2 members gave Thanks to RNN for this useful post)
  5. #4
    wigworth's Avatar Member
    Reputation
    2
    Join Date
    Mar 2019
    Posts
    8
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would it be possible to add text to speech into this plugin? For example, when you are in range it would say ''In range'' or ''Cast''.

Similar Threads

  1. [Question] Idea for plugin
    By FoxPox in forum TurboHUD Discussions
    Replies: 5
    Last Post: 09-21-2019, 08:23 PM
  2. Vairniss has an idea for scamming money off 70s
    By Free Hugs in forum WoW Scam Prevention
    Replies: 8
    Last Post: 05-30-2007, 10:35 PM
  3. New Idea For Account Scam!
    By CowButt92 in forum WoW Scam Prevention
    Replies: 5
    Last Post: 04-04-2007, 04:17 AM
  4. Idea for CE users
    By Zaldion in forum World of Warcraft General
    Replies: 2
    Last Post: 02-04-2007, 01:40 AM
  5. Idea for maybe being able to kill and endgame boss easy
    By Osmose in forum World of Warcraft General
    Replies: 0
    Last Post: 11-25-2006, 05:10 AM
All times are GMT -5. The time now is 02:57 PM. 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