Rebornbuddy
|
Class that houses several functions useful to 3rd-party developers. More...
Static Public Member Functions | |
static Task< bool > | ExecuteCoroutine (this Composite composite, object context=null) |
Executes the composite inside a coroutine. | |
static async Task | HandleLoading () |
Waits indefinitely for the game to finish loading. | |
static async Task< bool > | CloseTradeWindows () |
Checks the status of the global settings for handling trade windows and the closes and blacklists players based on those settings. | |
static async Task< bool > | Return () |
Attempts to use the return command to return to the players home point. | |
static async Task< bool > | Teleport (uint aetheryteId) |
Attempts to teleport to the provided aetheryte. | |
static async Task< MoveResult > | MoveTo (Vector3 destination, string destinationName=null) |
Moves to a location. | |
static async Task< bool > | MoveAndStop (MoveToParameters parameters, float range, bool stopInRange=false, string destinationName=null) |
Moves the player to a specified location and stops when certain conditions are met. | |
static async Task< bool > | MoveAndStop (MoveToParameters parameters, Func< bool > stopPredicate, string destinationName=null) |
Moves the player to the specified destination and stops when the stop condition is met. | |
static async Task< MoveResult > | MoveTo (MoveToParameters parameters, string destinationName=null) |
Moves to a location. | |
static async Task< bool > | StopMoving (string reason=null) |
Executes a MoveStop command if moving and waits for movement to stop. | |
static async Task< bool > | StopAndDismount () |
Stops the player from moving and dismounts. Function 'sleeps' for the proper amount of time after stopping or dismounting If player is already stopped and dismounting the function does not sleep. | |
static Task< bool > | MountUp () |
Attempts to mountup. | |
static async Task< bool > | MountUp (uint mountid) |
Attempts to mountup. | |
static async Task< bool > | SummonFlyingMount () |
Attempts to mount up If the current mount cannot fly, will dismount and mount the black chocobo. | |
static async Task< bool > | TakeOff () |
Attempts to mount up and take off If the current mount cannot fly, will dismount and mount the black chocobo. | |
static async Task< AscendToResult > | AscendTo (float height) |
Attempts to fly vertically up to height Does a raycast before doing anything to see if there is something in our way. | |
static async Task< DescendToResult > | DescendTo (float height) |
Attempts to descend vertically to a given height Does a raycast before doing anything to see if there is something in our way. | |
static async Task< CanLandResult > | CanLand () |
Attempts to find if we can land by descending straight down from the current point. | |
static async Task< CanLandResult > | CanLand (Vector3 pointInAir) |
Attempts to find if we can land by descending straight down from a given location Providing a vector that is more then 100yards away in 3d space will always return maybe as after that point the results were unreliable. | |
static async Task< bool > | Land () |
Attempts to descend all the way until we land. Currently does not implement any advanced logic to ensure that we are currently over someplace that we can actually dismount. | |
static async Task< float > | GetDesynthesisChance (BagSlot slot) |
Gets the chance to succesfully desynthesize an item Leaves the SalvageDialog window open after completion. | |
static async Task< DesynthesisResult > | Desynthesize (BagSlot slot, int delay=5000) |
Attempts to desyntheize the item at the given bagslot. | |
static async Task< bool > | HandOverRequestedItems (bool useHQifNoNQ=true) |
Function attempts to hand over all the items requested by the open request dialog Will attempt to use HQ items if no NQ of the requested item is available by default. | |
static async Task< SellItemResult > | SellItem (BagSlot bagslot, int delay=5000) |
Coroutine that attempts to sell the item to the currently open vendor. | |
static async Task< AetherialReductionResult > | AetherialReduction (BagSlot bagslot) |
Coroutine that attempts to use aetherial reduction on the supplied item. | |
static async Task< SpiritbondResult > | ExtractMateria (BagSlot bagslot, int sleepDuration=5000) |
Coroutine that will attempt to extract an materia from an item. | |
static async Task< SpiritbondResult > | ConvertToMateria (BagSlot bagslot, int sleepDuration=5000) |
Class that houses several functions useful to 3rd-party developers.
|
static |
Coroutine that attempts to use aetherial reduction on the supplied item.
bagslot | Bagslot to reduce |
|
static |
Attempts to fly vertically up to height Does a raycast before doing anything to see if there is something in our way.
height | Height to fly up to |
|
static |
Attempts to find if we can land by descending straight down from the current point.
|
static |
Attempts to find if we can land by descending straight down from a given location Providing a vector that is more then 100yards away in 3d space will always return maybe as after that point the results were unreliable.
pointInAir |
|
static |
Checks the status of the global settings for handling trade windows and the closes and blacklists players based on those settings.
|
static |
|
static |
Attempts to descend vertically to a given height Does a raycast before doing anything to see if there is something in our way.
height | Height to descend to |
|
static |
Attempts to desyntheize the item at the given bagslot.
slot | |
delay | How long to wait in milliseconds after pressing the desyntheize button |
|
static |
Executes the composite inside a coroutine.
composite | |
context |
true
if the composite finished with RunStatus.Success; otherwise false
.
|
static |
Coroutine that will attempt to extract an materia from an item.
bagslot | Slot that contains the item to convert |
sleepDuration | How long to sleep after clicking yes in milliseconds. |
inheritdoc cref="ExtractMateria"/>
|
static |
Gets the chance to succesfully desynthesize an item Leaves the SalvageDialog window open after completion.
slot |
|
static |
Waits indefinitely for the game to finish loading.
|
static |
Function attempts to hand over all the items requested by the open request dialog Will attempt to use HQ items if no NQ of the requested item is available by default.
useHQifNoNQ | if false, fail instead of using |
System.InvalidOperationException | Thrown when we don't have the required amount of a requested item |
|
static |
Attempts to descend all the way until we land. Currently does not implement any advanced logic to ensure that we are currently over someplace that we can actually dismount.
|
static |
Attempts to mountup.
|
static |
Attempts to mountup.
mountid | id of the mount to use |
|
static |
Moves the player to a specified location and stops when certain conditions are met.
parameters | The movement parameters containing location data and other movement settings. |
range | The range within which the movement should stop. |
stopInRange | Indicates whether to stop movement when within the specified range. |
destinationName | An optional name for the destination, used for logging purposes. |
true
if movement was required and completed; otherwise, false
if no movement was necessary.
|
static |
Moves the player to the specified destination and stops when the stop condition is met.
parameters | The parameters defining the movement details, including the destination. |
stopPredicate | A function that determines whether the character should stop moving. |
destinationName | An optional friendly name of the destination for logging or debugging. |
true
if the movement was completed successfully; otherwise, false
.
|
static |
Moves to a location.
parameters | The parameters. |
destinationName | The location name to show in the log. |
|
static |
Moves to a location.
destination | The destination. |
destinationName | The location name to show in log. |
|
static |
Attempts to use the return command to return to the players home point.
|
static |
Coroutine that attempts to sell the item to the currently open vendor.
bagslot | Bagslot to vendor |
delay | How long should we wait for selectyesno and for the slot to become empty, in milliseconds |
|
static |
Stops the player from moving and dismounts. Function 'sleeps' for the proper amount of time after stopping or dismounting If player is already stopped and dismounting the function does not sleep.
|
static |
Executes a MoveStop command if moving and waits for movement to stop.
reason | The reason. |
true
if any action was taken; false
otherwise.
|
static |
Attempts to mount up If the current mount cannot fly, will dismount and mount the black chocobo.
|
static |
Attempts to mount up and take off If the current mount cannot fly, will dismount and mount the black chocobo.
|
static |
Attempts to teleport to the provided aetheryte.
aetheryteId | id of the aetheryte to teleport to |