Code:
function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("You are in combat!")
else
pUnit:GossipCreateMenu(3544, 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, "Eastern Kingdom Locations", 3, 0)
pUnit:GossipMenuAddItem(3, "Kalimdor Locations", 4, 0)
pUnit:GossipMenuAddItem(3, "Outland Locations", 5, 0)
pUnit:GossipMenuAddItem(3, "Azeroth Instances", 6, 0)
pUnit:GossipMenuAddItem(3, "Outland Instances", 7, 0)
pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 420, 0)
pUnit:GossipMenuAddItem(3, "WOTLK Locations", 8, 0)
pUnit:GossipMenuAddItem(3, "WOTLK Instances", 9, 0)
pUnit:GossipMenuAddItem(4, "Remove Resurrection Sickness", 998, 0)
end
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then
pUnit:GossipMenuAddItem(3, "Mall", 451, 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, "Mall", 452, 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, "Eastern Kingdom Locations", 3, 0)
pUnit:GossipMenuAddItem(3, "Kalimdor Locations", 4, 0)
pUnit:GossipMenuAddItem(3, "Outland Locations", 5, 0)
pUnit:GossipMenuAddItem(3, "Azeroth Instances", 6, 0)
pUnit:GossipMenuAddItem(3, "Outland Instances", 7, 0)
pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 420, 0)
pUnit:GossipMenuAddItem(3, "WOTLK Locations", 8, 0)
pUnit:GossipMenuAddItem(3, "WOTLK Instances", 9, 0)
pUnit:GossipMenuAddItem(4, "Remove Resurrection Sickness", 10, 0)
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then
pUnit:GossipMenuAddItem(3, "Mall", 451, 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, "Mall", 452, 0)
pUnit:GossipSendMenu(player)
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, "Alterac Mountains", 308, 0)
pUnit:GossipMenuAddItem(1, "Arathi Highlands", 309, 0)
pUnit:GossipMenuAddItem(1, "Badlands", 310, 0)
pUnit:GossipMenuAddItem(1, "Burning Steppes", 311, 0)
pUnit:GossipMenuAddItem(1, "Deadwind Pass", 312, 0)
pUnit:GossipMenuAddItem(1, "Dun Morogh", 313, 0)
pUnit:GossipMenuAddItem(1, "Duskwood", 314, 0)
pUnit:GossipMenuAddItem(1, "Eastern Plaguelands", 315, 0)
pUnit:GossipMenuAddItem(1, "Elwynn Forest", 316, 0)
pUnit:GossipMenuAddItem(1, "Eversong Woods", 317, 0)
pUnit:GossipMenuAddItem(1, "Ghostlands", 318, 0)
pUnit:GossipMenuAddItem(1, "Hillsbrad Foothills", 319, 0)
pUnit:GossipMenuAddItem(1, "Hinterlands", 320, 0)
pUnit:GossipMenuAddItem(1, "Loch Modan", 321, 0)
pUnit:GossipMenuAddItem(0, "--> Page 2 -->", 10, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 4) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Ashenvale", 331, 0)
pUnit:GossipMenuAddItem(1, "Azshara", 332, 0)
pUnit:GossipMenuAddItem(1, "Azuremyst Isle", 333, 0)
pUnit:GossipMenuAddItem(1, "Bloodmyst Isle", 334, 0)
pUnit:GossipMenuAddItem(1, "Darkshore", 335, 0)
pUnit:GossipMenuAddItem(1, "Durotar", 336, 0)
pUnit:GossipMenuAddItem(1, "Desolace", 337, 0)
pUnit:GossipMenuAddItem(1, "Dustwallow Marsh", 338, 0)
pUnit:GossipMenuAddItem(1, "Felwood", 339, 0)
pUnit:GossipMenuAddItem(1, "Feralas", 340, 0)
pUnit:GossipMenuAddItem(1, "Moonglade", 341, 0)
pUnit:GossipMenuAddItem(1, "Mulgore", 342, 0)
pUnit:GossipMenuAddItem(1, "Silithus", 343, 0)
pUnit:GossipMenuAddItem(1, "Stonetalon Mountains", 344, 0)
pUnit:GossipMenuAddItem(0, "--> Page 2 -->", 11, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 5) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Blade's Edge Mountains", 351, 0)
pUnit:GossipMenuAddItem(1, "Hellfire Peninsula", 352, 0)
pUnit:GossipMenuAddItem(1, "Nagrand", 353, 0)
pUnit:GossipMenuAddItem(1, "Netherstorm", 354, 0)
pUnit:GossipMenuAddItem(1, "Shadowmoon Valley", 355, 0)
pUnit:GossipMenuAddItem(1, "Terokkar Forest", 356, 0)
pUnit:GossipMenuAddItem(1, "Zangarmarsh", 357, 0)
pUnit:GossipMenuAddItem(1, "Shattrath city", 450, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 6) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Ahn'Qiraj", 358, 0)
pUnit:GossipMenuAddItem(1, "Blackfathom Depths", 359, 0)
pUnit:GossipMenuAddItem(1, "Blackrock Depths", 360, 0)
pUnit:GossipMenuAddItem(1, "Blackrock Spire", 361, 0)
pUnit:GossipMenuAddItem(1, "Blackwing Lair", 362, 0)
pUnit:GossipMenuAddItem(1, "Caverns of Time", 363, 0)
pUnit:GossipMenuAddItem(1, "Deadmines", 364, 0)
pUnit:GossipMenuAddItem(1, "Dire Maul", 365, 0)
pUnit:GossipMenuAddItem(1, "Gnomeregan", 366, 0)
pUnit:GossipMenuAddItem(1, "Maraudon", 367, 0)
pUnit:GossipMenuAddItem(1, "Molten Core", 368, 0)
pUnit:GossipMenuAddItem(1, "Onyxia's Lair", 369, 0)
pUnit:GossipMenuAddItem(1, "Ragefire Chasm", 370, 0)
pUnit:GossipMenuAddItem(0, "--> Page 2 -->", 12, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 7) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(0, "Outland Raids", 13, 0)
pUnit:GossipMenuAddItem(1, "Auchenai Crypts", 383, 0)
pUnit:GossipMenuAddItem(1, "Coilfang Reservoir", 385, 0)
pUnit:GossipMenuAddItem(1, "Hellfire Ramparts", 387, 0)
pUnit:GossipMenuAddItem(1, "Mana Tombs", 388, 0)
pUnit:GossipMenuAddItem(1, "Pheonix Hall", 389, 0)
pUnit:GossipMenuAddItem(1, "Sethekk Halls", 390, 0)
pUnit:GossipMenuAddItem(1, "Shadow Labyrinth", 391, 0)
pUnit:GossipMenuAddItem(1, "The Blood Furnace", 423, 0)
pUnit:GossipMenuAddItem(1, "The Botanica", 392, 0)
pUnit:GossipMenuAddItem(1, "The Mechanar", 393, 0)
pUnit:GossipMenuAddItem(1, "The Shattered Halls", 425, 0)
pUnit:GossipMenuAddItem(1, "The Slave Pens", 426, 0)
pUnit:GossipMenuAddItem(1, "The Steamvault", 427, 0)
pUnit:GossipMenuAddItem(1, "The Underbog", 428, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 8) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Dalaran", 403, 0)
pUnit:GossipMenuAddItem(1, "DK Start Zone", 405, 0)
pUnit:GossipMenuAddItem(1, "Borean Tundra", 394, 0)
pUnit:GossipMenuAddItem(1, "Crystalsong Forest", 404, 0)
pUnit:GossipMenuAddItem(1, "Dragonblight", 395, 0)
pUnit:GossipMenuAddItem(1, "Grizzly Hills", 396, 0)
pUnit:GossipMenuAddItem(1, "Howling Fjord", 397, 0)
pUnit:GossipMenuAddItem(1, "Icecrown", 398, 0)
pUnit:GossipMenuAddItem(1, "Sholazar Basin", 399, 0)
pUnit:GossipMenuAddItem(1, "Storm Peaks", 400, 0)
pUnit:GossipMenuAddItem(1, "Wintergrasp", 401, 0)
pUnit:GossipMenuAddItem(1, "Zul'Drak", 402, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 9) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Azjol'Nerub", 406, 0)
pUnit:GossipMenuAddItem(1, "Drak'Tharon", 407, 0)
pUnit:GossipMenuAddItem(1, "Gun'Drak", 408, 0)
pUnit:GossipMenuAddItem(1, "Icecrown Citadel", 409, 0)
pUnit:GossipMenuAddItem(1, "Naxxaramas", 410, 0)
pUnit:GossipMenuAddItem(1, "Obsidian Sanctum", 411, 0)
pUnit:GossipMenuAddItem(1, "The Nexus/Occulus/Eye of Eternity", 412, 0)
pUnit:GossipMenuAddItem(1, "Halls of Stone/Halls of Lightning", 413, 0)
pUnit:GossipMenuAddItem(1, "Utgarde Keep", 414, 0)
pUnit:GossipMenuAddItem(1, "Utgarde Pinnacle", 415, 0)
pUnit:GossipMenuAddItem(1, "Vault of Archevon", 416, 0)
pUnit:GossipMenuAddItem(1, "Violet Hold", 417, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 10) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Searing Gorge", 322, 0)
pUnit:GossipMenuAddItem(1, "Silverpine Forest", 323, 0)
pUnit:GossipMenuAddItem(1, "Stranglethorn Vale", 324, 0)
pUnit:GossipMenuAddItem(1, "Swamp of Sorrows", 325, 0)
pUnit:GossipMenuAddItem(1, "The Blasted Lands", 326, 0)
pUnit:GossipMenuAddItem(1, "Trisfal Glades", 327, 0)
pUnit:GossipMenuAddItem(1, "Western Plaguelands", 328, 0)
pUnit:GossipMenuAddItem(1, "Westfall", 329, 0)
pUnit:GossipMenuAddItem(1, "Wetlands", 330, 0)
pUnit:GossipMenuAddItem(0, "<-- Page 1 <--", 3, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 11) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Tanaris", 345, 0)
pUnit:GossipMenuAddItem(1, "Teldrassil", 346, 0)
pUnit:GossipMenuAddItem(1, "The Barrens", 347, 0)
pUnit:GossipMenuAddItem(1, "Thousand Needles", 348, 0)
pUnit:GossipMenuAddItem(1, "Un Goro Crater", 349, 0)
pUnit:GossipMenuAddItem(1, "Winterspring", 350, 0)
pUnit:GossipMenuAddItem(0, "<-- Page 1 <--", 4, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 12) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Razorfen Downs", 371, 0)
pUnit:GossipMenuAddItem(1, "Razorfen Kraul", 372, 0)
pUnit:GossipMenuAddItem(1, "Scarlet Monestary", 373, 0)
pUnit:GossipMenuAddItem(1, "Scholomance", 374, 0)
pUnit:GossipMenuAddItem(1, "Shadowfang Keep", 375, 0)
pUnit:GossipMenuAddItem(1, "Stratholme", 376, 0)
pUnit:GossipMenuAddItem(1, "Sunken Temple", 377, 0)
pUnit:GossipMenuAddItem(1, "Uldaman", 378, 0)
pUnit:GossipMenuAddItem(1, "Wailing Caverns", 379, 0)
pUnit:GossipMenuAddItem(1, "Zul'Aman", 380, 0)
pUnit:GossipMenuAddItem(1, "Zul'Farrak", 381, 0)
pUnit:GossipMenuAddItem(1, "Zul'Gurub", 382, 0)
pUnit:GossipMenuAddItem(0, "<-- Page 1 <--", 6, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 13) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(1, "Magtheridon's Lair", 421, 0)
pUnit:GossipMenuAddItem(1, "Sepentshrine Cavern", 422, 0)
pUnit:GossipMenuAddItem(1, "Gruul's Lair", 386, 0)
pUnit:GossipMenuAddItem(1, "The Eye", 424, 0)
pUnit:GossipMenuAddItem(1, "Black Temple", 384, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 998) then
if(player:HasAura(15007) == true) then
player:RemoveAura(15007)
player:SendBroadcastMessage("You have been cured of Resurrection Sickness!")
else
player:SendBroadcastMessage("You do not currently have Resurrection Sickness!")
player:GossipComplete(player)
end
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, 1502, -4415, 22)
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 == 308) then --Alterac Mountains
player:Teleport(0, 237, -652, 119)
pUnit:GossipComplete(player)
end
if(intid == 309) then --Arathi Highlands
player:Teleport(0, -1550, -2495, 55)
pUnit:GossipComplete(player)
end
if(intid == 310) then --Badlands
player:Teleport(0, -6775, -3286, 242)
pUnit:GossipComplete(player)
end
if(intid == 311) then --Burning Steppes
player:Teleport(0, -7975, -1786, 133.5)
pUnit:GossipComplete(player)
end
if(intid == 312) then --Deadwind Pass
player:Teleport(0, -10447, -1872, 105)
pUnit:GossipComplete(player)
end
if(intid == 313) then --Dun Morogh
player:Teleport(0, -5709, -1339, 395)
pUnit:GossipComplete(player)
end
if(intid == 314) then --Duskwood
player:Teleport(0, -10914, -528, 54)
pUnit:GossipComplete(player)
end
if(intid == 315) then --Eastern Plaguelands
player:Teleport(0, 1739, -3623, 120)
pUnit:GossipComplete(player)
end
if(intid == 316) then --Elwynn Forest
player:Teleport(0, -9591, -463, 58)
pUnit:GossipComplete(player)
end
if(intid == 317) then --Eversong Woods
player:Teleport(530, 8250, -7214, 140)
pUnit:GossipComplete(player)
end
if(intid == 318) then --Ghostlands
player:Teleport(530, 6396, -6848, 101)
pUnit:GossipComplete(player)
end
if(intid == 319) then --Hillsbrad Foothills
player:Teleport(0, -440, -582, 54)
pUnit:GossipComplete(player)
end
if(intid == 320) then --Hinterlands
player:Teleport(0, 235, -3298, 110)
pUnit:GossipComplete(player)
end
if(intid == 321) then --Loch Modan
player:Teleport(0, -5853, -3251, 303)
pUnit:GossipComplete(player)
end
if(intid == 322) then --Searing Gorge
player:Teleport(0, -6645, -1918, 245)
pUnit:GossipComplete(player)
end
if(intid == 323) then --Silverpine Forest
player:Teleport(0, 628, 1291, 87)
pUnit:GossipComplete(player)
end
if(intid == 324) then --Stranglethorn Vale
player:Teleport(0, -14246, 301, 28)
pUnit:GossipComplete(player)
end
if(intid == 325) then --Swamp of Sorrows
player:Teleport(0, -10476, -2408, 74)
pUnit:GossipComplete(player)
end
if(intid == 326) then --The Blasted Lands
player:Teleport(0, -11189, -3023, 8)
pUnit:GossipComplete(player)
end
if(intid == 327) then --Tirisfal Glades
player:Teleport(0, 1599, 569, 38)
pUnit:GossipComplete(player)
end
if(intid == 328) then --Western Plaguelands
player:Teleport(0, 1676, -1366, 70)
pUnit:GossipComplete(player)
end
if(intid == 329) then --Westfall
player:Teleport(0, -10922, 998, 36)
pUnit:GossipComplete(player)
end
if(intid == 330) then --Wetlands
player:Teleport(0, -3604, -2711, 20)
pUnit:GossipComplete(player)
end
if(intid == 331) then --Ashenvale
player:Teleport(1, 2319, -1672, 124)
pUnit:GossipComplete(player)
end
if(intid == 332) then --Azshara
player:Teleport(1, 3336, -4599, 93)
pUnit:GossipComplete(player)
end
if(intid == 333) then --Azuremyst Isle
player:Teleport(530, -4540, -11933, 28)
pUnit:GossipComplete(player)
end
if(intid == 334) then --Bloodmyst Isle
player:Teleport(530, -2721, -12206, 10)
pUnit:GossipComplete(player)
end
if(intid == 335) then --Darkshore
player:Teleport(1, 5084, 242, 29)
pUnit:GossipComplete(player)
end
if(intid == 336) then --Desolace
player:Teleport(1, -548, 1276, 90)
pUnit:GossipComplete(player)
end
if(intid == 337) then --Durotar
player:Teleport(1, 301, -4184, 28)
pUnit:GossipComplete(player)
end
if(intid == 338) then --Dustwallow Marsh
player:Teleport(1, -3345, -3078, 33)
pUnit:GossipComplete(player)
end
if(intid == 339) then --Felwood
player:Teleport(1, 5537, -585, 359)
pUnit:GossipComplete(player)
end
if(intid == 340) then --Feralas
player:Teleport(1, -4811, 1037, 105)
pUnit:GossipComplete(player)
end
if(intid == 341) then --Moonglade
player:Teleport(1, 7931, -2616, 493)
pUnit:GossipComplete(player)
end
if(intid == 342) then --Mulgore
player:Teleport(1, -2372, -893, -9)
pUnit:GossipComplete(player)
end
if(intid == 343) then --Silithus
player:Teleport(1, -6839, 763, 43)
pUnit:GossipComplete(player)
end
if(intid == 344) then --Stonetalon Mountains
player:Teleport(1, 588, 330, 48)
pUnit:GossipComplete(player)
end
if(intid == 345) then --Tanaris
player:Teleport(1, -7149, -3746, 9)
pUnit:GossipComplete(player)
end
if(intid == 346) then --Teldrassil
player:Teleport(1, 9947, 649, 1310)
pUnit:GossipComplete(player)
end
if(intid == 347) then --The Barrens
player:Teleport(1, 567, -2573, 96)
pUnit:GossipComplete(player)
end
if(intid == 348) then --Thousand Needles
player:Teleport(1, -4969, -1723, -61)
pUnit:GossipComplete(player)
end
if(intid == 349) then --Un Goro Crater
player:Teleport(1, -7932, -2139, -230)
pUnit:GossipComplete(player)
end
if(intid == 350) then --Winterspring
player:Teleport(1, 6719, -4646, 722)
pUnit:GossipComplete(player)
end
if(intid == 351) then --Blade's Edge Mountains
player:Teleport(530, 2924, 5982, -1)
pUnit:GossipComplete(player)
end
if(intid == 352) then --Hellfire Peninsula
player:Teleport(530, -220, 2217, 86)
pUnit:GossipComplete(player)
end
if(intid == 353) then --Nagrand
player:Teleport(530, -1525, 6571, 21)
pUnit:GossipComplete(player)
end
if(intid == 354) then --Netherstorm
player:Teleport(530, 3052, 3670, 143)
pUnit:GossipComplete(player)
end
if(intid == 355) then --Shadowmoon Valley
player:Teleport(530, -3693, 2344, 77)
pUnit:GossipComplete(player)
end
if(intid == 356) then --Terokkar Forest
player:Teleport(530, -1975, 4516, 13)
pUnit:GossipComplete(player)
end
if(intid == 357) then --Zangarmarsh
player:Teleport(530, -205, 5545, 24)
pUnit:GossipComplete(player)
end
if(intid == 358) then --Ahn'Qiraj
player:Teleport(1, -8187, 1539, 5)
pUnit:GossipComplete(player)
end
if(intid == 359) then --Blackfathom Depths
player:Teleport(1, 4248, 736, -26)
pUnit:GossipComplete(player)
end
if(intid == 360) then --Blackrock Depths
player:Teleport(0, -7187, -914, 166)
pUnit:GossipComplete(player)
end
if(intid == 361) then --Blackrock Spire
player:Teleport(0, -7532, -1221, 286)
pUnit:GossipComplete(player)
end
if(intid == 362) then --Blackwing Lair
player:Teleport(229, 137, -474, 117)
pUnit:GossipComplete(player)
end
if(intid == 363) then --Caverns of Time
player:Teleport(1, -8568, -4260, -213)
pUnit:GossipComplete(player)
end
if(intid == 364) then --Deadmines
player:Teleport(0, 11209, 1664, 25)
pUnit:GossipComplete(player)
end
if(intid == 365) then --Dire Maul
player:Teleport(1, -3524, 1124, 162)
pUnit:GossipComplete(player)
end
if(intid == 366) then --Gnomeregan
player:Teleport(0, -5164, 918,258)
pUnit:GossipComplete(player)
end
if(intid == 367) then --Maraudon
player:Teleport(1, -1458, 2606, 76)
pUnit:GossipComplete(player)
end
if(intid == 368) then --Molten Core
player:Teleport(230, 1123, -455, -101)
pUnit:GossipComplete(player)
end
if(intid == 369) then --Onyxia's Lair
player:Teleport(1, -4709, -3729, 55)
pUnit:GossipComplete(player)
end
if(intid == 370) then --Ragefire Chasm
player:Teleport(1, 1805, -4404, -18)
pUnit:GossipComplete(player)
end
if(intid == 371) then --Razorfen Downs
player:Teleport(1, -4661, -2511, 81)
pUnit:GossipComplete(player)
end
if(intid == 372) then --Razorfen Kraul
player:Teleport(1, -4473, -1690, 82)
pUnit:GossipComplete(player)
end
if(intid == 373) then --Scarlet Monestary
player:Teleport(0, 2841, -692, 140)
pUnit:GossipComplete(player)
end
if(intid == 374) then --Scholomance
player:Teleport(0, 1265, -2560, 95)
pUnit:GossipComplete(player)
end
if(intid == 375) then --Shadowfang Keep
player:Teleport(0, -241, 1545, 77)
pUnit:GossipComplete(player)
end
if(intid == 376) then --Stratholme
player:Teleport(0, 3345, -3380, 145)
pUnit:GossipComplete(player)
end
if(intid == 377) then --Sunken Temple
player:Teleport(0, -10457, -3828, 19)
pUnit:GossipComplete(player)
end
if(intid == 378) then --Uldaman
player:Teleport(0, -6704, -2955, 209)
pUnit:GossipComplete(player)
end
if(intid == 379) then --Wailing Caverns
player:Teleport(1, -737, -2219, 17)
pUnit:GossipComplete(player)
end
if(intid == 380) then --Zul'Aman
player:Teleport(530, 6850, -7950, 171)
pUnit:GossipComplete(player)
end
if(intid == 381) then --Zul'Farrak
player:Teleport(1, -6821, -2890, 9)
pUnit:GossipComplete(player)
end
if(intid == 382) then --Zul'Gurub
player:Teleport(0, -11916, -1204, 93)
pUnit:GossipComplete(player)
end
if(intid == 383) then --Auchenai Crypts
player:Teleport(530, -3367, 5216, -101)
pUnit:GossipComplete(player)
end
if(intid == 384) then --Black Temple
player:Teleport(530, -3614, 310, 40)
pUnit:GossipComplete(player)
end
if(intid == 385) then --Coilfang Reservoir
player:Teleport(530, 792, 6863, -64)
pUnit:GossipComplete(player)
end
if(intid == 386) then --Gruul's Lair
player:Teleport(530, 3529, 5096, 3)
pUnit:GossipComplete(player)
end
if(intid == 387) then --Hellfire Ramparts
player:Teleport(530, -360, 3071, -16)
pUnit:GossipComplete(player)
end
if(intid == 388) then --Mana Tombs
player:Teleport(530, -3100, 4950, -100)
pUnit:GossipComplete(player)
end
if(intid == 389) then --Pheonix Hall
player:Teleport(530, 3084, 1385, 185)
pUnit:GossipComplete(player)
end
if(intid == 390) then --Sethekk Halls
player:Teleport(530, -3364, 4675, -101)
pUnit:GossipComplete(player)
end
if(intid == 391) then --Shadow Labyrinth
player:Teleport(530, -3630, 4941, -101)
pUnit:GossipComplete(player)
end
if(intid == 392) then --The Botanica
player:Teleport(530, 3404, 1488, 183)
pUnit:GossipComplete(player)
end
if(intid == 393) then --The Mechanar
player:Teleport(530, 2870, 1557, 252)
pUnit:GossipComplete(player)
end
if(intid == 394) then --Borean Tundra
player:Teleport(571, 3008, 5290, 60)
pUnit:GossipComplete(player)
end
if(intid == 395) then --Dragonblight
player:Teleport(571, 3118, 107, 72)
pUnit:GossipComplete(player)
end
if(intid == 396) then --Grizzly Hills
player:Teleport(571, 3681, -3472, 243)
pUnit:GossipComplete(player)
end
if(intid == 397) then --Howling Fjord
player:Teleport(571, 1267, -4062, 143)
pUnit:GossipComplete(player)
end
if(intid == 398) then --Icecrown
player:Teleport(571, 7514, 2091, 623)
pUnit:GossipComplete(player)
end
if(intid == 399) then --Sholazar Basin
player:Teleport(571, 5501, 4879, -198)
pUnit:GossipComplete(player)
end
if(intid == 400) then --Storm Peaks
player:Teleport(571, 7514, -1037, 467)
pUnit:GossipComplete(player)
end
if(intid == 401) then --Wintergrasp
player:Teleport(571, 4611, 2848, 3397)
pUnit:GossipComplete(player)
end
if(intid == 402) then --Zul'Drak
player:Teleport(571, 5441, -2304, 298)
pUnit:GossipComplete(player)
end
if(intid == 403) then --Dalaran
player:Teleport(571, 5797, 629, 648)
pUnit:GossipComplete(player)
end
if(intid == 404) then --Crystalsong Forest
player:Teleport(571, 5402, 72, 151)
pUnit:GossipComplete(player)
end
if(intid == 405) then --DK Start Zone
player:Teleport(609, 2353, -5666, 427)
pUnit:GossipComplete(player)
end
if(intid == 406) then --Azjol'Nerub
player:Teleport(571, 3721, 2155, 37)
pUnit:GossipComplete(player)
end
if(intid == 407) then --Drak'Tharon
player:Teleport(571, 4897, 2046, 249)
pUnit:GossipComplete(player)
end
if(intid == 408) then --Gun'Drak
player:Teleport(571, 6925, 4447, 451)
pUnit:GossipComplete(player)
end
if(intid == 409) then --Icecrown Citadel
player:Teleport(571, 6151, 2244, 508)
pUnit:GossipComplete(player)
end
if(intid == 410) then --Naxxaramas
player:Teleport(571, 3668, -1049, 131)
pUnit:GossipComplete(player)
end
if(intid == 411) then --Obsidian Sanctum
player:Teleport(571, 3561, 275, -115)
pUnit:GossipComplete(player)
end
if(intid == 412) then --The Nexus/Occulus/Eye of Eternity
player:Teleport(571, 3783, 6942, 105)
pUnit:GossipComplete(player)
end
if(intid == 413) then --Halls of Stone/Halls of Lightning
player:Teleport(571, 8937, 1266, 1026)
pUnit:GossipComplete(player)
end
if(intid == 414) then --Utgarde Keep
player:Teleport(571, 1228, -4943, 36)
pUnit:GossipComplete(player)
end
if(intid == 415) then --Utgarde Pinnacle
player:Teleport(571, 1274, -4857, 216)
pUnit:GossipComplete(player)
end
if(intid == 416) then --Vault of Archevon
player:Teleport(571, 5440, 2840, 421)
pUnit:GossipComplete(player)
end
if(intid == 417) then --Violet Hold
player:Teleport(571, 5708, 521, 650)
pUnit:GossipComplete(player)
end
if(intid == 420) then --Gurubashi Arena
player:Teleport(0, -13282, 117, 25)
pUnit:GossipComplete(player)
end
if(intid == 421) then --Magtheridon's Lair
player:Teleport(530, -313, 3088, -116)
pUnit:GossipComplete(player)
end
if(intid == 422) then --Serpentshrine Cavern
player:Teleport(530, 830, 6865, -63)
pUnit:GossipComplete(player)
end
if(intid == 423) then --The Blood Furnace
player:Teleport(530, -303, 3164, 32)
pUnit:GossipComplete(player)
end
if(intid == 424) then --The Eye
player:Teleport(530, 3087, 1373, 185)
pUnit:GossipComplete(player)
end
if(intid == 425) then --The Shattered Halls
player:Teleport(530, -311, 3083, -3)
pUnit:GossipComplete(player)
end
if(intid == 426) then --The Slave Pens
player:Teleport(530, 719, 6999, -73)
pUnit:GossipComplete(player)
end
if(intid == 427) then --The Steamvault
player:Teleport(530, 816, 6934, -80)
pUnit:GossipComplete(player)
end
if(intid == 428) then --The Underbog
player:Teleport(530, 777, 6763, -72)
pUnit:GossipComplete(player)
end
if(intid == 450) then --Shattrath city
player:Teleport(530, -1887, 5359, -12)
pUnit:GossipComplete(player)
end
if(intid == 451) then --Mall
player:Teleport(0, -8638, 550, 145)
pUnit:GossipComplete(player)
end
if(intid == 452) then --Mall
player:Teleport(1, -8397, 2068, 144)
pUnit:GossipComplete(player)
end
intid = 0
end
RegisterItemGossipEvent(54321,1,"Item_Trigger")
RegisterItemGossipEvent(54321,2,"OnSelect")
Code:
INSERT INTO "items" ("entry", "class", "subclass", "field4", "name1", "name2", "name3", "name4", "displayid", "quality", "flags", "buyprice", "sellprice", "inventorytype", "allowableclass", "allowablerace", "itemlevel", "requiredlevel", "RequiredSkill", "RequiredSkillRank", "RequiredSkillSubRank", "RequiredPlayerRank1", "RequiredPlayerRank2", "RequiredFaction", "RequiredFactionStanding", "Unique", "maxcount", "ContainerSlots", "stat_type1", "stat_value1", "stat_type2", "stat_value2", "stat_type3", "stat_value3", "stat_type4", "stat_value4", "stat_type5", "stat_value5", "stat_type6", "stat_value6", "stat_type7", "stat_value7", "stat_type8", "stat_value8", "stat_type9", "stat_value9", "stat_type10", "stat_value10", "ScaledStatsDistributionId", "ScaledStatsDistributionFlags", "dmg_min1", "dmg_max1", "dmg_type1", "dmg_min2", "dmg_max2", "dmg_type2", "dmg_min3", "dmg_max3", "dmg_type3", "dmg_min4", "dmg_max4", "dmg_type4", "dmg_min5", "dmg_max5", "dmg_type5", "armor", "holy_res", "fire_res", "nature_res", "frost_res", "shadow_res", "arcane_res", "delay", "ammo_type", "range", "spellid_1", "spelltrigger_1", "spellcharges_1", "spellcooldown_1", "spellcategory_1", "spellcategorycooldown_1", "spellid_2", "spelltrigger_2", "spellcharges_2", "spellcooldown_2", "spellcategory_2", "spellcategorycooldown_2", "spellid_3", "spelltrigger_3", "spellcharges_3", "spellcooldown_3", "spellcategory_3", "spellcategorycooldown_3", "spellid_4", "spelltrigger_4", "spellcharges_4", "spellcooldown_4", "spellcategory_4", "spellcategorycooldown_4", "spellid_5", "spelltrigger_5", "spellcharges_5", "spellcooldown_5", "spellcategory_5", "spellcategorycooldown_5", "bonding", "description", "page_id", "page_language", "page_material", "quest_id", "lock_id", "lock_material", "sheathID", "randomprop", "unk203_1", "block", "itemset", "MaxDurability", "ZoneNameID", "mapid", "bagfamily", "TotemCategory", "socket_color_1", "unk201_3", "socket_color_2", "unk201_5", "socket_color_3", "unk201_7", "socket_bonus", "GemProperties", "ReqDisenchantSkill", "unk2", "ItemLimitCategoryId") VALUES
('54321',0,0,-1,'Teleport Stone','Teleport Stone','Teleport Stone','Teleport Stone','44269',5,0,0,0,0,-1,-1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'0','0','0','0',0,'0','0',0,'0','0',0,'0','0',0,'0','0',0,0,0,0,0,0,0,0,0,0,'0',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'The sky is the limit.',0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'0');