FuBar ToFu

From WowAce Wiki
Jump to: navigation, search
Summary
FuBar - ToFu
A flight path time-remaining plugin for FuBar
TOC 2.4 (20400)
Category Interface Enhancements Addons
Author Kemayo
Details
Version 2.0
Embeds Ace2, AbacusLib, DewdropLib, TabletLib, FuBarPlugin-2.0
Links
Website wowinterface.com
Releases WoWI
Betas Ace SVN Zip
Changelog FishEye

Sometimes when you're on a large flying mammal (or similar) you want to know how long it's going to take to get you to your destination. This FuBar plugin aims to answer that question, telling you both how long you've been flying and how long until you arrive.

It also tries to warn you beforehand at the flight map how long a flight will be, and (because I like utterly useless statistics) tells you how many times you've used that flight path.

One caveat, though: it won't know how long a given flight is until you've taken it once. If you've never taken a flight path before, all it'll tell you is how long you've been flying.

Data is shared across all your characters, so you'll only have to endure the terrible pain of not knowing down to the second when you'll arrive once.


API

Other addons can request flight data from ToFu.

:GetFlightData(start, destination, faction)

Returns the cost, time taken, and number of times flown for the flight path between start and destination. If start or destination is not specified, the value for the flight currently in progress is used. If faction is not specified, the faction of the current character is used.

Returns

number - Cost of the flight, in copper. number - Time taken to fly, in seconds. number - How many times this path has been flown.

Example

local cost, time, taken = ToFu:GetFlightData(start, destination)