IPlayerSkill rune names as enumeration? menu

These ads disappear when you log in.

Results 1 to 5 of 5
  1. #1
    JarJarD3's Avatar Active Member CoreCoins User
    Reputation
    73
    Join Date
    Oct 2017
    Posts
    313
    Thanks G/R
    38/70
    Trade Feedback
    0 (0%)

    IPlayerSkill rune names as enumeration?

    Has anybody compiled IPlayerSkill rune names as enumeration for their own convenience?

    I kind of tired writing code like this:
    Code:
    var skill = Hud.Game.Me.Powers.GetUsedSkill(Hud.Sno.SnoPowers.Crusader_Condemn);
    if (skill != null)
    {
        switch (skill.Rune)
        {
            case 1:     // Vacuum
            case 4:     // Shattering Explosion
                paint(PowerDecoratorHelper, 20f);
                break;
            default:
                paint(PowerDecoratorHelper, 15f);
                break;
        }
    }
    or
    Code:
    if (Hud.Game.Me.Powers.GetUsedSkill(Hud.Sno.SnoPowers.Necromancer_Frailty)?.Rune == 4 ||
        Hud.Game.Me.Powers.GetUsedSkill(Hud.Sno.SnoPowers.Necromancer_Devour)?.Rune == 3)
    {
        var helperRadius = 15f + (Hud.Game.Me.Stats.PickupRange / 2f);
        paint(PowerDecoratorHelper, helperRadius);
    }
    and AFAIK there is now way to access all skill runes unless they are used by the player.

  2. #2
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins User Authenticator enabled
    Reputation
    2826
    Join Date
    Jul 2012
    Posts
    2,475
    Thanks G/R
    6/2497
    Trade Feedback
    0 (0%)
    it can't be an enum, because there are multiple values (so value 4 could have lots of names)

  3. #3
    JarJarD3's Avatar Active Member CoreCoins User
    Reputation
    73
    Join Date
    Oct 2017
    Posts
    313
    Thanks G/R
    38/70
    Trade Feedback
    0 (0%)
    Originally Posted by KillerJohn View Post
    it can't be an enum, because there are multiple values (so value 4 could have lots of names)
    My wording was bad, I was thinking something along these lines:
    Code:
    namespace Turbo.Plugins.User
    {
        public abstract class Runes
        {
            public abstract class Barbarian
            {
                public static byte AncientSpear_None = 0;
                public static byte AncientSpear_Ranseur = 1;
                public static byte AncientSpear_Harpoon = 2;
                public static byte AncientSpear_JaggedEdge = 3;
                public static byte AncientSpear_BoulderToss = 4;
                public static byte AncientSpear_RageFlip = 5;
    
                public static byte Avalanche_None = 0;
                public static byte Avalanche_Rune1 = 1;
                public static byte Avalanche_Rune2 = 2;
                public static byte Avalanche_Rune3 = 3;
                public static byte Avalanche_Rune4 = 4;
                public static byte Avalanche_Rune5 = 5;
            }
    
            public abstract class Crusader
            {
                public static byte SteedCharge_None = 0;
                public static byte SteedCharge_Rune1 = 1;
                public static byte SteedCharge_Rune2 = 2;
                public static byte SteedCharge_Rune3 = 3;
                public static byte SteedCharge_Rune4 = 4;
                public static byte SteedCharge_Rune5 = 5;
    
                public static byte SweepAttack_None = 0;
                public static byte SweepAttack_BlazingSweep = 1;
                public static byte SweepAttack_TripAttack = 2;
                public static byte SweepAttack_HolyShock = 3;
                public static byte SweepAttack_GatheringSweep = 4;
                public static byte SweepAttack_InspiringSweep = 5;
            }
        }
    }
    so you can refer a rune like:
    Code:
    var rune = Runes.Barbarian.AncientSpear_Ranseur;
    OFC this has to be a community effort as rune names and values can not be found from D3 binaries, or can they?
    Preferably namespace could be Turbo.Plugins.Default when work has been finished.

    But the skeleton code is easy to generate if there is interest to have something like this for our convenience.

  4. #4
    JackCeparou's Avatar Savvy ? 🐒 CoreCoins User
    Reputation
    509
    Join Date
    Mar 2017
    Posts
    598
    Thanks G/R
    49/472
    Trade Feedback
    0 (0%)
    Originally Posted by JarJarD3 View Post
    OFC this has to be a community effort as rune names and values can not be found from D3 binaries, or can they?.
    Well, most of the D3 data is available 'publicly'.
    Originally Posted by JarJarD3 View Post
    Preferably namespace could be Turbo.Plugins.Default when work has been finished..
    I'm pretty sure KJ will find a better way than me...
    Originally Posted by JarJarD3 View Post
    But the skeleton code is easy to generate if there is interest to have something like this for our convenience.
    Sure, there is the code :
    JackCeparouCompass/HeroClassSkillRunes.cs at 51b57758389b77dbda6b96db346bd3ffed425be2 . JackCeparou/JackCeparouCompass . GitHub

    Some facts :
    • data : d3planner
    • code generation : crappy AF (& private atm)
    • generated code license : WTFPL
    Hide the Rum! --> Default theme customization 101 <--

  5. Thanks JarJarD3 (1 members gave Thanks to JackCeparou for this useful post)
  6. #5
    JarJarD3's Avatar Active Member CoreCoins User
    Reputation
    73
    Join Date
    Oct 2017
    Posts
    313
    Thanks G/R
    38/70
    Trade Feedback
    0 (0%)
    Jack, I should have checked your extensions first!

Similar Threads

  1. Having the Same name as a boss Exploit
    By bjjones13 in forum World of Warcraft Exploits
    Replies: 13
    Last Post: 06-23-2013, 03:56 PM
  2. [Misc] Display your name as "?" WoWBeeZ
    By choweyiii in forum WoW EMU Exploits & Bugs
    Replies: 3
    Last Post: 07-03-2012, 04:38 AM
  3. [How-To] Use your domain name as your realm list
    By GlacialGaming in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 11-20-2010, 05:26 PM
  4. [How-To] Use Your TLD Domain Name as your Realmlist (set realmlist wow.yoursite.com)
    By GlacialGaming in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 09-24-2010, 11:25 AM
All times are GMT -5. The time now is 10:53 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search