Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetFlightMasterData

From RoR Wiki

UI Lua API · Game functions
Version: WAR 1.4.8

Returns the destinations offered by the flight master the player is talking to.

destinations = GetFlightMasterData()

Arguments

None.

Returns

destinations
table – Array of destination tables, indexed from 1.

Each destination table has these fields:

Key Type Meaning
zoneNum number Destination zone id.
flightPointID number Id of the flight point.
cost number Price of the flight.
pairing number Pairing (or expansion map region) of the destination.
zoneAvailable boolean true if the destination can be selected.

Details

  • If the Lua state is not available, the function returns nothing.

Errors

None.

Example

From ea_interactionwindow/source/interactionflightmaster.lua:

local tempFlightMasterData = GetFlightMasterData()
for flightIndex, flightData in ipairs( tempFlightMasterData )
do
    ...
        EA_InteractionFlightMasterWindow.flightMasterData[ flightData.pairing ][ flightData.zoneNum ] = {}
        EA_InteractionFlightMasterWindow.flightMasterData[ flightData.pairing ][ flightData.zoneNum ].cost = flightData.cost
        EA_InteractionFlightMasterWindow.flightMasterData[ flightData.pairing ][ flightData.zoneNum ].flightPointID = flightData.flightPointID

See also