Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Managers.ActionManager Class Reference

Handles casting actions and checking if they are ready. More...

Static Public Member Functions

static bool CanCastLocation (string spellName, Vector3 location)
 Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck If there is no spell queued and the spell is not a ground targeting spell and the spell has less then 500ms on its cd.
static bool CanCastLocation (uint spellId, Vector3 location)
 Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck If there is no spell queued and the spell is not a ground targeting spell and the spell has less then 500ms on its cd.
static bool CanCastLocation (SpellData cache, Vector3 location)
 Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck If there is no spell queued and the spell is not a ground targeting spell and the spell has less then 500ms on its cd.
static bool CanCast (string spellName, GameObject targetObject)
 Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck.
static bool CanCast (uint spellId, GameObject targetObject)
 Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck.
static bool CanCast (SpellData cache, GameObject targetObject)
 Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck.
static bool CanCastOrQueue (SpellData spellData, GameObject targetObject)
 Checks if a action is can be cast immeditatly or placed in the games queue for the next action to be executed.
static SpellData GetMaskedAction (uint actionId)
 Get the sub action that will be executed when casting a action that has sub actions Avoid calling this function unnecessarily, it has a function call cost associated with it so only call it on.
static bool CanLimitBreak (GameObject target)
 Check if the target can have the limit break used on them Check ff14bot.RemoteWindows.LimitBreak.Percentage for current limit break level.
static bool LimitBreak (GameObject target)
 Attempts to use the limit break on the provided target Check ff14bot.RemoteWindows.LimitBreak.Percentage for current limit break level.
static void Mount ()
 Summons the mount set in the players settings.
static void Mount (uint id)
 Summons the mount with the given id.
static void ToggleRepairWindow ()
 Toggles the repair window.
static bool ItemUseable (uint data, GameObject targetObject)
static bool HasSpell (string spellName)
 Returns true if the spell name is known.
static bool HasSpell (uint spellId)
 Returns true if spell id is known.
static void StopCasting ()
 Stops casting immediately.
static void Dismount ()
 Dismount from current mount.
static bool DoAction (uint actionId, GameObject targetObject)
 Casts a action at the provided game object, if targetObject is null then the player is the target.
static bool DoAction (string actionName, GameObject targetObject)
 Casts a action at the provided game object, if targetObject is null then the player is the target.
static bool DoAction (SpellData action, GameObject targetObject)
 Casts a action at the provided game object, if targetObject is null then the player is the target.
static bool DoAction (ActionType actionType, uint actionId, GameObject targetObject)
 Casts a action at the provided game object, if targetObject is null then the player is the target.
static bool DoActionLocation (ActionType actionType, uint actionId, Vector3 targetLocation)
 Casts a ground targeted action at the provided location.
static bool DoActionLocation (uint actionId, Vector3 targetLocation)
 Casts a ground targeted action at the provided location.
static bool DoActionLocation (string actionName, Vector3 targetLocation)
 Casts a ground targeted action at the provided location.
static uint GetPvPComboCurrentActionId (uint comboId)
 Gets the current pvp combo action id.
static SpellData GetPvPComboCurrentAction (uint comboId)
 Gets the current pvp combo action spelldata.
static bool DoPvPCombo (uint comboId, GameObject targetObject)
 Executes a pvp combo.
static void InteractWith (GameObject obj)
 Simulates a right click on a object.
static void Sprint ()
 Sprints.
static bool ActionReady (ActionType actionType, uint actionId)
 Checks if a action is 'Ready' to be used.
static SpellRangeCheck InSpellInRangeLOS (uint spellId, GameObject targetObject)
 Check if current gameobject is within range and los.
static SpellRangeCheck InSpellInRangeLOS (String spellname, GameObject targetObject)
 Check if current gameobject is within range and los.
static SpellRangeCheck InSpellInRangeLOS (SpellData spelldata, GameObject targetObject)
 Check if current gameobject is within range and los.
static SpellRangeCheck InSpellInRangeLOS (uint spellId, Vector3 location)
 Check if current gameobject is within range and los.
static SpellRangeCheck InSpellInRangeLOS (String spellname, Vector3 location)
 Check if location is within range and los.
static SpellRangeCheck InSpellInRangeLOS (SpellData spelldata, Vector3 location)
 Check if location is within range and los.
static bool DoMusic (uint actionId)
 Performs a musical note, check the Perform quest behavior for documentation.
static void ClearActionCache ()
 Clears the actioncache.

Static Public Attributes

