Idea for plugin menu

These ads disappear when you log in.

Results 1 to 3 of 3
  1. #1
    FoxPox's Avatar Member CoreCoins User
    Reputation
    3
    Join Date
    Jun 2018
    Posts
    52
    Thanks G/R
    11/2
    Trade Feedback
    0 (0%)

    Idea for plugin

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

  2. #2
    wigworth's Avatar Member
    Reputation
    1
    Join Date
    Mar 2019
    Posts
    6
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    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 Contributor CoreCoins User
    Reputation
    273
    Join Date
    Sep 2018
    Posts
    463
    Thanks G/R
    66/261
    Trade Feedback
    0 (0%)
    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)

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 11:47 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search