heinzskies
Member
- Joined
- Sep 7, 2014
- Messages
- 57
This only works for Dark Devices Fate currently, but you can change it to your own by entering the ID, the order doesn't matter except for the last fate.
I'm going to rewrite this soon, so I can overwrite some of the fate bot logic. Currently it just sets Return point to None and force the fate to the current fate.
Create a file call ChainIt.cs in the Plugins directory. Paste below in.
I'm going to rewrite this soon, so I can overwrite some of the fate bot logic. Currently it just sets Return point to None and force the fate to the current fate.
Create a file call ChainIt.cs in the Plugins directory. Paste below in.
Code:
using System;
using System.Linq;
using System.Windows.Media;
using ff14bot.AClasses;
using ff14bot.BotBases;
using ff14bot.Helpers;
using ff14bot.Managers;
namespace ChainIt
{
public class ChainIt : BotPlugin
{
public override string Author { get { return "Heinzskies"; } }
public override Version Version { get { return new Version(0, 0, 1); } }
public override string Name { get { return "ChainIt"; } }
public override string Description { get { return "Allow you to do chain quest without going back."; } }
public override bool WantButton
{
get { return false; }
}
public new bool Equals(BotPlugin other)
{
throw new NotImplementedException();
}
bool _lastFateChainActive = false;
FateIdleAction _userAction = FateIdleAction.Nothing;
public override void OnPulse()
{
uint[] fatesChain = { 643, 644, 645, 646 };
foreach (var fateChain in from fateChain in fatesChain let fateSearch = FateManager.ActiveFates.Count(fate => fate.Id == fateChain) where fateSearch != 0 select fateChain)
{
ActiveChain();
if (fatesChain.Last() == fateChain)
{
_lastFateChainActive = true;
}
FatebotSettings.Instance.ThisFateOnly = FateManager.GetFateById(fateChain).Name;
}
if (FateManager.ActiveFates.Count(fate => fate.Id == fatesChain.Last()) == 0 && _lastFateChainActive)
{
_lastFateChainActive = false;
FatebotSettings.Instance.ThisFateOnly = "";
FatebotSettings.Instance.IdleAction = _userAction;
}
}
private void ActiveChain()
{
if (FatebotSettings.Instance.IdleAction != FateIdleAction.Nothing)
{
_userAction = FatebotSettings.Instance.IdleAction;
}
FatebotSettings.Instance.IdleAction = FateIdleAction.Nothing;
}
public override void OnInitialize()
{
}
public override void OnShutdown()
{
throw new NotImplementedException();
}
public override void OnEnabled()
{
Logging.Write(Colors.SkyBlue, "[ChainIt] v" + Version + " Enabled");
}
public override void OnDisabled()
{
}
}
}
Last edited: