Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API TaxiNodeCost

Last wiki revision 2022-08-03

Returns the cost of the flight path in copper. cost = TaxiNodeCost(slot)

  • slot: - 1 ascending to, out of bound numbers triggers lua error.
  • cost: - returns the cost in copper, 0 if destination is undiscovered, free or current node.

The following example will print the name and cost for each flight point that is not free. for i= 1, NumTaxiNodes do if (TaxiNodeCost(i) > 0) then print(format("Flight to %s costs: %s", TaxiNodeName(i), GetCoinText(TaxiNodeCost(i)," "))) end end

  • Taxi information is only available while the taxi map is open -- between the TAXIMAP_OPENED and TAXIMAP_CLOSED events.
  • "invalid taxi node slot" is an error triggered by out-of-bound slot (0 or NumTaxiNodes < slot) or if there is no taxi map open.
  • For some reason, this returns the original cost of the given slot, not taking into account any reductions you get due to faction. -pircio
  • (slot)
  • (slot)

Source

https://warcraft.wiki.gg/wiki/API_TaxiNodeCost · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.