Code:
local GetDisplay = 17699
local NPCID = 210000
function Flight_Master_OnGossipTalk(pUnit, event, player, pMisc)
pUnit:GossipCreateMenu(50, player, 0)
pUnit:GossipMenuAddItem(9, "Get me to the excavation site!", 1, 0)
pUnit:GossipMenuAddItem(9, "Leave.", 2, 0)
pUnit:GossipSendMenu(player)
end
function Flight_Master_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
if (intid == 1) then
local CustomFlightPath = LuaTaxi:CreateTaxi()
--CustomFlightPath:AddPathNode(MapID, X, Y, Z) -- This line had no numbers, thus the error
-- was telling you that a number was expected, but no value was got (it assumed those were
-- variables with no value).
CustomFlightPath:AddPathNode(603, -0.916, 331.3, 464.8)
CustomFlightPath:AddPathNode(603, 32.37, 234.0, 481.6)
CustomFlightPath:AddPathNode(603, 88.66, 135.0, 487.5)
CustomFlightPath:AddPathNode(603, 142.8, 57.08, 440.4)
CustomFlightPath:AddPathNode(603, 374.5, -5.453, 442.3)
CustomFlightPath:AddPathNode(603, 567.3, -9.881, 435.9)
CustomFlightPath:AddPathNode(603, 585.8, 157.4, 395.9)
CustomFlightPath:AddPathNode(603, 621.7, 255.4, 360.8)
player:StartTaxi(CustomFlightPath, GetDisplay)
end
player:GossipComplete()
end
RegisterUnitGossipEvent(NPCID, 1, "Flight_Master_OnGossipTalk")
RegisterUnitGossipEvent(NPCID, 2, "Flight_Master_OnGossipSelect")