[v7.6] [INTERNATIONAL] [Lis] SkillDamagePlugin menu

User Tag List

Results 1 to 3 of 3
  1. #1
    qwerty.56's Avatar Member
    Reputation
    3
    Join Date
    Apr 2017
    Posts
    17
    Thanks G/R
    3/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [v7.6] [INTERNATIONAL] [Lis] SkillDamagePlugin

    Reflects damage based on Skills and Elements

    111.jpg



    install to: [HUD folder]/plugins/SkillDmgPlugin.cs

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

    namespace 
    Turbo.Plugins
    {
        public class 
    SkillDmgPlugin BasePluginIInGameTopPainter
        
    {
            public 
    TopLabelDecorator DamageInfoDecorator getset; }    
            private 
    long HighestDPS;
            private 
    string skillbonus;
            private 
    string elem;//skillbonus
            
    private string dpsb;//skillbonus
            
    private float dpstmp;//skillbonus
            
    public string WeaponBonuse getset; }
            private 
    bool waiting=false;
            
            public 
    SkillDmgPlugin()
            {
                
    Enabled true;
            }
            public 
    override void Load(IController hud)
            {
                
    base.Load(hud);
                
    WeaponBonuse="";
                 
    DamageInfoDecorator = new TopLabelDecorator(Hud)
                {
                     
    TextFont Hud.Render.CreateFont("Segoe UI Light"8255255234137falsefalsetrue),  

                     
    TextFunc = () => "" dpsb,
                     
    HintFunc = () => ""+skillbonus+WeaponBonuse
                     
    +"\n Max current damage: "
                     
    +ValueToString(HighestDPSValueFormat.LongNumber)
                     +
    "\n("+String.Format("{0:N0}",HighestDPS)+")"
                     
    +"",
                     
                };
            }
            public 
    void PaintTopInGame(ClipState clipState)
            {
                
    dpsb="";
                
    dpstmp=0;    
                
    skillbonus="";

                
    Hud.Game.Me.Powers.UsedSkills.ForEach(skilltest =>{                
                    if(
    skilltest.DamageBonus>0){
                        
    skillbonus+=""+String.Format("{0:N0}",Hud.Game.Me.Offense.SheetDps*(1+skilltest.DamageBonus)*(1+skilltest.ElementalDamageBonus))+" ( "skilltest.CurrentSnoPower.NameLocalized+": "+skilltest.DamageBonus*100+"% + Elemental: "skilltest.ElementalDamageBonus*100+"%) \n";
                        if(
    skilltest.DamageBonus>dpstmp){
                            
    dpstmp=skilltest.DamageBonus;
                            
    dpsb=""+String.Format("{0:N0}",Hud.Game.Me.Offense.SheetDps*(1+skilltest.DamageBonus)*(1+skilltest.ElementalDamageBonus)) ;
                        }
                    }
                });       
    //----------------------------------------------------
                
    if (Hud.Game.Me.Damage.CurrentDps HighestDPSHighestDPS Hud.Game.Me.Damage.CurrentDps;
                if (!
    Hud.Game.IsInTown){if(waiting){HighestDPS=0;waiting=false;};}else{if(!waiting)waiting=true;};
    //----------------------------------------------------            
        
                
    var uiMinimap Hud.Render.MinimapUiElement.Rectangle;
                var 
    xPos uiMinimap.Left-50;
                var 
    yPos 30;
                var 
    bgWidth Hud.Window.Size.Width 0.08f;
                var 
    bgHeight Hud.Window.Size.Height 0.04f;
     

                    if (
    clipState != ClipState.Inventory){
                    return;}else{
                    var 
    uiRect Hud.Render.GetUiElement("Root.NormalLayer.inventory_dialog_mainPage").Rectangle
                    
    DamageInfoDecorator.Paint(uiRect.Left+45fuiRect.Top+250f 10015HorizontalAlign.Center);
                    };
            }

        }

    Last edited by qwerty.56; 01-09-2018 at 11:49 AM.

    [v7.6] [INTERNATIONAL] [Lis] SkillDamagePlugin
  2. Thanks gaagaa_se (1 members gave Thanks to qwerty.56 for this useful post)
  3. #2
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you explain a little what does it do?
    Why in your preview pic it show the max dmg as zero and why is the sheet dps equal to what your plugin shows?

  4. #3
    qwerty.56's Avatar Member
    Reputation
    3
    Join Date
    Apr 2017
    Posts
    17
    Thanks G/R
    3/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    max dmg
    will display the largest damage dealt, and will be reset when leaving the city

    and the damage taken takes into account% of the increase in skill and% of the increase in the elemental damage of the selected rune

    Set and see
    Last edited by qwerty.56; 01-08-2018 at 01:01 PM.

  5. Thanks johnbl (1 members gave Thanks to qwerty.56 for this useful post)

Similar Threads

  1. [v7.2] [INTERNATIONAL] [glq] MonsterRiftProgressionPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 23
    Last Post: 09-07-2021, 04:46 AM
  2. [V7.2][International][Grischu] Override for InventoryAndStashPlugin.cs
    By Grischu in forum TurboHUD Community Plugins
    Replies: 27
    Last Post: 05-21-2019, 08:32 PM
  3. [v7.2] [INTERNATIONAL] [Jack] ItemDropSoundAlertPlugin
    By JackCeparou in forum TurboHUD Community Plugins
    Replies: 22
    Last Post: 07-17-2017, 08:27 PM
  4. [V7.2][International][Grischu] Buffstatistics
    By Grischu in forum TurboHUD Community Plugins
    Replies: 20
    Last Post: 04-05-2017, 02:27 AM
All times are GMT -5. The time now is 03:02 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