[v7.2] [INTERNATIONAL] MonstersCountPlugin menu

These ads disappear when you log in.

User Tag List

Results 1 to 2 of 2
  1. #1
    ch25's Avatar Active Member
    Reputation
    15
    Join Date
    Mar 2017
    Posts
    88
    Thanks G/R
    23/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [v7.2] [INTERNATIONAL] MonstersCountPlugin

    From old forum.
    Shows amount of mobs with Haunt and Locust Swarm.
    I'm not the author.
    Put this into \plugins\UserMonstersCountPlugin.cs file.

    PHP Code:
    using System.Linq;
    using Turbo.Plugins.Default;

    namespace 
    Turbo.Plugins.User
    {
        
    // by 黑白灰
        // Version 1.0.0
        
    public class MonstersCountPlugin BasePluginIInGameTopPainter
        
    {

            public 
    IFont TextFont getset; }
            public 
    int yard getset; }
            public 
    MonstersCountPlugin()
            {
                
    Enabled true;
            }

            public 
    override void Load(IController hud)
            {
                
    base.Load(hud);
                
    TextFont Hud.Render.CreateFont("tahoma"11255180147109falsefalsetrue);
                
    yard 40;
            }

            public 
    void PaintTopInGame(ClipState clipState)
            {
                if (
    TextFont == null)
                {
                    return;
                }
                
    //if (this.Hud.Collections.Me.HeroClassRules.HeroClass != HeroClass.WitchDoctor)
                //{
                    //return;
                //}
                
    var monstersCount 0;
                var 
    monsters Hud.Game.AliveMonsters.Where(=> x.SnoMonster.Priority == MonsterPriority.normal);
                
    // 虫群数量
                
    int locustCount 0;
                
    // 噬魂数量
                
    int hauntedCount 0;
                foreach (var 
    monster in monsters)
                {
                    if (
    monster.SnoMonster.Priority == MonsterPriority.boss)
                    {
                        return;
                    }
                    if (
    monster.FloorCoordinate.XYDistanceTo(Hud.Game.Me.FloorCoordinate) < yard)
                    {
                        
    monstersCount++;
                        if (
    monster.Locust)
                        {
                            
    locustCount++;
                        }
                        if (
    monster.Haunted)
                        {
                            
    hauntedCount++;
                        }
                    }
                }

                if (
    monstersCount <= && Hud.Game.SpecialArea != SpecialArea.GreaterRift)
                {
                    return;
                }
                var 
    text yard "Yard:" monstersCount System.Environment.NewLine 
                    
    "Locust:" locustCount System.Environment.NewLine 
                        
    "Haunted:" hauntedCount;
                var 
    layout TextFont.GetTextLayout(text);
                
    TextFont.DrawText(layoutHud.Window.Size.Width Hud.Window.Size.Width 0.16fHud.Window.Size.Height Hud.Window.Size.Height 0.11f);
            }

        }


    Last edited by ch25; 03-26-2017 at 12:53 PM.

    These ads disappear when you log in.

  2. #2
    bm206's Avatar Active Member
    Reputation
    72
    Join Date
    Mar 2017
    Posts
    288
    Thanks G/R
    57/63
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [v7.2] [INTERNATIONAL] [glq] MonstersCountPlugin
    The same with much more information!

Similar Threads

  1. [INTERNATIONAL] [glq] MonstersCountPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 81
    Last Post: 4 Weeks Ago, 02:02 PM
All times are GMT -5. The time now is 11:36 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search