hi,
i downloaded a repack that came ready made with a teleporter stone, i wanted to add a couple of places on there and create some custom instances, the parts below are what i added:
The first part is the custom instances page
Code:
function Tele_Menu(item, player) -- Home Page
item:GossipCreateMenu(5667, player, 0)
item:GossipMenuAddItem(5, "|cffff6060Fusion-3.2 Teleport Orb.|r", 998, 0)
item:GossipMenuAddItem(6, "|cFF191970Main Cities|r", 1, 0)
item:GossipMenuAddItem(2, "|cFF191970Custom Instances|r", 8884, 0)
item:GossipMenuAddItem(2, "|cFF191970Azeroth Locations|r", 2, 0)
item:GossipMenuAddItem(2, "|cFF191970Azeroth Instances|r", 3, 0)
item:GossipMenuAddItem(2, "|cFF191970Azeroth Raids|r", 4, 0)
item:GossipMenuAddItem(2, "|cFF191970Outland Locations|r", 5, 0)
item:GossipMenuAddItem(2, "|cFF191970Outland Instances|r", 6, 0)
item:GossipMenuAddItem(2, "|cFF191970Outland Raids|r", 7, 0)
item:GossipMenuAddItem(2, "|cFF191970Northrend Locations|r", 8, 0)
item:GossipMenuAddItem(2, "|cFF191970Northrend Instances|r", 9, 0)
item:GossipMenuAddItem(2, "|cFF191970Northrend Raids|r", 10, 0)
item:GossipMenuAddItem(0, "|cFF191970Foothills|r", 9997, 0)
item:GossipMenuAddItem(5, "|cFF191970Murloc Mall|r", 12, 0)
item:GossipMenuAddItem(9, "|cFF191970Gurubashi Arena|r", 13, 0)
item:GossipMenuAddItem(0, "|cFF191970Next Page|r", 997, 0)
item:GossipSendMenu(player)
end
Code:
if (intid == 8884) then -- Custom Instances
item:GossipCreateMenu(5668, player, 0)
item:GossipMenuAddItem(2, "|c00FF0000Storm Fields |r", 301, 0)
item:GossipMenuAddItem(2, "|c00FF0000Wasteland |r", 302, 0)
item:GossipMenuAddItem(2, "|c00FF0000Lone Island |r", 303, 0)
item:GossipMenuAddItem(0, "|c99006600Home Page|r", 999, 0)
item:GOssipSendMenu(player)
end
Code:
-- Custom Instances
if (intid == 301) then -- Storm Fields
player:Teleport(0, -7630150879, 1423958984, 131.407059)
player:GossipComplete()
end
if (intid == 302) then -- Wasteland
player:Teleport(1, -9253.524414, -215.625259, 8.881005)
player:GossipComplete()
end
if (intid == 303) then -- Lone Island
player:Teleport(1, -11540.571289, -4690.881836, 3.870542)
player:GossipComplete()
end
Below is the last part of the code i added "
Code:
if (intid == 999) then -- Main page
item:GossipCreateMenu(5667, player, 0)
item:GossipMenuAddItem(5, "|cffff6060Fusion-3.2 Teleport Orb.|r", 998, 0)
item:GossipMenuAddItem(6, "|cFF191970Main Cities|r", 1, 0)
item:GossipMenuAddItem(2, "|cFF191970Custom Instances|r", 8884, 0)
item:GossipMenuAddItem(2, "|cFF191970Azeroth Locations|r", 2, 0)
item:GossipMenuAddItem(2, "|cFF191970Azeroth Instances|r", 3, 0)
item:GossipMenuAddItem(2, "|cFF191970Azeroth Raids|r", 4, 0)
item:GossipMenuAddItem(2, "|cFF191970Outland Locations|r", 5, 0)
item:GossipMenuAddItem(2, "|cFF191970Outland Instances|r", 6, 0)
item:GossipMenuAddItem(2, "|cFF191970Outland Raids|r", 7, 0)
item:GossipMenuAddItem(2, "|cFF191970Northrend Locations|r", 8, 0)
item:GossipMenuAddItem(2, "|cFF191970Northrend Instances|r", 9, 0)
item:GossipMenuAddItem(2, "|cFF191970Northrend Raids|r", 10, 0)
item:GossipMenuAddItem(0, "|cFF191970Foothills|r", 9997, 0)
item:GossipMenuAddItem(5, "|cFF191970Murloc Mall|r", 12, 0)
item:GossipMenuAddItem(9, "|cFF191970Gurubashi Arena|r", 13, 0)
item:GossipMenuAddItem(0, "|cFF191970Next Page|r", 997, 0)
item:GossipSendMenu(player)
end
end
For some reason whenever i click on the 'custom instances' on the front page, nothing happens and when i try to click on another location the same happens again. I have to revopen the stone to click on another location.
Is there anything i have done wrong, i opened the LUA from the scripts in my repack with notepad, added my code then started my server.
Thanks
Al