static readonly WaitTimer LockTimer = new WaitTimer(new TimeSpan(0, 0, 1, 0))
 How long the results in the currentaction list are cached for.

Properties

static float ActionLock [get]
 Gets the time remaining on the "Animation" lock.
static bool ActionQueued [get]
 Check if an action is currently queued.
static uint MountId [get]
 Returns the mount id the bot will try to use. uint.MaxValue is used for random.
static uint CanMount [get]
 Returns the errorcode, 0 is no error and we can mount.
static MountResult[] AvailableMounts [get]
 Array of all the currently available mounts.
static float ComboTimeLeft [get]
 Returns seconds left before current combo chain resets.
static uint LastSpellId [get]
 Last spell id that is part of a combo.
static SpellData LastSpell [get]
 Gets the last casted spell that was part of a combo chain.
static bool IsSprintReady [get]
 Returns true if Sprint() will work.
static bool IsReturnReady [get]
 Returns true if Return is ready.
static Dictionary< uint, SpellDataKnownBlueMageSpells [get]
 All the currently unlocked blue mage spells.
static LocalizedDictionary< uint, SpellDataCurrentActions [get]
 Returns list of current known skills Value is cached for 1 minute.

Detailed Description

Handles casting actions and checking if they are ready.

Member Function Documentation

◆ ActionReady()

bool ff14bot.Managers.ActionManager.ActionReady ( ActionType actionType,
uint actionId )
static

Checks if a action is 'Ready' to be used.

Parameters
actionType
actionId
Returns

◆ CanCast() [1/3]

bool ff14bot.Managers.ActionManager.CanCast ( SpellData cache,
GameObject targetObject )
static

Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck.

Parameters
cache
targetObject
Returns

◆ CanCast() [2/3]

bool ff14bot.Managers.ActionManager.CanCast ( string spellName,
GameObject targetObject )
static

Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck.

Parameters
spellName
targetObject
Returns

◆ CanCast() [3/3]

bool ff14bot.Managers.ActionManager.CanCast ( uint spellId,
GameObject targetObject )
static

Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck.

Parameters
spellId
targetObject
Returns

◆ CanCastLocation() [1/3]

bool ff14bot.Managers.ActionManager.CanCastLocation ( SpellData cache,
Vector3 location )
static

Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck If there is no spell queued and the spell is not a ground targeting spell and the spell has less then 500ms on its cd.

Parameters
cache
location
Returns

◆ CanCastLocation() [2/3]

bool ff14bot.Managers.ActionManager.CanCastLocation ( string spellName,
Vector3 location )
static

Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck If there is no spell queued and the spell is not a ground targeting spell and the spell has less then 500ms on its cd.

Parameters
spellName
targetObject
Returns

◆ CanCastLocation() [3/3]

bool ff14bot.Managers.ActionManager.CanCastLocation ( uint spellId,
Vector3 location )
static

Returns true if the following: If we are in Line-of-sight If there is no error code on the spellcheck If there is no spell queued and the spell is not a ground targeting spell and the spell has less then 500ms on its cd.

Parameters
spellId
location
Returns

◆ CanCastOrQueue()

bool ff14bot.Managers.ActionManager.CanCastOrQueue ( SpellData spellData,
GameObject targetObject )
static

Checks if a action is can be cast immeditatly or placed in the games queue for the next action to be executed.

Parameters
spellData
targetObject
Returns

◆ CanLimitBreak()

bool ff14bot.Managers.ActionManager.CanLimitBreak ( GameObject target)
static

Check if the target can have the limit break used on them Check ff14bot.RemoteWindows.LimitBreak.Percentage for current limit break level.

Parameters
targetunit to limit break
Returns
true if you can limit break

◆ ClearActionCache()

void ff14bot.Managers.ActionManager.ClearActionCache ( )
static

Clears the actioncache.

◆ Dismount()

void ff14bot.Managers.ActionManager.Dismount ( )
static

Dismount from current mount.

◆ DoAction() [1/4]

bool ff14bot.Managers.ActionManager.DoAction ( ActionType actionType,
uint actionId,
GameObject targetObject )
static

Casts a action at the provided game object, if targetObject is null then the player is the target.

Parameters
actionTypeaction type
actionIdSpell action id to cast
targetObjectobject to cast the spell on
Returns
true if was able to cast the spell at the given location

◆ DoAction() [2/4]

bool ff14bot.Managers.ActionManager.DoAction ( SpellData action,
GameObject targetObject )
static

