Code:
function GMTeleUnit_OnGossip(Unit, Event, player)
local IsPlyrGm = Plyr:GetGmRank()
if (IsPlyrGm == az or z) then
Unit:GossipCreateMenu(500, player, 0)
Unit:GossipMenuAddItem(1, "GMisland", 1, 0)
Unit:GossipMenuAddItem(1, "Icecrown Citadel", 2, 0)
Unit:GossipMenuAddItem(1, "Icecrown Horde Outpost", 3, 0)
Unit:GossipMenuAddItem(1, "Icecrown Alliance Outpost", 4, 0)
Unit:GossipMenuAddItem(1, "GM Hangout", 5, 0)
Unit:GossipMenuAddItem(1, "Gm Gear", 12, 0)
Unit:GossipMenuAddItem(1, "Gm Spells", 15, 0)
Unit:GossipMenuAddItem(1, "Weaponskills", 22, 0)
Unit:GossipSendMenu(player)
else
player:SendChatMessage(
player:Teleport(
end
function GMTeleUnit_OnSelect(unit, event, player, id, intid, code)
if (intid == 1) then
player:Teleport(1, 16222.599609, 16265.900391, 13.209117)
end
if (intid == 2) then
player:Teleport(631, 70.545593, 2211.211426, 30.115700)
end
if (intid == 3) then
player:Teleport(571, 6453.004883, 2299.976807, 474.883026)
end
if (intid == 4) then
player:Teleport(571, 6450.705566, 2435.738037, 468.665955)
end
if (intid == 5) then
Unit:GossipCreateMenu(501, player, 0)
Unit:GossipMenuAddItem(1, "Level 1", 6, 0)
Unit:GossipMenuAddItem(1, "Level 2", 7, 0)
Unit:GossipMenuAddItem(1, "Level 3", 8, 0)
Unit:GossipMenuAddItem(1, "Level 4", 9, 0)
Unit:GossipMenuAddItem(1, "Level 5", 10, 0)
Unit:GossipMenuAddItem(1, "Level 6", 11, 0)
Unit:GossipSendMenu(player)
end
if (intid == 6) then
player:Teleport(1, 16177.634766, 16136.790039, 8.130977)
end
if (intid == 7) then
player:Teleport(1, 16187.945313, 16185.541016, 17.390097)
end
if (intid == 8) then
player:Teleport(1, 16173.592773, 16157.426758, 20.313612)
end
if (intid == 9) then
player:Teleport(1, 16184.386719, 16171.801758, 24.886801)
end
if (intid == 10) then
player:Teleport(mapid, x, y, z)
end
if(intid == 11) then
player:Teleport(mapid, x, y, z)
end
if(intid == 12) then
Unit:GossipCreateMenu(503, player, 0)
Unit:GossipMenuAddItem(1, "Weapons", 13, 0)
Unit:GossipMenuAddItem(1, "Armor", 14, 0)
Unit:GossipSendMenu(player)
end
if (intid == 13) then
end
if (intid == 14) then
player:AddItem(190001, 1)
player:AddItem(190002, 1)
player:AddItem(190003, 1)
player:AddItem(190004, 1)
player:AddItem(190005, 1)
player:AddItem(190006, 1)
player:AddItem(190007, 1)
player:AddItem(190008, 1)
player:AddItem(190009, 1)
player:AddItem(190000, 1)
end
if (intid == 15) then
Unit:GossipCreatMenu(504, player, 0)
Unit:GossipMenuAddItem(1, "Titan's Grip", 16, 0)
Unit:GossipMenuAddItem(1, "AOE .kill", 17, 0)
Unit:GossipMenuAddItem(1, "Holyform", 18, 0)
Unit:GossipMenuAddItem(1, "Berserker Aura", 19, 0)
Unit:GossipMenuAddItem(1, "Defensive Aura", 20, 0)
Unit:GossipMenuAddItem(1, "Owl Form", 21, 0)
Unit:GossipMenuAddItem(1, "Battle Supremacy", 41, 0)
Unit:GossipSendMenu(player)
end
if (intid == 16) then
player:Learn(49152)
player:Learn(46917)
player:Learn(50483)
Unit:GossipCreateMenu(526, player, 0)
intid = 15
Unit:GossipSendMenu(player)
end
if (intid == 17) then
player:Learn(265)
Unit:GossipCreateMenu(527, player, 0)
intid = 15
Unit:GossipSendMenu(player)
end
if (intid == 18) then
player:Learn(46565)
Unit:GosspCreateMenu(528, player, 0)
intid = 15
Unit:GossipSendMenu(player)
end
if (intid == 19) then
Player:Learn(41107)
Unit:GossipCreateMenu(529, player, 0)
intid = 15
Unit:GossipSendMenu(player)
end
if (intid == 20) then
player:Learn(41105)
Unit:GossipCreateMenu(530, player, 0)
intid = 15
Unit:GossipSendMenu(player)
end
if(intid == 21) then
Player:Learn(8152)
Unit:GossipCreateMenu(531, player, 0)
intid = 15
Unit:GossipSendMenu(player)
end
if (intid == 41) then
player:Learn(45743)
Unit:GossipCreateMenu(532, player, 0)
intid = 15
Unit:GossipSendMenu(player)
end
if (intid == 22) then
Unit:GossipCreateMenu(505, player, 0)
Unit:GossipMenuAddItem(1, "Bows", 23, 0)
Unit:GossipMenuAddItem(1, "Crossbows", 24, 0)
Unit:GossipMenuAddItem(1, "Daggers", 25, 0)
Unit:GossipMenuAddItem(1, "Dual Wield", 26, 0)
Unit:GossipMenuAddItem(1, "Fist Weapons", 27, 0)
Unit:GossipMenuAddItem(1, "Guns", 28, 0)
Unit:GossipMenuAddItem(1, "Page 2", 29, 0)
end
if (intid == 29) then
Unit:GossipCreateMenu(506, player, 0)
Unit:GossipMenuAddItem(1, "One-handed Axes", 30, 0)
Unit:GossipMenuAddItem(1, "One-handed Maces", 31, 0)
Unit:GossipMenuAddItem(1, "One-Handed Swords", 32, 0)
Unit:GossipMenuAddItem(1, "Polearms", 33, 0)
Unit:GossipMenuAddItem(1, "Staves", 34, 0)
Unit:GossipMenuAddItem(1, "Thrown", 35, 0)
Unit:GossipMenuAddItem(1, "Two-handed Axes", 36, 0)
Unit:GossipMenuAddItem(1, "Page 3", 37, 0)
Unit:GossipSendMenu(player)
end
if (intid == 37) then
Unit:GossipCreateMenu(507, player, 0)
Unit:GossipMenuAddItem(1, "Two-handed Maces", 38, 0)
Unit:GossipMenuAddItem(1, "Two-handed Swords", 39, 0)
Unit:GossipMenuAddItem(1, "Wands", 40, 0)
Unit:GossipSendMenu(player)
end
if (intid == 23) then
player:Learn(3018)
player:Learn(75)
player:Learn(264)
Unit:GossipCreateMenu(508, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 24) then
player:Learn(511)
Unit:GossipCreateMenu(509, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 25) then
player:Learn(1180)
Unit:GossipCreateMenu(512, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 26) then
player:Learn(674)
Unit:GossipCreateMenu(513, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 27) then
player:Learn(15590)
Unit:GossipCreateMenu(514, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 28) then
player:Learn(266)
player:Learn(75)
player:Learn(3018)
Unit:GossipCreateMenu(515, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 30) then
player:Learn(196)
Unit:GossipCreateMenu(516, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 31) then
player:Learn(198)
Unit:GossipCreateMenu(517, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 32) then
player:Learn(201)
Unit:GossipCreateMenu(518, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 33) then
player:Learn(200)
Unit:GossipCreateMenu(519, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 34) then
player:Learn(227)
Unit:GossipCreateMenu(520, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 35) then
player:Learn(2567)
player:Learn(2764)
Unit:GossipCreateMenu(521, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 36) then
player:Learn(197)
Unit:GossipCreateMenu(522, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 38) then
player:Learn(199)
Unit:GossipCreateMenu(523, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 39) then
player:Learn(202)
Unit:GossipCreateMenu(524, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
if (intid == 40) then
player:Learn(5009)
Unit:GossipCreateMenu(525, player, 0)
intid = 22
Unit:GossipSendMenu(player)
end
end
RegisterUnitGossipEvent(1834168, 1, "GMTeleUnit_OnGossip")
RegisterUnitGossipEvent(1834168, 2, "GMTeleUnit_OnSelect")