What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

FateBot Auto-Blacklisted Fates

Wheredidigo

Community Developer
Joined
Dec 15, 2013
Messages
417
Mastahg,

Sometimes, FateBot will automatically add a Fate to the BlackList because RB can't find a viable path to the Fate (for example, if you're doing Fates by Costa Del Sol, it will BlackList the Fates by WinePort's side of the map since it can't navigate to them).

The problem I'm having is that it doesn't actually add them to the FatebotSettings.Instance.BlackListedFates collection.

I currently have the following code to check if Fates are available so that I can start the Patrol portion of my Destiny Plugin.

Code:
private static bool FatesAreAvailable()
        {
            var activeFates =
                FateManager.ActiveFates.Where(
                    x =>
                        x.Level >= (Core.Me.ClassLevel - Settings.Instance.MinLevel) &&
                        x.Level <= (Core.Me.ClassLevel + Settings.Instance.MaxLevel) &&
                        !FatebotSettings.Instance.BlackListedFates.Contains(x.Name)
                        ).ToList();
            var monsterSlayingFates = new List<FateData>();
            var bossFates = new List<FateData>();
            var escortFates = new List<FateData>();

            if (Settings.Instance.MonsterSlayingEnabled)
            {
                monsterSlayingFates = activeFates.Where(x => x.IsValid && x.Icon == FateIconType.Battle).ToList();
            }
            if (Settings.Instance.BossEnabled)
            {
                bossFates =
                    activeFates.Where(
                        x =>
                            x.IsValid && x.Icon == FateIconType.Boss &&
                            x.Progress >= Settings.Instance.BossPercentRequired).ToList();
            }
            if (Settings.Instance.EscortEnabled)
            {
                escortFates =
                    activeFates.Where(
                        x => x.IsValid && (x.Icon == FateIconType.ProtectNPC || x.Icon == FateIconType.ProtectNPC2))
                        .ToList();
            }

            var availableFates = monsterSlayingFates.Union(bossFates.Union(escortFates));

            return availableFates.Any();
        }

Can you tell me where I can look for the Fates that FateBot auto-blacklists so that I can get the above code to consider them as well when checking if Fates are available.
 
We don't add temporary blacklists to the permanent settings file. Stored in the global blacklist class.

Blacklist.Contains(fate.Id, BlacklistFlags.Node)
 
Back
Top