Mario
12-02-09, 01:57 AM
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(0, "Horde cities", 1, 0)
unit:GossipMenuAddItem(0, "Alliance cities", 2, 0)
unit:GossipMenuAddItem(0, "Azeroth Instances", 5, 0)
unit:GossipMenuAddItem(0, "Outland Instances", 6, 0)
unit:GossipMenuAddItem(5, "Shattrath", 51, 0)
unit:GossipMenuAddItem(0, "Outland Location", 7, 0)
unit:GossipMenuAddItem(0, "Azeroth Location", 10, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 1) then
unit:GossipCreateMenu(101, player, 0)
unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
unit:GossipMenuAddItem(5, "Orgrimmar", 9, 0)
unit:GossipMenuAddItem(5, "Undercity", 10, 0)
unit:GossipMenuAddItem(5, "Thunder Bluff", 11, 0)
unit:GossipMenuAddItem(5, "Silvermoon", 12, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
unit:GossipCreateMenu(102, player, 0)
unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
unit:GossipMenuAddItem(5, "Stormwind", 14, 0)
unit:GossipMenuAddItem(5, "Ironforge", 15, 0)
unit:GossipMenuAddItem(5, "Darnassus", 16, 0)
unit:GossipMenuAddItem(5, "Exodar", 17, 0)
unit:GossipSendMenu(player)
end
if(intid == 5) then
unit:GossipCreateMenu(103, player, 0)
unit:GossipMenuAddItem(5, "Azeroth Raids", 3, 0)
unit:GossipMenuAddItem(5, "Shadowfang Keep", 19, 0)
unit:GossipMenuAddItem(5, "Scarlet Monastery", 20, 0)
unit:GossipMenuAddItem(5, "Zul'Farrak", 21, 0)
unit:GossipMenuAddItem(5, "Stratholme", 22, 0)
unit:GossipMenuAddItem(5, "Scholomance", 23, 0)
unit:GossipMenuAddItem(5, "Ragefire", 110, 0)
unit:GossipMenuAddItem(5, "Deathmines", 170, 0)
unit:GossipMenuAddItem(5, "Those caverns in barrens xX", 111, 0)
unit:GossipMenuAddItem(5, "Blackfathom deepths", 112, 0)
unit:GossipMenuAddItem(5, "This instance in Stormwind biggrin.gif", 113, 0)
unit:GossipMenuAddItem(5, "Gnomeregan", 114, 0)
unit:GossipMenuAddItem(5, "Razorfen thing number 1", 115, 0)
unit:GossipMenuAddItem(5, "Razorfen hills", 116, 0)
unit:GossipMenuAddItem(5, "Uldaman", 117, 0)
unit:GossipMenuAddItem(5, "Maraudon", 118, 0)
unit:GossipMenuAddItem(5, "Sunken temple", 119, 0)
unit:GossipMenuAddItem(5, "Lower Blackrock", 120, 0)
unit:GossipMenuAddItem(5, "Dire Maul", 121, 0)
unit:GossipMenuAddItem(5, "Upper Blackrock", 122, 0)
unit:GossipSendMenu(player)
end
if(intid == 6) then
unit:GossipCreateMenu(104, player, 0)
unit:GossipMenuAddItem(5, "Outland Raids", 4, 0)
unit:GossipMenuAddItem(5, "Hellfire Ramparts", 25, 0)
unit:GossipMenuAddItem(5, "Blood furnace", 26, 0)
unit:GossipMenuAddItem(5, "Shattered Halls", 27, 0)
unit:GossipMenuAddItem(5, "Underbog", 28, 0)
unit:GossipMenuAddItem(5, "Slave pens", 29, 0)
unit:GossipMenuAddItem(5, "Steam whatever tongue.gif", 30, 0)
unit:GossipMenuAddItem(5, "Mana tombs", 31, 0)
unit:GossipMenuAddItem(5, "Auchenai crypts", 32, 0)
unit:GossipMenuAddItem(5, "Sethekk halls", 33, 0)
unit:GossipMenuAddItem(5, "Shadow lab", 34, 0)
unit:GossipMenuAddItem(5, "Mechanar", 35, 0)
unit:GossipMenuAddItem(5, "Bota whatever Oo", 36, 0)
unit:GossipMenuAddItem(5, "Arcatraz", 37, 0)
unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
unit:GossipSendMenu(player)
end
if(intid == 3) then
unit:GossipCreateMenu(105, player, 0)
unit:GossipMenuAddItem(5, "Onyxias Lair", 39, 0)
unit:GossipMenuAddItem(5, "Molten Core", 40, 0)
unit:GossipMenuAddItem(5, "Blackwing Lair", 123, 0)
unit:GossipMenuAddItem(5, "Zul'Gurub", 41, 0)
unit:GossipMenuAddItem(5, "Karazhan", 42, 0)
unit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj", 43, 0)
unit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj", 44, 0)
unit:GossipMenuAddItem(5, "Naxxramas", 45, 0)
unit:GossipMenuAddItem(5, "Zul'Aman", 124, 0)
unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
unit:GossipSendMenu(player)
end
if(intid == 4) then
unit:GossipCreateMenu(106, player, 0)
unit:GossipMenuAddItem(5, "Black Temple", 50, 0)
unit:GossipMenuAddItem(5, "Tempest Keep", 49, 0)
unit:GossipMenuAddItem(5, "Gruuls Lair", 48, 0)
unit:GossipMenuAddItem(5, "Serpentshrine caverns", 47, 0)
unit:GossipMenuAddItem(5, "Maghteridons Lair", 46, 0)
unit:GossipMenuAdditem(5, "The EYE", 180, 0)
unit:GossipSendMenu(player)
end
if(intid == 7) then
unit:GossipCreateMenu(107, player, 0)
unit:GossipMenuAddItem(5, "Hellfire Halfisland", 200, 0)
unit:GossipMenuAddItem(5, "Zangermarsh", 201, 0)
unit:GossipMenuAddItem(5, "Nagrand", 202, 0)
unit:GossipMenuAddItem(5, "Blades Edge Mountains", 203, 0)
unit:GossipMenuAddItem(5, "Netherstorm", 204, 0)
unit:GossipMenuAddItem(5, "Terokkar Forest", 205, 0)
unit:GossipMenuAddItem(5, "Shadowmoon Valley", 206, 0)
unit:GossipSendMenu(player)
end
if(intid == 8) then
unit:GossipCreateMenu(108, player, 0)
unit:GossipMenuAddItem(5, "Eastern Kingdoms", 182, 0)
unit:GossipMenuAddItem(5, "Kalimidor", 184, 0)
unit:GossipMenuAddItem(5, "Gurubashi Arena", 181, 0)
unit:GossipSendMenu(player)
end
if(intid == 182) then
unit:GossipCreateMenu(109, player, 0)
unit:GossipMenuAddItem(5, "Eastern Plaguelands", 300, 0)
unit:GossipMenuAddItem(5, "Western Plaguelands", 301, 0)
unit:GossipMenuAddItem(5, "Tristfal Glades", 302, 0)
unit:GossipMenuAddItem(5, "Alterac Mountains", 303, 0)
unit:GossipMenuAddItem(5, "Silverpine Forest", 304, 0)
unit:GossipMenuAddItem(5, "Hillsbrad Foothills", 305, 0)
unit:GossipMenuAddItem(5, "The Hinterlands", 306, 0)
unit:GossipMenuAddItem(5, "Arathi Highlands", 307, 0)
unit:GossipMenuAddItem(5, "Wetlands", 308, 0)
unit:GossipMenuAddItem(5, "Dun Morogh", 309, 0)
unit:GossipSendMenu(player)
end
if(intid == 183) then
unit:GossipCreateMenu(110, player, 0)
unit:GossipMenuAddItem(5, "Loch Modan", 310, 0)
unit:GossipMenuAddItem(5, "Badlands", 311, 0)
unit:GossipMenuAddItem(5, "Blackrock Mountain", 312, 0)
unit:GossipMenuAddItem(5, "Redridge Mountain", 313, 0)
unit:GossipMenuAddItem(5, "Elwynn Forest", 314, 0)
unit:GossipMenuAddItem(5, "Duskwood", 315, 0)
unit:GossipMenuAddItem(5, "Westfall", 316, 0)
unit:GossipMenuAddItem(5, "Swamp of Sorrows", 317, 0)
unit:GossipMenuAddItem(5, "The Blasted Lands", 318, 0)
unit:GossipMenuAddItem(5, "Deadwind Pass", 319, 0)
unit:GossipMenuAddItem(5, "Stranglethorn Vale", 320, 0)
unit:GossipSendMenu(player)
end
if(intid == 184) then
unit:GossipCreateMenu(111, player, 0)
unit:GossipMenuAdditem(5, "Moonglade", 330, 0)
unit:GossipMenuAdditem(5, "Winterspring", 331, 0)
unit:GossipMenuAdditem(5, "Felwood", 332, 0)
unit:GossipMenuAdditem(5, "Darkshore", 333, 0)
unit:GossipMenuAdditem(5, "Azshara", 334, 0)
unit:GossipMenuAdditem(5, "Ashenvale", 335, 0)
unit:GossipMenuAdditem(5, "Stonetalon Mountains", 336, 0)
unit:GossipMenuAdditem(5, "The Barrens", 337, 0)
unit:GossipMenuAdditem(5, "Durotar", 338, 0)
unit:GossipSendMenu(player)
end
if(intid == 185) then
unit:GossipCreateMenu(112, player, 0)
unit:GossipMenuAdditem(5, "Mulgore", 339, 0)
unit:GossipMenuAdditem(5, "Desolace", 340, 0)
unit:GossipMenuAdditem(5, "Dustwallow Marsh", 341, 0)
unit:GossipMenuAdditem(5, "Feralas", 342, 0)
unit:GossipMenuAdditem(5, "Thousand Needles", 343, 0)
unit:GossipMenuAdditem(5, "Tanaris Desert", 344, 0)
unit:GossipMenuAdditem(5, "Un'Goro Crater", 345, 0)
unit:GossipMenuAdditem(5, "Silithus", 346, 0)
unit:GossipSendMenu(player)
end
if(intid == 12) then
player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
end
if(intid == 9) then
player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
end
if(intid == 11) then
player:Teleport(1, -1304.569946, 205.285004, 68.681396)
end
if(intid == 10) then
player:Teleport(0, 2050.203125, 285.650604, 56.994549)
end
RegisterUnitGossipEvent(989898, 1, "On_Gossip")
RegisterUnitGossipEvent(989898, 2, "Gossip_Submenus")
anyone know whats wrong with my porter?
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(0, "Horde cities", 1, 0)
unit:GossipMenuAddItem(0, "Alliance cities", 2, 0)
unit:GossipMenuAddItem(0, "Azeroth Instances", 5, 0)
unit:GossipMenuAddItem(0, "Outland Instances", 6, 0)
unit:GossipMenuAddItem(5, "Shattrath", 51, 0)
unit:GossipMenuAddItem(0, "Outland Location", 7, 0)
unit:GossipMenuAddItem(0, "Azeroth Location", 10, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 1) then
unit:GossipCreateMenu(101, player, 0)
unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
unit:GossipMenuAddItem(5, "Orgrimmar", 9, 0)
unit:GossipMenuAddItem(5, "Undercity", 10, 0)
unit:GossipMenuAddItem(5, "Thunder Bluff", 11, 0)
unit:GossipMenuAddItem(5, "Silvermoon", 12, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
unit:GossipCreateMenu(102, player, 0)
unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
unit:GossipMenuAddItem(5, "Stormwind", 14, 0)
unit:GossipMenuAddItem(5, "Ironforge", 15, 0)
unit:GossipMenuAddItem(5, "Darnassus", 16, 0)
unit:GossipMenuAddItem(5, "Exodar", 17, 0)
unit:GossipSendMenu(player)
end
if(intid == 5) then
unit:GossipCreateMenu(103, player, 0)
unit:GossipMenuAddItem(5, "Azeroth Raids", 3, 0)
unit:GossipMenuAddItem(5, "Shadowfang Keep", 19, 0)
unit:GossipMenuAddItem(5, "Scarlet Monastery", 20, 0)
unit:GossipMenuAddItem(5, "Zul'Farrak", 21, 0)
unit:GossipMenuAddItem(5, "Stratholme", 22, 0)
unit:GossipMenuAddItem(5, "Scholomance", 23, 0)
unit:GossipMenuAddItem(5, "Ragefire", 110, 0)
unit:GossipMenuAddItem(5, "Deathmines", 170, 0)
unit:GossipMenuAddItem(5, "Those caverns in barrens xX", 111, 0)
unit:GossipMenuAddItem(5, "Blackfathom deepths", 112, 0)
unit:GossipMenuAddItem(5, "This instance in Stormwind biggrin.gif", 113, 0)
unit:GossipMenuAddItem(5, "Gnomeregan", 114, 0)
unit:GossipMenuAddItem(5, "Razorfen thing number 1", 115, 0)
unit:GossipMenuAddItem(5, "Razorfen hills", 116, 0)
unit:GossipMenuAddItem(5, "Uldaman", 117, 0)
unit:GossipMenuAddItem(5, "Maraudon", 118, 0)
unit:GossipMenuAddItem(5, "Sunken temple", 119, 0)
unit:GossipMenuAddItem(5, "Lower Blackrock", 120, 0)
unit:GossipMenuAddItem(5, "Dire Maul", 121, 0)
unit:GossipMenuAddItem(5, "Upper Blackrock", 122, 0)
unit:GossipSendMenu(player)
end
if(intid == 6) then
unit:GossipCreateMenu(104, player, 0)
unit:GossipMenuAddItem(5, "Outland Raids", 4, 0)
unit:GossipMenuAddItem(5, "Hellfire Ramparts", 25, 0)
unit:GossipMenuAddItem(5, "Blood furnace", 26, 0)
unit:GossipMenuAddItem(5, "Shattered Halls", 27, 0)
unit:GossipMenuAddItem(5, "Underbog", 28, 0)
unit:GossipMenuAddItem(5, "Slave pens", 29, 0)
unit:GossipMenuAddItem(5, "Steam whatever tongue.gif", 30, 0)
unit:GossipMenuAddItem(5, "Mana tombs", 31, 0)
unit:GossipMenuAddItem(5, "Auchenai crypts", 32, 0)
unit:GossipMenuAddItem(5, "Sethekk halls", 33, 0)
unit:GossipMenuAddItem(5, "Shadow lab", 34, 0)
unit:GossipMenuAddItem(5, "Mechanar", 35, 0)
unit:GossipMenuAddItem(5, "Bota whatever Oo", 36, 0)
unit:GossipMenuAddItem(5, "Arcatraz", 37, 0)
unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
unit:GossipSendMenu(player)
end
if(intid == 3) then
unit:GossipCreateMenu(105, player, 0)
unit:GossipMenuAddItem(5, "Onyxias Lair", 39, 0)
unit:GossipMenuAddItem(5, "Molten Core", 40, 0)
unit:GossipMenuAddItem(5, "Blackwing Lair", 123, 0)
unit:GossipMenuAddItem(5, "Zul'Gurub", 41, 0)
unit:GossipMenuAddItem(5, "Karazhan", 42, 0)
unit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj", 43, 0)
unit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj", 44, 0)
unit:GossipMenuAddItem(5, "Naxxramas", 45, 0)
unit:GossipMenuAddItem(5, "Zul'Aman", 124, 0)
unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
unit:GossipSendMenu(player)
end
if(intid == 4) then
unit:GossipCreateMenu(106, player, 0)
unit:GossipMenuAddItem(5, "Black Temple", 50, 0)
unit:GossipMenuAddItem(5, "Tempest Keep", 49, 0)
unit:GossipMenuAddItem(5, "Gruuls Lair", 48, 0)
unit:GossipMenuAddItem(5, "Serpentshrine caverns", 47, 0)
unit:GossipMenuAddItem(5, "Maghteridons Lair", 46, 0)
unit:GossipMenuAdditem(5, "The EYE", 180, 0)
unit:GossipSendMenu(player)
end
if(intid == 7) then
unit:GossipCreateMenu(107, player, 0)
unit:GossipMenuAddItem(5, "Hellfire Halfisland", 200, 0)
unit:GossipMenuAddItem(5, "Zangermarsh", 201, 0)
unit:GossipMenuAddItem(5, "Nagrand", 202, 0)
unit:GossipMenuAddItem(5, "Blades Edge Mountains", 203, 0)
unit:GossipMenuAddItem(5, "Netherstorm", 204, 0)
unit:GossipMenuAddItem(5, "Terokkar Forest", 205, 0)
unit:GossipMenuAddItem(5, "Shadowmoon Valley", 206, 0)
unit:GossipSendMenu(player)
end
if(intid == 8) then
unit:GossipCreateMenu(108, player, 0)
unit:GossipMenuAddItem(5, "Eastern Kingdoms", 182, 0)
unit:GossipMenuAddItem(5, "Kalimidor", 184, 0)
unit:GossipMenuAddItem(5, "Gurubashi Arena", 181, 0)
unit:GossipSendMenu(player)
end
if(intid == 182) then
unit:GossipCreateMenu(109, player, 0)
unit:GossipMenuAddItem(5, "Eastern Plaguelands", 300, 0)
unit:GossipMenuAddItem(5, "Western Plaguelands", 301, 0)
unit:GossipMenuAddItem(5, "Tristfal Glades", 302, 0)
unit:GossipMenuAddItem(5, "Alterac Mountains", 303, 0)
unit:GossipMenuAddItem(5, "Silverpine Forest", 304, 0)
unit:GossipMenuAddItem(5, "Hillsbrad Foothills", 305, 0)
unit:GossipMenuAddItem(5, "The Hinterlands", 306, 0)
unit:GossipMenuAddItem(5, "Arathi Highlands", 307, 0)
unit:GossipMenuAddItem(5, "Wetlands", 308, 0)
unit:GossipMenuAddItem(5, "Dun Morogh", 309, 0)
unit:GossipSendMenu(player)
end
if(intid == 183) then
unit:GossipCreateMenu(110, player, 0)
unit:GossipMenuAddItem(5, "Loch Modan", 310, 0)
unit:GossipMenuAddItem(5, "Badlands", 311, 0)
unit:GossipMenuAddItem(5, "Blackrock Mountain", 312, 0)
unit:GossipMenuAddItem(5, "Redridge Mountain", 313, 0)
unit:GossipMenuAddItem(5, "Elwynn Forest", 314, 0)
unit:GossipMenuAddItem(5, "Duskwood", 315, 0)
unit:GossipMenuAddItem(5, "Westfall", 316, 0)
unit:GossipMenuAddItem(5, "Swamp of Sorrows", 317, 0)
unit:GossipMenuAddItem(5, "The Blasted Lands", 318, 0)
unit:GossipMenuAddItem(5, "Deadwind Pass", 319, 0)
unit:GossipMenuAddItem(5, "Stranglethorn Vale", 320, 0)
unit:GossipSendMenu(player)
end
if(intid == 184) then
unit:GossipCreateMenu(111, player, 0)
unit:GossipMenuAdditem(5, "Moonglade", 330, 0)
unit:GossipMenuAdditem(5, "Winterspring", 331, 0)
unit:GossipMenuAdditem(5, "Felwood", 332, 0)
unit:GossipMenuAdditem(5, "Darkshore", 333, 0)
unit:GossipMenuAdditem(5, "Azshara", 334, 0)
unit:GossipMenuAdditem(5, "Ashenvale", 335, 0)
unit:GossipMenuAdditem(5, "Stonetalon Mountains", 336, 0)
unit:GossipMenuAdditem(5, "The Barrens", 337, 0)
unit:GossipMenuAdditem(5, "Durotar", 338, 0)
unit:GossipSendMenu(player)
end
if(intid == 185) then
unit:GossipCreateMenu(112, player, 0)
unit:GossipMenuAdditem(5, "Mulgore", 339, 0)
unit:GossipMenuAdditem(5, "Desolace", 340, 0)
unit:GossipMenuAdditem(5, "Dustwallow Marsh", 341, 0)
unit:GossipMenuAdditem(5, "Feralas", 342, 0)
unit:GossipMenuAdditem(5, "Thousand Needles", 343, 0)
unit:GossipMenuAdditem(5, "Tanaris Desert", 344, 0)
unit:GossipMenuAdditem(5, "Un'Goro Crater", 345, 0)
unit:GossipMenuAdditem(5, "Silithus", 346, 0)
unit:GossipSendMenu(player)
end
if(intid == 12) then
player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
end
if(intid == 9) then
player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
end
if(intid == 11) then
player:Teleport(1, -1304.569946, 205.285004, 68.681396)
end
if(intid == 10) then
player:Teleport(0, 2050.203125, 285.650604, 56.994549)
end
RegisterUnitGossipEvent(989898, 1, "On_Gossip")
RegisterUnitGossipEvent(989898, 2, "Gossip_Submenus")
anyone know whats wrong with my porter?