Attack Speed Under Feet menu

User Tag List

Results 1 to 10 of 10
  1. #1
    Noobz's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    143
    Thanks G/R
    8/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Attack Speed Under Feet

    I would like to be able to show the attack speed in a box that I can move around screen. Initially I would like to have it under my feet, and then change coordinates to move it where I want. I found the code in the AttributeLabelListPlugin.cs file. It goes something like this:

    Code:
    LabelList.LabelDecorators.Add(new TopLabelDecorator(Hud)
                {
                    TextFont = Hud.Render.CreateFont("tahoma", 7, 120, 255, 255, 255, false, false, true),
                    BackgroundTexture1 = Hud.Texture.ButtonTextureOrange,
                    BackgroundTexture2 = Hud.Texture.BackgroundTextureGreen,
                    BackgroundTextureOpacity2 = 0.3f,
                    TextFunc = () => Hud.Game.Me.Offense.AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s",
                    HintFunc = () => "attack speed",
                });
    This code is what shows the attack speed above the skillbar. I am too much of a noob to pull that out as a separate cs file to configure as I want. I also found where it has the height and width of the box:

    Code:
    LabelList.WidthFunc = () =>
                {
                    var ui = Hud.Render.GetUiElement("Root.NormalLayer.game_dialog_backgroundScreenPC.game_window_hud_overlay");
                    return Hud.Window.Size.Height * 0.0621f;
                };
                LabelList.HeightFunc = () =>
                {
                    var ui = Hud.Render.GetUiElement("Root.NormalLayer.game_dialog_backgroundScreenPC.game_window_hud_overlay");
                    return Hud.Window.Size.Height * 0.025f;
                };
    Now if the smart people can put it together

    Thanks, Noobz

    Attack Speed Under Feet
  2. #2
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You just need
    Code:
    Hud.Game.Me.Offense.AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s"
    Print it where you want it
    You can refer to other plugins for printed text

  3. #3
    Noobz's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    143
    Thanks G/R
    8/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply and suggestions. I will look at it when I get home and try to figure out what to do with it

  4. #4
    Noobz's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    143
    Thanks G/R
    8/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have played with this but still do not have the skills to pull it off. First of all here are the exceptions:
    2017.06.24 13:51:49.420 error while initializing plugins
    2017.06.24 13:51:49.426 c:\Users\Mark\Desktop\Mouse 174 90 beta\plugins\MH\AttackSpeedPlugin.cs(21,5) : error CS1520: Method must have a return type
    2017.06.24 13:51:49.434 c:\Users\Mark\Desktop\Mouse 174 90 beta\plugins\MH\AttackSpeedPlugin.cs(21,26) : error CS1001: Identifier expected
    2017.06.24 13:51:49.441 c:\Users\Mark\Desktop\Mouse 174 90 beta\plugins\MH\AttackSpeedPlugin.cs(31,22) : error CS1519: Invalid token ',' in class, struct, or interface member declaration
    2017.06.24 13:51:49.447 c:\Users\Mark\Desktop\Mouse 174 90 beta\plugins\MH\AttackSpeedPlugin.cs(33,30) : error CS1519: Invalid token '(' in class, struct, or interface member declaration
    2017.06.24 13:51:49.453 c:\Users\Mark\Desktop\Mouse 174 90 beta\plugins\MH\AttackSpeedPlugin.cs(33,35) : error CS1520: Method must have a return type
    2017.06.24 13:51:49.462 c:\Users\Mark\Desktop\Mouse 174 90 beta\plugins\MH\AttackSpeedPlugin.cs(33,56) : error CS1001: Identifier expected
    2017.06.24 13:51:49.468 c:\Users\Mark\Desktop\Mouse 174 90 beta\plugins\MH\AttackSpeedPlugin.cs(41,14) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

    and here is the code I was trying to use:

    Code:
    using Turbo.Plugins.Default;
    namespace Turbo.Plugins.MH
    {
        public class AttackSpeedPlugin : BasePlugin , IInGameWorldPainter
        {
      	public WorldDecoratorCollection AttackSpeedDecorator { get; set; }
            public AttackSpeedPlugin()
            {
                Enabled = true;
                DisableInTown = false;
            }
    
            public override void Load(IController hud)
            {
                base.Load(hud);
    
                AttackSpeedDecorator = new WorldDecoratorCollection();
            }
    
    
    new TopLabelDecorator(Hud)
                        {
                            TextFont = Hud.Render.CreateFont("tahoma", 7, 180, 255, 255, 255, false, false, true),
                            ExpandedHintFont = expandedHintFont,
                            ExpandedHintWidthMultiplier = expandedHintWidthMultiplier,
                            BackgroundTexture1 = Hud.Texture.ButtonTextureOrange,
                            BackgroundTexture2 = Hud.Texture.BackgroundTextureYellow,
                            BackgroundTextureOpacity2 = 0.75f,
                            TextFunc = () => Hud.Game.Me.Offense.AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s",
                            HintFunc = () => "attack speed",
                        },
    
    LabelList.LabelDecorators.Add(new TopLabelDecorator(Hud)
                {
                    TextFont = Hud.Render.CreateFont("tahoma", 36, 120, 255, 223, 0, false, false, true),
                    BackgroundTexture1 = Hud.Texture.ButtonTextureOrange,
                    BackgroundTexture2 = Hud.Texture.BackgroundTextureGreen,
                    BackgroundTextureOpacity2 = 0.3f,
                    TextFunc = () => Hud.Game.Me.Offense.AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s",
                    HintFunc = () => "attack speed",
                });
    
           
        }
    }
    Now I realize all of that is probably not necessary to get the results that I want, but I am not a coder I tried to take the simplest plugin I could find and replace the things that I did not want with the things I do. I am sure there are problems with syntax and such that I am not able to identify. I just tried to follow the same structure that the other plugin had. Please simplify it for me, thanks for the help all. I was happy there were only 8 exceptions, hehe

  5. #5
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I'll help you create it.

  6. #6
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  7. #7
    Noobz's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    143
    Thanks G/R
    8/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much, works as intended.

    Noobz

  8. #8
    Drazin's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to have some one point me in the right direction so i can learn how to get this to work, i downloaded it into the plugins folder and changed it to a .cs , but i can't get it to work. Any advice is great , or just a place I can read to figure it out.

    Thanks in advance

  9. #9
    Styckz's Avatar Member
    Reputation
    14
    Join Date
    Mar 2017
    Posts
    23
    Thanks G/R
    1/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it would go in /plugins/glq/ it looks like

  10. #10
    JohnWick's Avatar Member
    Reputation
    12
    Join Date
    Mar 2017
    Posts
    102
    Thanks G/R
    82/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Drazin View Post
    Is it possible to have some one point me in the right direction so i can learn how to get this to work, i downloaded it into the plugins folder and changed it to a .cs , but i can't get it to work. Any advice is great , or just a place I can read to figure it out.

    Thanks in advance
    you need to create new folder inside plugins folder and place it in there

    .../plugins/glq/AttackSpeed.cs

Similar Threads

  1. Get a +65% attack speed aura
    By Fwaky in forum World of Warcraft Exploits
    Replies: 38
    Last Post: 05-13-2008, 11:52 PM
  2. [Useless] Attack people under docks.
    By cdillio in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 01-29-2008, 05:10 PM
  3. [Help request] Attack speed
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-21-2008, 06:31 PM
  4. Attack speed... bug?
    By Kykyske in forum World of Warcraft Exploits
    Replies: 4
    Last Post: 12-13-2007, 10:45 PM
  5. Attack Speed
    By sinfulanjel in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-10-2007, 07:43 AM
All times are GMT -5. The time now is 01:58 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