Casts a action at the provided game object, if targetObject is null then the player is the target.

Parameters
actionSpellData for action to cast
targetObjectobject to cast the spell on
Returns
true if was able to cast the spell at the given location

◆ DoAction() [3/4]

bool ff14bot.Managers.ActionManager.DoAction ( string actionName,
GameObject targetObject )
static

Casts a action at the provided game object, if targetObject is null then the player is the target.

Parameters
actionNameSpell action name to cast, must be inside CurrentActions
targetObjectobject to cast the spell on
Returns
true if was able to cast the spell at the given location

◆ DoAction() [4/4]

bool ff14bot.Managers.ActionManager.DoAction ( uint actionId,
GameObject targetObject )
static

Casts a action at the provided game object, if targetObject is null then the player is the target.

Parameters
actionIdSpell action id to cast
targetObjectobject to cast the spell on
Returns
true if was able to cast the spell at the given location

◆ DoActionLocation() [1/3]

bool ff14bot.Managers.ActionManager.DoActionLocation ( ActionType actionType,
uint actionId,
Vector3 targetLocation )
static

Casts a ground targeted action at the provided location.

Parameters
actionTypeaction type
actionIdSpell action id to cast
targetLocationlocation to cast the spell
Returns
true if was able to cast the spell at the given location

◆ DoActionLocation() [2/3]

bool ff14bot.Managers.ActionManager.DoActionLocation ( string actionName,
Vector3 targetLocation )
static

Casts a ground targeted action at the provided location.

Parameters
actionNameSpell action name to cast
targetLocationlocation to cast the spell
Returns
true if was able to cast the spell at the given location

◆ DoActionLocation() [3/3]

bool ff14bot.Managers.ActionManager.DoActionLocation ( uint actionId,
Vector3 targetLocation )
static

Casts a ground targeted action at the provided location.

Parameters
actionIdSpell action id to cast
targetLocationlocation to cast the spell
Returns
true if was able to cast the spell at the given location

◆ DoMusic()

bool ff14bot.Managers.ActionManager.DoMusic ( uint actionId)
static

Performs a musical note, check the Perform quest behavior for documentation.

Parameters
actionId
Returns

◆ DoPvPCombo()

bool ff14bot.Managers.ActionManager.DoPvPCombo ( uint comboId,
GameObject targetObject )
static

Executes a pvp combo.

https://i.imgur.com/0TqyHeQ.png List of pvp combo ids

Parameters
comboId
targetObject
Returns

◆ GetMaskedAction()

SpellData ff14bot.Managers.ActionManager.GetMaskedAction ( uint actionId)
static

Get the sub action that will be executed when casting a action that has sub actions Avoid calling this function unnecessarily, it has a function call cost associated with it so only call it on.

Parameters
actionIdaction id to check
Returns
SpellData of the action that would be executed

◆ GetPvPComboCurrentAction()

SpellData ff14bot.Managers.ActionManager.GetPvPComboCurrentAction ( uint comboId)
static

Gets the current pvp combo action spelldata.

https://i.imgur.com/0TqyHeQ.png List of pvp combo ids

Parameters
comboId
Returns

◆ GetPvPComboCurrentActionId()

uint ff14bot.Managers.ActionManager.GetPvPComboCurrentActionId ( uint comboId)
static

Gets the current pvp combo action id.

https://i.imgur.com/0TqyHeQ.png

List of pvp combo ids

Parameters
comboId
Returns

◆ HasSpell() [1/2]

bool ff14bot.Managers.ActionManager.HasSpell ( string spellName)
static

Returns true if the spell name is known.

Parameters
spellName
Returns

◆ HasSpell() [2/2]

bool ff14bot.Managers.ActionManager.HasSpell ( uint spellId)
static

Returns true if spell id is known.

Parameters
spellId
Returns

◆ InSpellInRangeLOS() [1/6]

SpellRangeCheck ff14bot.Managers.ActionManager.InSpellInRangeLOS ( SpellData spelldata,
GameObject targetObject )
static

Check if current gameobject is within range and los.

Parameters
spelldata
targetObject
Returns

◆ InSpellInRangeLOS() [2/6]

SpellRangeCheck ff14bot.Managers.ActionManager.InSpellInRangeLOS ( SpellData spelldata,
Vector3 location )
static

Check if location is within range and los.

Parameters
spelldata
location
Returns

◆ InSpellInRangeLOS() [3/6]

SpellRangeCheck ff14bot.Managers.ActionManager.InSpellInRangeLOS ( String spellname,
GameObject targetObject )
static

