[INTERNATIONAL] [Zy] BoneringerStacks menu

User Tag List

Results 1 to 4 of 4
  1. #1
    thetest1's Avatar Active Member
    Reputation
    26
    Join Date
    Feb 2018
    Posts
    24
    Thanks G/R
    5/24
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [INTERNATIONAL] [Zy] BoneringerStacks

    Supported TurboHUD version: 9.1
    Shows how many seconds of boneringer you have.


    Download: [C#] BoneringerStacks - github.com
    Place in ...\th\plugins\Zy

    [INTERNATIONAL] [Zy] BoneringerStacks
  2. #2
    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)
    I dont know if this plugin is workin good, sometimes it appears and fastly disappears when I just commanded boss and I am near him.

  3. #3
    thetest1's Avatar Active Member
    Reputation
    26
    Join Date
    Feb 2018
    Posts
    24
    Thanks G/R
    5/24
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It only shows if you have a base amount of boneringer ( i think its 3s not sure)

  4. #4
    iThinkiWin's Avatar Active Member
    Reputation
    28
    Join Date
    Oct 2018
    Posts
    104
    Thanks G/R
    25/25
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    all runes, only while boneringer equipped, and number rounded.

    Code:
    using System.Globalization;
    using Turbo.Plugins.Default;
    using System.Linq;
    using System;
    using System.Text;
    using System.Collections.Generic;
    
    namespace Turbo.Plugins.Zy
    {
    
        public class BoneringerStacks : BasePlugin, IInGameTopPainter
        {
            private StringBuilder textBuilder;
            private IFont GreenFont;
    
            public static HashSet<ActorSnoEnum> CommandSkeletons = new HashSet<ActorSnoEnum>(new[] { 473417, 473418, 473420, 473426, 473428, 473436 }.Select(x => (ActorSnoEnum)x));
    
            public BoneringerStacks()
            {
                Enabled = true;
            }
    
            public override void Load(IController hud)
            {
                base.Load(hud);
                GreenFont = Hud.Render.CreateFont("tahoma", 8, 255, 0, 255, 0, true, false, false);
                textBuilder = new StringBuilder();
            }
    
            public void PaintTopInGame(ClipState clipState)
            {
                if (clipState != ClipState.BeforeClip) return;
                if (Hud.Game.IsInTown) return;
                if (Hud.Render.UiHidden) return;
                if ((Hud.Game.Me.CubeSnoItem1?.Sno == 1284610785) || Hud.Game.Items.Any(x => x.Location == ItemLocation.RightHand && x.SnoItem.Sno == 1284610785))
                {
                    var x = Hud.Window.Size.Width * 0.7f;
                    var y = Hud.Window.Size.Height * 0.01f;
    
                    double boneringer = 0;
                    var actors = Hud.Game.Actors.Where(a => CommandSkeletons.Contains(a.SnoActor.Sno));
                    if (actors.Count() > 0)
                    {
                        boneringer = actors.First().GetAttributeValue(Hud.Sno.Attributes.Multiplicative_Damage_Percent_Bonus, uint.MaxValue);
                    }
                    if (boneringer >= 2.4)
                    {
                        textBuilder.Clear();
                        var BoneRingerCalc1 = boneringer / 1.5f; // Command Multiplier
                        var BoneRingerCalc2 = BoneRingerCalc1 / 1.6f; // Enforcer Multiplier
                        var BoneRingerCalc3 = BoneRingerCalc2 - 1f;
                        var BoneRingerTime = BoneRingerCalc3 * 100f / 30.0;
                        var BoneRingerTimeR = Math.Round(BoneRingerTime);
                        
                        textBuilder.AppendFormat("{0}", BoneRingerTimeR);
                        textBuilder.AppendLine();
    
                        var layout = GreenFont.GetTextLayout(textBuilder.ToString());
                        GreenFont.DrawText(layout, x, y);
                    }
                }
            }
        }
    }
    Last edited by iThinkiWin; 09-04-2019 at 04:24 AM.

Similar Threads

  1. [INTERNATIONAL] [Zy] OculusColor
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 21
    Last Post: 08-04-2020, 05:34 AM
  2. [INTERNATIONAL] [Zy] NayrStacks
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 6
    Last Post: 07-24-2020, 12:43 AM
  3. [INTERNATIONAL] [Zy] ArchonDowntime
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 13
    Last Post: 08-28-2019, 02:19 AM
  4. [v7.3] [INTERNATIONAL] [Zy] MissingCursesPlugin
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 2
    Last Post: 01-19-2019, 03:37 AM
  5. President Bush, CAUGHT SWEARING at international meeting
    By mantalcore in forum Community Chat
    Replies: 15
    Last Post: 08-14-2006, 09:41 AM
All times are GMT -5. The time now is 08:14 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