Code:
local npcid = 0
function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("You are in combat!")
else
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(3, "News", 3, 0)
pUnit:GossipMenuAddItem(3, "Teleport", 4, 0)
pUnit:GossipMenuAddItem(3, "Instances", 5, 0)
pUnit:GossipMenuAddItem(3, "Proffesions", 6, 0)
pUnit:GossipMenuAddItem(3, "Resurrect", 7, 0)
pUnit:GossipSendMenu(player)
end
end
function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
if(intid == 999) then
pUnit:GossipCreateMenu(99, player, 0)
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then
pUnit:GossipMenuAddItem(3, "Alliance Cities", 1, 0)
end
local race=player:GetPlayerRace()
if race==2 or race==5 or race==6 or race==8 or race==10 then
pUnit:GossipMenuAddItem(3, "Horde Cities", 2, 0)
end
pUnit:GossipMenuAddItem(3, "News", 3, 0)
pUnit:GossipMenuAddItem(3, "Teleport", 4, 0)
pUnit:GossipMenuAddItem(3, "Instances", 5, 0)
pUnit:GossipMenuAddItem(3, "Ressurect", 6, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 1) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Stormwind", 300, 0)
pUnit:GossipMenuAddItem(1, "Ironforge", 301, 0)
pUnit:GossipMenuAddItem(1, "Darnassus", 302, 0)
pUnit:GossipMenuAddItem(1, "Exodar", 303, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 2) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Orgrimmar", 304, 0)
pUnit:GossipMenuAddItem(1, "Thunder Bluff", 305, 0)
pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
pUnit:GossipMenuAddItem(1, "Silvermoon", 307, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 3) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "The Server is still under construction so if you have any suggestions to make it better post on the forums", 308, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 4) then
pUnit:GossipCreateMenu(99, player, 0)
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then
pUnit:GossipMenuAddItem(3, "Alliance Cities", 1, 0)
end
local race=player:GetPlayerRace()
if race==2 or race==5 or race==6 or race==8 or race==10 then
pUnit:GossipMenuAddItem(3, "Horde Cities", 2, 0)
end
pUnit:GossipMenuAddItem(0, "Nuetral Cities", 20, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 5) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Azeroth", 7, 0)
pUnit:GossipMenuAddItem(1, "Outland", 8, 0)
pUnit:GossipMenuAddItem(1, "Northrend", 9, 0)
pUnit:GossipMenuAddItem(1, "PvP", 10, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 6) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 7) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "10 - 40", 11, 0)
pUnit:GossipMenuAddItem(1, "41 - 60", 12, 0)
pUnit:GossipMenuAddItem(1, "60+", 13, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 8) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "60 - 65", 14, 0)
pUnit:GossipMenuAddItem(1, "66 - 70", 15, 0)
pUnit:GossipMenuAddItem(1, "70+", 16, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 9) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "70 - 75", 17, 0)
pUnit:GossipMenuAddItem(1, "76 - 80", 18, 0)
pUnit:GossipMenuAddItem(1, "80+", 19, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 10) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 308, 0)
pUnit:GossipMenuAddItem(1, "The Ring of Trials", 309, 0)
pUnit:GossipMenuAddItem(1, "The Pit", 310, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 11) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Wailing Caverns", 312, 0)
pUnit:GossipMenuAddItem(1, "The Deadmines", 313, 0)
pUnit:GossipMenuAddItem(1, "Shadowfang Keep", 314, 0)
pUnit:GossipMenuAddItem(1, "Blackfathom Deeps", 315, 0)
pUnit:GossipMenuAddItem(1, "Razorfen Kraul", 317, 0)
pUnit:GossipMenuAddItem(1, "Gnomeregan", 318, 0)
pUnit:GossipMenuAddItem(1, "SM Graveyard", 319, 0)
pUnit:GossipMenuAddItem(1, "SM Library", 320, 0)
pUnit:GossipMenuAddItem(1, "Razorfen Downs", 321, 0)
pUnit:GossipMenuAddItem(1, "SM Armory", 322, 0)
pUnit:GossipMenuAddItem(1, "SM Cathredal", 323, 0)
pUnit:GossipMenuAddItem(1, "Uldaman", 324, 0)
pUnit:GossipMenuAddItem(1, "Zul'Farrak", 325, 0)
pUnit:GossipMenuAddItem(1, "Maraudon", 326, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 12) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Temple of Atal'Hakkar", 327, 0)
pUnit:GossipMenuAddItem(1, "Blackrock Depths", 328, 0)
pUnit:GossipMenuAddItem(1, "Dire Maul:East", 329, 0)
pUnit:GossipMenuAddItem(1, "Lower Blackrock Spire", 330, 0)
pUnit:GossipMenuAddItem(1, "Dire Maul:West", 331, 0)
pUnit:GossipMenuAddItem(1, "Dire Maul:North", 332, 0)
pUnit:GossipMenuAddItem(1, "Stratholme", 333, 0)
pUnit:GossipMenuAddItem(1, "Scholomance", 334, 0)
pUnit:GossipMenuAddItem(1, "Upper Blackrock Spire", 335, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 13) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Zul'Gurub", 336, 0)
pUnit:GossipMenuAddItem(1, "Onyxia's Lair", 337, 0)
pUnit:GossipMenuAddItem(1, "Molten Core", 338, 0)
pUnit:GossipMenuAddItem(1, "Blackwing Lair", 339, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 14) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Hellfire Ramparts", 342, 0)
pUnit:GossipMenuAddItem(1, "Blood Furnace", 343, 0)
pUnit:GossipMenuAddItem(1, "Slave Pens", 344, 0)
pUnit:GossipMenuAddItem(1, "Underbog", 345, 0)
pUnit:GossipMenuAddItem(1, "Mana Tombs", 346, 0)
pUnit:GossipMenuAddItem(1, "Auchenai Crypts", 347, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 15) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Durnholde Keep", 348, 0)
pUnit:GossipMenuAddItem(1, "Sethekk Halls", 349, 0)
pUnit:GossipMenuAddItem(1, "Steamvault", 350, 0)
pUnit:GossipMenuAddItem(1, "Shadow Labs", 351, 0)
pUnit:GossipMenuAddItem(1, "Shattered Halls", 352, 0)
pUnit:GossipMenuAddItem(1, "Black Morass", 353, 0)
pUnit:GossipMenuAddItem(1, "Mechanar", 354, 0)
pUnit:GossipMenuAddItem(1, "Botanica", 355, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 16) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Karazhan", 358, 0)
pUnit:GossipMenuAddItem(1, "Gruul's Lair", 359, 0)
pUnit:GossipMenuAddItem(1, "Magtheridon's Lair", 360, 0)
pUnit:GossipMenuAddItem(1, "Zul'Aman", 361, 0)
pUnit:GossipMenuAddItem(1, "Serpentshrine Cavern", 362, 0)
pUnit:GossipMenuAddItem(1, "Hyjal", 364, 0)
pUnit:GossipMenuAddItem(1, "Black Temple", 365, 0)
pUnit:GossipMenuAddItem(1, "Sunwell Plateau", 366, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 17) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Utgarde Keep", 367, 0)
pUnit:GossipMenuAddItem(1, "The Nexus", 368, 0)
pUnit:GossipMenuAddItem(1, "Azjol'Nerub", 369, 0)
pUnit:GossipMenuAddItem(1, "Drak'Tharon", 371, 0)
pUnit:GossipMenuAddItem(1, "The Violet Hold", 372, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 18) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Gundrak", 373, 0)
pUnit:GossipMenuAddItem(1, "Halls of Stone", 374, 0)
pUnit:GossipMenuAddItem(1, "Halls of Lightning", 375, 0)
pUnit:GossipMenuAddItem(1, "The Oculus", 376, 0)
pUnit:GossipMenuAddItem(1, "Utgare Pinnacle", 378, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 19) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Naxxramas", 379, 0)
pUnit:GossipMenuAddItem(1, "Obsidian Sanctum", 380, 0)
pUnit:GossipMenuAddItem(1, "Vault of Archavon", 381, 0)
pUnit:GossipMenuAddItem(1, "The Eye of Eternity", 382, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 20) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Shattrath", 383, 0)
pUnit:GossipMenuAddItem(1, "Dalaran", 384, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 300) then --Stormwind
player:Teleport(0, -8928, 540, 95)
pUnit:GossipComplete(player)
end
if(intid == 301) then --Ironforge
player:Teleport(0, -4981, -881, 502)
pUnit:GossipComplete(player)
end
if(intid == 302) then --Darnassus
player:Teleport(1, 9978, 2033, 1328.5)
pUnit:GossipComplete(player)
end
if(intid == 303) then --Exodar
player:Teleport(530, -4014, -11895, -1.5)
pUnit:GossipComplete(player)
end
if(intid == 304) then --Orgrimmar
player:Teleport(1, 1809, -4325, -11.284042)
pUnit:GossipComplete(player)
end
if(intid == 305) then --Thunder Bluff
player:Teleport(1, -1283, 158, 130)
pUnit:GossipComplete(player)
end
if(intid == 306) then --Undercity
player:Teleport(0, 1752, 239, 61.5)
pUnit:GossipComplete(player)
end
if(intid == 307) then --Silvermoon
player:Teleport(530, 9392, -7277, 14.5)
pUnit:GossipComplete(player)
end
if(intid == 384) then --Dalaran
player:Teleport(571, 5798.553711, 645.019287, 647.477783)
unit:GossipComplete(player)
end
if(intid == 383) then --Shattrath
player:Teleport(530, -1704.053589, 5376.160156, 3.416441)
unit:GossipComplete(player)
end
if(intid == 312) then --Wailing Caverns
player:Teleport(1, -737, -2219, 17)
pUnit:GossipComplete(player)
end
if(intid == 313) then --Deadmines
player:Teleport(0, 11209, 1664, 25)
pUnit:GossipComplete(player)
end
if(intid == 314) then --Shadowfang Keep
player:Teleport(0, -241, 1545, 77)
pUnit:GossipComplete(player)
end
if(intid == 315) then --Blackfathom Deeps
player:Teleport(1, 4248, 736, -26)
pUnit:GossipComplete(player)
end
if(intid == 317) then --Razorfen Kraul
player:Teleport(1, -4473, -1690, 82)
pUnit:GossipComplete(player)
end
if(intid == 318) then --Gnomeregan
player:Teleport(0, -5164, 918,258)
pUnit:GossipComplete(player)
end
if(intid == 319) then --SM Graveyard
player:Teleport(0, 2841, -692, 140)
pUnit:GossipComplete(player)
end
if(intid == 320) then --SM Library
player:Teleport(0, 2841, -692, 140)
pUnit:GossipComplete(player)
end
if(intid == 321) then --Razorfen Downs
player:Teleport(1, -4661, -2511, 81)
pUnit:GossipComplete(player)
end
if(intid == 322) then --SM Armory
player:Teleport(0, 2841, -692, 140)
pUnit:GossipComplete(player)
end
if(intid == 323) then --SM Cathredal
player:Teleport(0, 2841, -692, 140)
pUnit:GossipComplete(player)
end
if(intid == 324) then --Uldaman
player:Teleport(0, -6704, -2955, 209)
pUnit:GossipComplete(player)
end
if(intid == 325) then --Zul'Farrak
player:Teleport(1, -6821, -2890, 9)
pUnit:GossipComplete(player)
end
if(intid == 326) then --Maraudon
player:Teleport(1, -1458, 2606, 76)
pUnit:GossipComplete(player)
end
if(intid == 327) then --Temple of Atal'Hakkar
player:Teleport(0, -3995.147, -10175.121, -112.746)
pUnit:GossipComplete(player)
end
if(intid == 328) then --Blackrock Depths
player:Teleport(0, -7187, -914, 166)
pUnit:GossipComplete(player)
end
if(intid == 329) then --Dire Maul:East
player:Teleport(1, -3524, 1124, 162)
pUnit:GossipComplete(player)
end
if(intid == 330) then -- Lower Blackrock Spire
player:Teleport(0, -7532, -1221, 286)
pUnit:GossipComplete(player)
end
if(intid == 331) then --Dire Maul:West
player:Teleport(1, -3524, 1124, 162)
pUnit:GossipComplete(player)
end
if(intid == 332) then --Dire Maul:North
player:Teleport(1, -3524, 1124, 162)
pUnit:GossipComplete(player)
end
if(intid == 333) then --Stratholme
player:Teleport(0, 3345, -3380, 145)
pUnit:GossipComplete(player)
end
if(intid == 334) then --Scholomance
player:Teleport(0, 1265, -2560, 95)
pUnit:GossipComplete(player)
end
if(intid == 335) then -- Upper Blackrock Spire
player:Teleport(0, -7532, -1221, 286)
pUnit:GossipComplete(player)
end
if(intid == 336) then --Zul'Gurub
player:Teleport(0, -11916, -1204, 93)
pUnit:GossipComplete(player)
end
if(intid == 337) then --Onyxia's Lair
player:Teleport(1, -4709, -3729, 55)
pUnit:GossipComplete(player)
end
if(intid == 338) then --Molten Core
player:Teleport(230, 1123, -455, -101)
pUnit:GossipComplete(player)
end
if(intid == 339) then --Blackwing Lair
player:Teleport(229, 137, -474, 117)
pUnit:GossipComplete(player)
end
if(intid == 342) then --Hellfire Ramparts
player:Teleport(530, -360, 3071, -16)
pUnit:GossipComplete(player)
end
if(intid == 343) then --Blood Furnace
player:Teleport(530, -303, 3164, 32)
pUnit:GossipComplete(player)
end
if(intid == 344) then --The Slave Pens
player:Teleport(530, 719, 6999, -73)
pUnit:GossipComplete(player)
end
if(intid == 345) then --The Underbog
player:Teleport(530, 777, 6763, -72)
pUnit:GossipComplete(player)
end
if(intid == 346) then --Mana Tombs
player:Teleport(530, -3100, 4950, -100)
pUnit:GossipComplete(player)
end
if(intid == 347) then --Auchenai Crypts
player:Teleport(530, -3367, 5216, -101)
pUnit:GossipComplete(player)
end
if(intid == 348) then --Durnholde
player:Teleport(0, -489.832, -1391.35, 53.3854)
pUnit:GossipComplete(player)
end
if(intid == 349) then --Sethekk Halls
player:Teleport(530, -3364, 4675, -101)
pUnit:GossipComplete(player)
end
if(intid == 350) then --The Steamvault
player:Teleport(530, 816, 6934, -80)
pUnit:GossipComplete(player)
end
if(intid == 351) then --Shadow Labyrinth
player:Teleport(530, -3630, 4941, -101)
pUnit:GossipComplete(player)
end
if(intid == 352) then --The Shattered Halls
player:Teleport(530, -311, 3083, -3)
pUnit:GossipComplete(player)
end
if(intid == 353) then --Black Morass
player:Teleport(269, -1954, 6567, -150)
pUnit:GossipComplete(player)
end
if(intid == 354) then --The Mechanar
player:Teleport(530, 2870, 1557, 252)
pUnit:GossipComplete(player)
end
if(intid == 355) then --The Botanica
player:Teleport(530, 3404, 1488, 183)
pUnit:GossipComplete(player)
end
if(intid == 358) then --Karazhan
player:Teleport(0, 0, 0, 0)
pUnit:GossipComplete(player)
end
if(intid == 359) then --Gruul's Lair
player:Teleport(530, 3529, 5096, 3)
pUnit:GossipComplete(player)
end
if(intid == 360) then --Magtheridon's Lair
player:Teleport(530, -313, 3088, -116)
pUnit:GossipComplete(player)
end
if(intid == 361) then --Zul'Aman
player:Teleport(530, 6850, -7950, 171)
pUnit:GossipComplete(player)
end
if(intid == 362) then --Serpentshrine Cavern
player:Teleport(530, 830, 6865, -63)
pUnit:GossipComplete(player)
end
if(intid == 364) then --Hyjal 1 4674.88 -3638.37 965.264
player:Teleport(1, 4674.88, -3638.37, 965.264)
pUnit:GossipComplete(player)
end
if(intid == 365) then --Black Temple
player:Teleport(530, -3614, 310, 40)
pUnit:GossipComplete(player)
end
if(intid == 366) then --Sunwell Plateau
player:Teleport(0, 0, 0, 0)
pUnit:GossipComplete(player)
end
if(intid == 367) then --Utgarde Keep
player:Teleport(571, 1228, -4943, 36)
pUnit:GossipComplete(player)
end
if(intid == 368) then --The Nexus
player:Teleport(571, 3783, 6942, 105)
pUnit:GossipComplete(player)
end
if(intid == 369) then --Azjol'Nerub
player:Teleport(571, 3721, 2155, 37)
pUnit:GossipComplete(player)
end
if(intid == 371) then --Drak'Tharon
player:Teleport(571, 4897, 2046, 249)
pUnit:GossipComplete(player)
end
if(intid == 372) then --Violet Hold
player:Teleport(571, 5708, 521, 650)
pUnit:GossipComplete(player)
end
if(intid == 373) then --Gun'Drak
player:Teleport(571, 6925, 4447, 451)
pUnit:GossipComplete(player)
end
if(intid == 374) then --Halls of Stone
player:Teleport(571, 8937, 1266, 1026)
pUnit:GossipComplete(player)
end
if(intid == 375) then --Halls of Lightning
player:Teleport(571, 8937, 1266, 1026)
pUnit:GossipComplete(player)
end
if(intid == 376) then --The Occulus
player:Teleport(571, 3783, 6942, 105)
pUnit:GossipComplete(player)
end
if(intid == 378) then --Utgarde Pinnacle
player:Teleport(571, 1274, -4857, 216)
pUnit:GossipComplete(player)
end
if(intid == 379) then --Naxxramas
player:Teleport(571, 3669, -1269, 243.499207)
pUnit:GossipComplete(player)
end
if(intid == 380) then --Obsidian Sanctum
player:Teleport(571, 3561, 275, -115)
pUnit:GossipComplete(player)
end
if(intid == 381) then --Vault of Archevon
player:Teleport(571, 5440, 2840, 421)
pUnit:GossipComplete(player)
end
if(intid == 382) then --The Eye of Eternity
player:Teleport(571, 3783, 6942, 105)
pUnit:GossipComplete(player)
end
intid = 0
end
RegisterUnitGossipEvent(70000, 1, "WarpNPC_OnGossipTalk")
RegisterUnitGossipEvent(70000, 2, "WarpNPC_OnGossipSelect")
Btw as u guys can tell i need cords for Kara & Sunwell if you can put them tyvm! i will +Rep