Properly Extend BuffRuleCalculator menu

User Tag List

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

    Properly Extend BuffRuleCalculator

    I've changed the BuffRuleCalculator.cs 77 to this:

    Code:
      if (rule.MaximumIconCount > 0)
                    {
                        if (buff.IconCounts[iconIndex] > rule.MaximumIconCount)
                        {
                            continue;;
                        }
                    }
                    else if (buff.IconCounts[iconIndex] < rule.MinimumIconCount)
                    {
                        continue;
    
                    }
    and added this line to BuffRule.cs

    Code:
            public int MaximumIconCount { get; set; }
    I am now able to use it like this:

    Code:
    //Show Sweeping Wind only when >0 <=3 Stacks
                top.Add(new BuffRule(96090) { IconIndex = 0, MaximumIconCount = 3, ShowStacks = true, ShowTimeLeft = false, IconSizeMultiplier = 1.25f });  //Sweeping Wind
    Which will result in showing the buff icon only, when I have between 1-3 Stacks.

    This customization will be overriden with a new THud version tho. How can I change the behaviour properly so new versions will not undo my code?

    The purpose is: I don't care for having Sweeping Winds at >3 Stacks, because the exact stackcount doesn't matter. I use it as a warning, that I have to carefully consume my stacks before it will run out.

    Properly Extend BuffRuleCalculator

Similar Threads

  1. How to properly DL model edits?
    By Sykes14 in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 05-10-2007, 08:05 PM
  2. <inser belt name> .blp, how to edit it properly?
    By Diclonius in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 04-29-2007, 06:14 PM
  3. New thread not working properly?
    By Linkitch in forum Suggestions
    Replies: 8
    Last Post: 01-06-2007, 12:07 AM
  4. Guide to Proper Scamming
    By Datonking in forum World of Warcraft Guides
    Replies: 1
    Last Post: 10-03-2006, 07:07 PM
  5. ~ Extended Duration items ~
    By jacca in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 07-15-2006, 02:33 AM
All times are GMT -5. The time now is 10:25 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