Demonbuddy for Season 16 released, updates.buddyauth.com !
  • Visit Rebornbuddy
  • Visit Demonbuddy

Crafted Legendary Buff Canceler

Discussion in 'Movement' started by ZephyrMMO, Jun 27, 2017.

  1. ZephyrMMO

    ZephyrMMO Active Member

    Joined:
    Mar 15, 2017
    Messages:
    228
    Likes Received:
    31
    Trophy Points:
    28
    Crafted Legendary Buff Canceler

    No GUI or Settings.
    It just cancels the buff when you reach 4 stacks.

    Credits

    ZephyrMMO

    MH66
    for help explaining threads
    pookthetook
    for explaining IEnumerable

    Changelog:

    v1.0 Initial Release


    Installation Instruction:

    Unzip to your Plugin's folder in your Honorbuddy install directory.


    Source for those who want it

    Code:
    using System;
    using System.Collections.Generic;
    using Styx;
    using Styx.Plugins;
    using Styx.WoWInternals;
    
    namespace Zephyr.WispCancel
    {
        public class WispCancel : HBPlugin
        {
            private readonly IEnumerable<int> _auraIds = new List<int>
            {
                241331, // The Sentinel's Eternal Refuge
                241846, // The Sentinel's Eternal Refuge 2
                241332, // Vigilance Perch
                242066 // Vigilance Perch 2
            };
    
            public override string Author => "ZephyrMMO";
            // Also MH66 + pookthetook for help with the plugin
    
            public override string Name => "CraftedLegCancel";
    
            public override Version Version { get; } = new Version(1, 0, 0);
    
            public override void Pulse()
            {
                foreach (int auraId in _auraIds)
                {
                    WoWAura aura = StyxWoW.Me.GetAuraById(auraId);
                    if (aura != null && aura.StackCount >= 4)
                        aura.TryCancelAura();
                }
            }
        }
    }
    
     

    Attached Files:

    Last edited: Jun 27, 2017
    iPain and mh66 like this.
  2. mh66

    mh66 Community Developer

    Joined:
    Jun 21, 2016
    Messages:
    1,050
    Likes Received:
    63
    Trophy Points:
    48
    Great to see your coding is getting smarter and smarter. Keep up the good work! :)
     
    ZephyrMMO likes this.
  3. Syn-Ack

    Syn-Ack Member

    Joined:
    Jun 15, 2012
    Messages:
    849
    Likes Received:
    5
    Trophy Points:
    18
    bump, for a great solution to this. i went 100-110 without wearing these, and still was wearing ilvl 800 quest boots because of this, i asked all over and i thought it would be a common issue but almost no one even knew of it or had heard of the issue. THANK YOU! Bot kept wanting to stop and eat/drink everytime i got 5 stacks and went into wisp form, therefor sitting there for 60 seconds until it wore off -- needless to say i just took them off, bot still managed to go 98-110 in 7 hours played without them.
     
  4. ZephyrMMO

    ZephyrMMO Active Member

    Joined:
    Mar 15, 2017
    Messages:
    228
    Likes Received:
    31
    Trophy Points:
    28
    Thank you for your feedback @Syn-Ack, I am glad you like the plugin. Please let me know if you have any further needs as I am more then happy to address them
     
  5. ZephyrMMO

    ZephyrMMO Active Member

    Joined:
    Mar 15, 2017
    Messages:
    228
    Likes Received:
    31
    Trophy Points:
    28
    Not super relevant but I will no longer be releasing profiles to this forum due to NDA.

    Sorry to inform the community. But this has not gained interest from the buddy team but has been bought out by a third party. I will not be releasing any further updates due to my NDA. (Non-disclosure agreements)
     
  6. pookthetook

    pookthetook Member Buddy Store Developer

    Joined:
    Jan 28, 2012
    Messages:
    214
    Likes Received:
    21
    Trophy Points:
    18
    https://gist.github.com/paul-shell/028ea7b2887f60e6e1df6b4883a3500f

    I had to straight up spoonfeed you code and told you what to do to go from there, and why (which you still didn't).
    You said you weren't a professional and used that as an excuse.

    So no real loss to the community. Enjoy being greedy. I feel bad for your buyers, I hope they didn't waste too much on you.
     
  7. ZephyrMMO

    ZephyrMMO Active Member

    Joined:
    Mar 15, 2017
    Messages:
    228
    Likes Received:
    31
    Trophy Points:
    28
    I never knew C# before this so why would I? I didn't try to sell this in the first place and I am not the only author on the newest Zingular so I can no longer can just release it for free because the bulk of the work is done by someone else because just as you said here. You had to spoonfeed me code to even build this. My C# is not good enough to accomplish that on my own.

    So perhaps look at the big picture before attacking me.
     

Share This Page