HTML Code:
function matrix_main_menu(pUnit, player)
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(5, "City", 10, 0)
pUnit:GossipMenuAddItem(5, "Leveling Zones", 11, 0)
pUnit:GossipMenuAddItem(2, "PvP Arena", 12, 0)
pUnit:GossipMenuAddItem(9, "Instances 50+", 13, 0)
pUnit:GossipMenuAddItem(9, "Instantes 60+", 14, 0)
pUnit:GossipMenuAddItem(9, "Instantes 70+", 15, 0)
pUnit:GossipMenuAddItem(8, "Level 255+", 16, 0)
pUnit:GossipSendMenu(player)
end
function matrix_on_gossip_talk(pUnit, event, player)
matrix_main_menu(pUnit, player)
end
function matrix_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
if(intid == 100) then
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(5, "City", 10, 0)
pUnit:GossipMenuAddItem(5, "Leveling Zones", 11, 0)
pUnit:GossipMenuAddItem(2, "PvP Arena", 12, 0)
pUnit:GossipMenuAddItem(9, "Instances 50+", 13, 0)
pUnit:GossipMenuAddItem(9, "Instantes 60+", 14, 0)
pUnit:GossipMenuAddItem(9, "Instantes 70+", 15, 0)
pUnit:GossipMenuAddItem(8, "Level 255+", 16, 0)
pUnit:GossipSendMenu(player)
endossipSendMenu(player)
end
if(intid == 10) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "Stormwind", 20, 0)
pUnit:GossipMenuAddItem(1, "Ironforge", 21, 0)
pUnit:GossipMenuAddItem(1, "Darnassus", 22, 0)
pUnit:GossipMenuAddItem(1, "The Exodar", 23, 0)
pUnit:GossipMenuAddItem(1, "Shattrath", 24, 0)
pUnit:GossipMenuAddItem(1, "Booty Bay", 25, 0)
pUnit:GossipMenuAddItem(1, "Gadtzetan", 26, 0)
pUnit:GossipMenuAddItem(1, "Isle of Quel' Danas", 27, 0)
pUnit:GossipMenuAddItem(2, "Go Back", 100, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 11) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "Level 1-100", 28, 0)
pUnit:GossipMenuAddItem(1, "Level 100-180 Hyjal 1", 29, 0)
pUnit:GossipMenuAddItem(1, "Level 180-225 Hyjal 2", 30, 0)
pUnit:GossipMenuAddItem(1, "Level 225-255", 31, 0)
pUnit:GossipMenuAddItem(2, "Go Back", 100, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 12) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(2, "Gurubashi Arena", 32, 0)
pUnit:GossipMenuAddItem(2, "Arena Floor", 1, 33)
pUnit:GossipMenuAddItem(2, "Go Back", 100, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 20) then
player:Teleport(0,-9075.6650,425.8427,93.0560) -- Stormwind
pUnit:GossipComplete(player)
end
if(intid == 21) then
player:Teleport(0,-4924.2553,-952.7790,501.5376) -- Ironforge
pUnit:GossipComplete(player)
end
if(intid == 22) then
player:Teleport(1,9947.9394,2480.2033,1316.1618) -- Darnassus
end
if(intid == 23) then
player:Teleport(530, -4010.1379, -11888.6494, -1.6709) -- The Exodar
end
if(intid == 24) then
player:Teleport(530, -1852.8937, 5405.8334, -12.4279) -- Shattrath
end
if(intid == 25) then
player:Teleport(0,-14406.6,419.353,22.3907) -- Booty Bay
pUnit:GossipComplete(player)
end
if(intid == 26) then
player:Teleport(1, -7180.707520, -3780.347168, 8.396035) -- Gadgetzan
end
if(intid == 27) then
player:Teleport(530, 12894.749023, -6929.340820, 3.857200) -- Isle of Quel' Danas
end
if(intid == 39) then
player:Teleport(2, 2050.203125, 285.650604, 56.994549)
end
if(intid == 40) then
player:Teleport(1, -1304.569946, 205.285004, 68.681396)
end
if(intid == 41) then
player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
end
if(intid == 52) then
player:Teleport(530, -360.670990, 3071.899902, -15.097700)
end
if(intid == 53) then
player:Teleport(530, -303.506012, 3164.820068, 31.742500)
end
if(intid == 54) then
player:Teleport(530, -311.083527, 3083.291748, -3.745923)
end
if(intid == 55) then
player:Teleport(530, 777.088989, 6763.450195, -72.062561)
end
if(intid == 56) then
player:Teleport(530, 719.507996, 6999.339844, -73.074303)
end
if(intid == 57) then
player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
end
if(intid == 58) then
player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
end
if(intid == 59) then
player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
end
if(intid == 60) then
player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
end
if(intid == 61) then
player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
end
if(intid == 62) then
player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
end
if(intid == 63) then
player:Teleport(530, 830.542908, 6865.445801, -63.785503)
end
if(intid == 42) then
player:Teleport(0, -234.495087, 1561.946411, 76.892143)
end
if(intid == 43) then
player:Teleport(0, 2870.442627, -819.985229, 160.331085)
end
if(intid == 44) then
player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
end
if(intid == 45) then
player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
end
if(intid == 46) then
player:Teleport(0, -11079.8, 1506.98, 42.9594)
end
if(intid == 47) then
player:Teleport(70, -228.193, 46.1602, -45.0186)
end
if(intid == 48) then
player:Teleport(0, -10349.1, -3849.67, -24.6078)
end
if(intid == 49) then
player:Teleport(230, 596.432, -188.498, -49)
end
if(intid == 50) then
player:Teleport(429, 254.588, -24.7395, -1.56062)
end
if(intid == 51) then
player:Teleport(229, 73.5083, -215.044, 53.3869)
end
if(intid == 141) then
player:Teleport(534, 5250.59570, -2181.692871, 1262.153320)
pUnit:GossipComplete(player)
end
if(intid == 6) then
player:Teleport(0,-9175.966797,337.554688,83.550049)
pUnit:GossipComplete(player)
end
if(intid == 73) then
player:Teleport(530, -3609.739990, 328.252014, 37.307701)
end
if(intid == 74) then
player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
end
if(intid == 75) then
player:Teleport(530, -313.678986, 3088.350098, -116.501999)
end
if(intid == 64) then
player:Teleport(1, -4746, -3749, -4)
end
if(intid == 65) then
player:Teleport(409, 1089.6, -470.19, -106.41)
end
if(intid == 66) then
player:Teleport(469, -7665.55, -1102.49, 400.679)
end
if(intid == 67) then
player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
end
if(intid == 68) then
player:Teleport(532, -11087.3, -1977.47, 49.6135)
end
if(intid == 69) then
player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
end
if(intid == 70) then
player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
end
if(intid == 71) then
player:Teleport(533, 3006.06, -3436.72, 293.891)
end
if(intid == 72) then
player:Teleport(530, 6850, -7950, 170)
end
if(intid == 122) then
player:Teleport(530, -248.160004, 922.348999, 84.379799)
end
if(intid == 123) then
player:Teleport(530, -225.863632, 5405.927246, 22.346397)
end
if(intid == 124) then
player:Teleport(530, -468.232330, 8418.666016, 28.031298)
end
if(intid == 125) then
player:Teleport(530, 3396.123779, 4182.208008, 137.097992)
end
if(intid == 126) then
player:Teleport(530, -1202.426636, 5313.692871, 33.774723)
end
if(intid == 127) then
player:Teleport(530, -2859.522461, 3182.34773, 10.008426)
end
if(intid == 128) then
player:Teleport(530, 1471.672852, 6828.047852, 107.759239)
end
if (intid == 135) then
player:Teleport(530, -1887.510010, 5359.379883, -12.427300) -- Shattrath
end
if(intid == 7) then
player:Teleport(0,-4981.25, -881.542, 502.66)
pUnit:GossipComplete(player)
end
if (intid == 500) then
player:Teleport(530, -248.431702, 939.013367, 84.379822) -- Hellfire Peninsula/ The Dark Portal
end
if (intid == 510) then
player:Teleport(530, -1176.588989, 5336.273926, 29.897034) -- Terokkar Forest
end
if (intid == 520) then
player:Teleport(530, -526, 8440, 47.426472) -- Nagrand
end
if (intid == 530) then
player:Teleport(530, 1114.010254, 7090.967285, 122.127274) -- Blade's Edge Mountains
end
if (intid == 540) then
player:Teleport(530, 2315.689209, 2535.836670, 119.271622) -- Netherstorm
end
if (intid == 550) then
player:Teleport(530, -2847.810791, 3190.677246, 8.136728) -- Shadowmoon Valley
end
if (intid == 560) then
player:Teleport(530, 30.284981, 6983.303711, 148.666779) -- Zangarmarsh
end
end
RegisterUnitGossipEvent(8, 1, "matrix_on_gossip_talk")
RegisterUnitGossipEvent(8, 2, "matrix_on_gossip_select")