InFlight

InFlight is a simple flight timer mod. It simply serves as a lightweight alternative to other flight mods that does the same thing; in most cases, InFlight will do a lot less (which is the main motivation behind InFlight).

5.1.002 12/10/2012 - fix guild perk error
5.1.001 12/08/2012:
- updated for 5.1
- added some support for "Ride Like the Wind" guild perk
- times will not update if guild level is 21 or above
- option to show estimated time with guild perk

3.0.007:
- updated more flight time data; thanks to users' submissions
- added HandyNotes support if HandyNotes_FlightMasters and Cartographer_Notes are not present; HandyNotes support also adds location icons on the continent maps

3.0.003:
- attempt to fix support for Cartographer_Notes again; tested with Cartographer v2.3.1
- use GetTime() to determine flight time

3.0.002a - fix support for Cartographer_Notes up to v2.2; won't work with v3.0

3.0.002:
- change the way data is updated to probably avoid overwriting your new data
- fix cancel buff error with Druids and Shaman; can't test if it still works
- added the Russian translation that I forgot to update
- added the updated zhCN translation that I forgot to update

Patch 6.0.2 (2014-10-14): Removed 'enabled' return. 'loadable' return was changed from a flag to a boolean. Added 'newVersion' return. The enabled state of an addon can now be queried with GetAddOnEnableState.

InFlight works great together with Flight Map for added functionality! It's latest version isn't available on WowInterface unfortunately, but it can be downloaded from http://www.curse.com/addons/wow/flight-map.

I've made the following changes to my own copy of InFlight, the first of which converts guild perk flight times to normal flight times (for database purposes), the second which displays the proper time on the flight bar with the guild perk, and the last which corrects the flight map tooltip to respect the "Factor Guild Perk" option for flight times.

To fix flight times with the guild perk, change the following code in InFlight.lua from

Lua Code:

ifnot porttaken and GetGuildLevel and GetGuildLevel()<21then

vars[source]= vars[source]or{}

vars[source][destination]=floor(totalTime + 0.5)

end

to

Lua Code:

ifnot porttaken then

if GetGuildLevel and GetGuildLevel()>=21then

totalTime = totalTime *1.25

end

vars[source]= vars[source]or{}

vars[source][destination]=floor(totalTime + 0.5)

end

To fix the flight bar to display the correct time with the guild perk change the following code in InFlight.lua from

Lua Code:

if endTime and db.guildperk and GetGuildLevel and GetGuildLevel()>=21then

endTime = endTime *0.75

end

to

Lua Code:

if endTime and db.guildperk and GetGuildLevel and GetGuildLevel()>=21then

endTime = endTime /1.25

end

To fix it so that the flight map shows the proper times with the guild perk option enabled, change the following code in InFlight.lua from

Lua Code:

if ftime >0then

gtt:AddLine(L_duration..FormatTime(ftime), 1, 1, 1)

else

gtt:AddLine(L_duration.."-:--", 0.8, 0.8, 0.8)

end

to

Lua Code:

if ftime >0then

if db.guildperk and GetGuildLevel and GetGuildLevel()>=21then

ftime = ftime /1.25

end

gtt:AddLine(L_duration..FormatTime(ftime), 1, 1, 1)

else

gtt:AddLine(L_duration.."-:--", 0.8, 0.8, 0.8)

end

I've tested this with a character in a 21+ guild and one that wasn't and it seems to be recording all flight path times correctly for both characters. One final note here: it appears that free flight paths, typically from the first town to major city (Goldshire to Stormwind, etc), do NOT have the guild perk applied to them, so your times are going to be weird for them.

EDIT: Did some more testing and changed the math to actually be accurate. Added free flight path note.

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.