Check if current gameobject is within range and los.

Parameters
spellname
targetObject
Returns

◆ InSpellInRangeLOS() [4/6]

SpellRangeCheck ff14bot.Managers.ActionManager.InSpellInRangeLOS ( String spellname,
Vector3 location )
static

Check if location is within range and los.

Parameters
spellname
location
Returns

◆ InSpellInRangeLOS() [5/6]

SpellRangeCheck ff14bot.Managers.ActionManager.InSpellInRangeLOS ( uint spellId,
GameObject targetObject )
static

Check if current gameobject is within range and los.

Parameters
spellId
targetObject
Returns

◆ InSpellInRangeLOS() [6/6]

SpellRangeCheck ff14bot.Managers.ActionManager.InSpellInRangeLOS ( uint spellId,
Vector3 location )
static

Check if current gameobject is within range and los.

Parameters
spellId
targetObject
Returns

◆ InteractWith()

void ff14bot.Managers.ActionManager.InteractWith ( GameObject obj)
static

Simulates a right click on a object.

Parameters
objobject to right click

◆ ItemUseable()

bool ff14bot.Managers.ActionManager.ItemUseable ( uint data,
GameObject targetObject )
static

◆ LimitBreak()

bool ff14bot.Managers.ActionManager.LimitBreak ( GameObject target)
static

Attempts to use the limit break on the provided target Check ff14bot.RemoteWindows.LimitBreak.Percentage for current limit break level.

Parameters
targetunit to limit break
Returns
true if limit break was attempted to be used

◆ Mount() [1/2]

void ff14bot.Managers.ActionManager.Mount ( )
static

Summons the mount set in the players settings.

◆ Mount() [2/2]

void ff14bot.Managers.ActionManager.Mount ( uint id)
static

Summons the mount with the given id.

Parameters
id

◆ Sprint()

void ff14bot.Managers.ActionManager.Sprint ( )
static

Sprints.

◆ StopCasting()

void ff14bot.Managers.ActionManager.StopCasting ( )
static

Stops casting immediately.

◆ ToggleRepairWindow()

void ff14bot.Managers.ActionManager.ToggleRepairWindow ( )
static

Toggles the repair window.

Member Data Documentation

◆ LockTimer

readonly WaitTimer ff14bot.Managers.ActionManager.LockTimer = new WaitTimer(new TimeSpan(0, 0, 1, 0))
static

How long the results in the currentaction list are cached for.

Property Documentation

◆ ActionLock

float ff14bot.Managers.ActionManager.ActionLock
staticget

Gets the time remaining on the "Animation" lock.

◆ ActionQueued

bool ff14bot.Managers.ActionManager.ActionQueued
staticget

Check if an action is currently queued.

◆ AvailableMounts

MountResult [] ff14bot.Managers.ActionManager.AvailableMounts
staticget

Array of all the currently available mounts.

◆ CanMount

uint ff14bot.Managers.ActionManager.CanMount
staticget

Returns the errorcode, 0 is no error and we can mount.

◆ ComboTimeLeft

float ff14bot.Managers.ActionManager.ComboTimeLeft
staticget

Returns seconds left before current combo chain resets.

◆ CurrentActions

LocalizedDictionary<uint, SpellData> ff14bot.Managers.ActionManager.CurrentActions
staticget

Returns list of current known skills Value is cached for 1 minute.

◆ IsReturnReady

bool ff14bot.Managers.ActionManager.IsReturnReady
staticget

Returns true if Return is ready.

◆ IsSprintReady

bool ff14bot.Managers.ActionManager.IsSprintReady
staticget

Returns true if Sprint() will work.

◆ KnownBlueMageSpells

Dictionary<uint, SpellData> ff14bot.Managers.ActionManager.KnownBlueMageSpells
staticget

All the currently unlocked blue mage spells.

◆ LastSpell

SpellData ff14bot.Managers.ActionManager.LastSpell
staticget

Gets the last casted spell that was part of a combo chain.

◆ LastSpellId

uint ff14bot.Managers.ActionManager.LastSpellId
staticget

Last spell id that is part of a combo.

◆ MountId

uint ff14bot.Managers.ActionManager.MountId
staticget

Returns the mount id the bot will try to use. uint.MaxValue is used for random.

var settings = CharacterSettings.Instance;

if (settings.MountId == 1 &amp;&amp; ChocoboManager.IsStabled)
    return uint.MaxValue;

return settings.MountId;