Code:
-- Ulduar Teleporter pads
-- coded by xalcon
--remake by newmoon
ul_locations = { { "Expedition Base Camp", { -707.3, -92.7, 430.3 } },
{ "Formation Grounds", { 132.2, -35.4, 410.3 } },
{ "Colossal Forge", { 554.4, -12.2, 410.1 } },
{ "Scrapyard", { 927.1, -11.4, 419 } },
{ "Antechamber of Ulduar", { 1499, -24, 421 } },
{ "Shattered Walkway", { 1859, -24, 449 } },
{ "Conservatory of Life", { 2102.2, -24, 421.244 } },
{ "Spark of Imagination", { 2520, 2569, 412.5 } },
{ "Descent into Madness", { 1853.4, -24.7, 334.2 } }, }
ul_mapid = 603
-- Dynamic Teleport-List Builder :D
function UL_TeleportOnView(pUnit, event, player)
pUnit:GossipObjectCreateMenu(100, player, 0)
for i=1, table.getn(ul_locations), 1 do
pUnit:GossipObjectMenuAddItem(0, ul_locations[i][1], i, 0)
end
pUnit:GossipObjectSendMenu(player)
end
function UL_TeleportOnUse(pUnit, event, player, id, intid)
player:GossipComplete()
local x = ul_locations[intid][2][1]
local y = ul_locations[intid][2][2]
local z = ul_locations[intid][2][3]
player:Teleport(ul_mapid,x,y,z)
end
RegisterGameObjectEvent (194569, 4, "UL_TeleportOnView")
RegisterGOGossipEvent(194569, 2, "UL_TeleportOnUse")
the error I'm getting is: