Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NpcEntry = 60200
- function Npc_Teleport(event, player, unit)
- if (player:IsInCombat() == true) then
- player:SendAreaTriggerMessage("U can't use this while u are in combat!")
- else
- Npc_Menu(unit, player)
- end
- end
- function Npc_Menu(unit, player) -- Home Page
- local plyr = player:GetRace()
- if (plyr == 1) or (plyr == 3) or (plyr == 4) or (plyr == 7) or (plyr == 11) then
- player:GossipMenuAddItem(8, " [City] |CFF3366FF Alliance Cities", 0, 3)
- end
- if (plyr == 2) or (plyr == 5) or (plyr == 6) or (plyr == 8) or (plyr == 10) then --darkportal ----5567
- player:GossipMenuAddItem(8, " [City] |CFFCC0000 Horde Cities", 0, 2)
- end
- player:GossipMenuAddItem(8, " Mall [Dalaran]", 0, 348)
- player:GossipMenuAddItem(8, " Mall [Shattrath]", 0, 342)
- player:GossipMenuAddItem(2, " Outland Dungeons", 0, 4)
- player:GossipMenuAddItem(2, " Outland Raids", 0, 5)
- player:GossipMenuAddItem(2, " Azeroth Dungeons", 0, 6)
- player:GossipMenuAddItem(2, " [Raid] Azeroth Raids", 0, 7)
- player:GossipMenuAddItem(9, " |CFFAB062C[PVP]|r Areas", 0, 8)
- player:GossipMenuAddItem(5, " [Tools] |CFF06ABA9 Heal me!", 0, 994)
- player:GossipMenuAddItem(4, " [Tools] |CFF06ABA9 Buff Me!", 0, 995)
- player:GossipMenuAddItem(4, " |CFFAB062CRemove Sickness!", 0, 996)
- player:GossipSendMenu(1, unit)
- end
- function Teleporter_Events(event, player, unit, sender, intid, code)
- if(intid == 990) then
- local plyr = player:GetRace()
- if (plyr == 1) or (plyr == 3) or (plyr == 4) or (plyr == 7) or (plyr == 11) then
- player:GossipMenuAddItem(8, " [City] |CFF3366FF Alliance Cities", 0, 3)
- end
- if (plyr == 2) or (plyr == 5) or (plyr == 6) or (plyr == 8) or (plyr == 10) then --darkportal ----5567
- player:GossipMenuAddItem(8, " [City] |CFFCC0000 Horde Cities", 0, 2)
- end
- player:GossipMenuAddItem(8, " Mall [Dalaran]", 0, 348)
- player:GossipMenuAddItem(8, " Mall [Shattrath]", 0, 342)
- player:GossipMenuAddItem(2, " Outland Dungeons", 0, 4)
- player:GossipMenuAddItem(2, " Outland Raids", 0, 5)
- player:GossipMenuAddItem(2, " Azeroth Dungeons", 0, 6)
- player:GossipMenuAddItem(2, " [Raid] Azeroth Raids", 0, 7)
- player:GossipMenuAddItem(9, " |CFFAB062C[PVP]|r Areas", 0, 8)
- player:GossipMenuAddItem(5, " [Tools] |CFF06ABA9 Heal me!", 0, 994)
- player:GossipMenuAddItem(4, " [Tools] |CFF06ABA9 Buff Me!", 0, 995)
- player:GossipMenuAddItem(4, " |CFFAB062CRemove Sickness!", 0, 996)
- player:GossipSendMenu(1, unit)
- end
- if(intid == 2) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(8, "|CFFCC0000 Orgrimmar", 0, 300)
- player:GossipMenuAddItem(8, "|CFFCC0000 Undercity", 0, 301)
- player:GossipMenuAddItem(8, "|CFFCC0000 Thunder Bluff", 0, 302)
- player:GossipMenuAddItem(8, "|CFFCC0000 Silvermoon City", 0, 303)
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- if(intid == 3) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(8, "|CFF3366FF Stormwind", 0, 304)
- player:GossipMenuAddItem(8, "|CFF3366FF Ironforge", 0, 305)
- player:GossipMenuAddItem(8, "|CFF3366FF Darnassus", 0, 306)
- player:GossipMenuAddItem(8, "|CFF3366FF The Exodar", 0, 307)
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- if(intid == 4) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(2, " Hellfire Ramparts", 0, 308)
- player:GossipMenuAddItem(2, " Blood Furnace", 0, 309)
- player:GossipMenuAddItem(2, " Shattered Halls", 0, 310)
- player:GossipMenuAddItem(2, " Underbog", 0, 311)
- player:GossipMenuAddItem(2, " Slave Pens", 0, 312)
- player:GossipMenuAddItem(2, " Mana Tombs", 0, 313)
- player:GossipMenuAddItem(2, " Sethekk Halls", 0, 314)
- player:GossipMenuAddItem(2, " Shadow Labyrinth", 0, 315)
- player:GossipMenuAddItem(2, " The Mechanar", 0, 316)
- player:GossipMenuAddItem(2, " Arcatraz", 0, 317)
- player:GossipMenuAddItem(2, " Caverns of Time", 0, 318)
- player:GossipMenuAddItem(2, " Serpentshrine Cavern", 0, 319)
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- if(intid == 5) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(2, " Black Temple", 0, 330)
- player:GossipMenuAddItem(2, " Tempest Keep", 0, 331)
- player:GossipMenuAddItem(2, " Karazhan", 0, 337)
- player:GossipMenuAddItem(2, " Zul'Aman", 0, 341)
- player:GossipMenuAddItem(2, " Gruul's Lair", 0, 375)
- --player:GossipMenuAddItem(2, " Maghteridon's Lair", 0, 332)
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- if(intid == 6) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(2, " Shadowfang Keep", 0, 320)
- player:GossipMenuAddItem(2, " Scarlet Monastery", 0, 321)
- player:GossipMenuAddItem(2, " Zul'Farrak", 0, 322)
- player:GossipMenuAddItem(2, " Scholomance", 0, 323)
- player:GossipMenuAddItem(2, " The Deadmines", 0, 324)
- player:GossipMenuAddItem(2, " Uldaman", 0, 325)
- player:GossipMenuAddItem(2, " Sunken temple", 0, 326)
- player:GossipMenuAddItem(2, " Lower Blackrock Depths", 0, 327)
- player:GossipMenuAddItem(2, " Dire Maul", 0, 328)
- --player:GossipMenuAddItem(2, " Upper Blackrock Depths", 0, 329)
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- if(intid == 7) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(2, " Zul'Gurub", 0, 336)
- player:GossipMenuAddItem(2, " Molten Core", 0, 334)
- player:GossipMenuAddItem(2, " Blackwing Lair", 0, 335)
- player:GossipMenuAddItem(2, " Onyxia's Lair", 0, 333)
- player:GossipMenuAddItem(2, " Ruins of Ahn'Qiraj 340", 0, 338)
- player:GossipMenuAddItem(2, " Temple of Ahn'Qiraj 341", 0, 339)
- player:GossipMenuAddItem(2, " Naxxramas", 0, 340)
- player:GossipMenuAddItem(7, " [Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- if(intid == 8) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(2, "|cffFF4500 Nagrand Arena", 0, 343)
- player:GossipMenuAddItem(2, "|cffFF4500 Gurubashi Arena", 0, 345)
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- -----Coordinates Go Below-----
- if(intid == 300) then --Orgrimmar--
- player:Teleport(1, 1371.068970, -4370.801758, 26.052483, 0)
- player:GossipComplete()
- end
- if(intid == 301) then --Undercity--
- player:Teleport(0, 2050.203125, 285.650604, 56.994549, 0)
- player:GossipComplete()
- end
- if(intid == 302) then --Thunder Bluff--
- player:Teleport(1, -1304.569946, 205.285004, 68.681396, 0)
- player:GossipComplete()
- end
- if(intid == 303) then --Silvermooon City--
- player:Teleport(530, 9400.486328, -7278.376953, 14.206780, 0)
- player:GossipComplete()
- end
- -----------------------------------------------------------
- if(intid == 304) then --Stormwind City--
- player:Teleport(0, -9165.678711,470.176544, 103.978409, 0)
- player:GossipComplete()
- end
- if(intid == 305) then --Ironforge--
- player:Teleport(0, -4977.095215, -888.452942, 501.621216, 0)
- player:GossipComplete()
- end
- if(intid == 306) then --Darnassus--
- player:Teleport(1, 9943.809570, 2275.350098, 1341.390015, 0)
- player:GossipComplete()
- end
- if(intid == 307) then --The Exodar--
- player:Teleport(530, -3792.557861, -11691.3, -105.241, 0)
- player:GossipComplete()
- end
- ----------------------------------------------------------
- if(intid == 308) then --HellFire Ramparts--
- player:Teleport(530, -360.670990, 3071.899902, -15.097700, 0)
- player:GossipComplete()
- end
- if(intid == 309) then --Blood Furnace--
- player:Teleport(530, -303.506012, 3164.820068, 31.742500, 0)
- player:GossipComplete()
- end
- if(intid == 310) then --Shattered Halls--
- player:Teleport(530, -311.083527, 3083.291748, -3.745923, 0)
- player:GossipComplete()
- end
- if(intid == 311) then --Underbog--
- player:Teleport(530, 777.088989, 6763.450195, -72.062561, 0)
- player:GossipComplete()
- end
- if(intid == 312) then --Slave Pens--
- player:Teleport(530, 719.507996, 6999.339844, -73.074303, 0)
- player:GossipComplete()
- end
- if(intid == 313) then --Mana-Tombs--
- player:Teleport(530, -3079.810059, 4943.040039, -101.046997, 0)
- player:GossipComplete()
- end
- if(intid == 314) then --Setthek Halls--
- player:Teleport(530, -3362.219971, 4660.410156, -101.049004, 0)
- player:GossipComplete()
- end
- if(intid == 315) then --Shadow Labyrinth--
- player:Teleport(530, -3645.060059, 4943.620117, -101.047997, 0)
- player:GossipComplete()
- end
- if(intid == 316) then --The Mechanar--
- player:Teleport(530, 2862.409912, 1546.089966, 252.158691, 0)
- player:GossipComplete()
- end
- if(intid == 317) then --Arcatraz--
- player:Teleport(530, 3311.598145, 1332.745117, 505.557251, 0)
- player:GossipComplete()
- end
- if(intid == 318) then --Cavern of Time--
- player:Teleport(1, -8519.718750, -4297.542480, -208.441376, 0)
- player:GossipComplete()
- end
- if(intid == 319) then --Serpentshrine Cavern--
- player:Teleport(530, 830.542908, 6865.445801, -63.785503, 0)
- player:GossipComplete()
- end
- ----------------------------------------------------------
- if(intid == 330) then --Black Temple--
- player:Teleport(530, -3628.623291, 314.697510, 38.257904, 0)
- player:GossipComplete()
- end
- if(intid == 331) then --Tempest Keep--
- player:Teleport(530, 3089.057129, 1394.752197, 186.302628, 0)
- player:GossipComplete()
- end
- if(intid == 332) then --Magtheridon's Lair--
- player:Teleport(530, -313.678986, 3088.350098, -116.501999, 0)
- player:GossipComplete()
- end
- if(intid == 337) then --Karazhan--
- player:Teleport(0, -11124.789063, -2016.765259, 47.125431, 0)
- player:GossipComplete()
- end
- if(intid == 341) then --Zul'Aman--
- player:Teleport(530, 6850, -7950, 170, 0)
- player:GossipComplete()
- end
- if(intid == 375) then --Gruul's Lair--
- player:Teleport(530, 3530.207031, 5126.354492, 2.917513, 0)
- player:GossipComplete()
- end
- ----------------------------------------------------------
- if(intid == 333) then --Onyxia's Lair--
- player:Teleport(1, -4730.574219, -3743.315186, 57.275661, 3.557852)
- player:GossipComplete()
- end
- if(intid == 334) then --Molten Core--
- player:Teleport(409, 1089.486816, -470.366241, -106.475876, 0)
- player:GossipComplete()
- end
- if(intid == 335) then --Blackwing Lair--
- player:Teleport(469, -7665.55, -1102.49, 400.679, 0)
- player:GossipComplete()
- end
- if(intid == 336) then --Zul'Gurub--
- player:Teleport(0, -11919.073242, -1202.459374, 92.298744, 0)
- player:GossipComplete()
- end
- if(intid == 338) then --Ruins of Ahn'Qiraj
- player:Teleport(1, -8394.730469, 1485.658447, 21.038563, 0)
- player:GossipComplete()
- end
- if(intid == 339) then --Temple of Ahn'Qiraj
- player:Teleport(1, -8247.316406, 1970.156860, 129.071472, 0)
- player:GossipComplete()
- end
- if(intid == 340) then --Naxxramas
- player:Teleport(533, 3006.06, -3436.72, 293.891, 0)
- player:GossipComplete()
- end
- ----------------------------------------------------------
- if(intid == 320) then --Shadowfang Keep--
- player:Teleport(0, -234.675003, 1561.630005, 77.473145, 1.240310)
- player:GossipComplete()
- end
- if(intid == 321) then --Scarlet Monastarey--
- player:Teleport(0, 2843.570069, -692.133972, 139.330734, 0)
- player:GossipComplete()
- end
- if(intid == 322) then --Zul'Farrak--
- player:Teleport(1, -6801.189941, -2893.020020, 9.941879, 0.158639)
- player:GossipComplete()
- end
- if(intid == 323) then --Scholomance--
- player:Teleport(0, 1264.672363, -2558.375000, 94.128685, 0)
- player:GossipComplete()
- end
- if(intid == 324) then --The Deamines--
- player:Teleport(0, -11208.843750, 1667.725952, 24.624727, 0)
- player:GossipComplete()
- end
- if(intid == 325) then --Uldaman--
- player:Teleport(0, -6085.118652, -3220.368164, 262.885529, 0)
- player:GossipComplete()
- end
- if(intid == 326) then --Sunken Temple--
- player:Teleport(0, -10349.099609, -3849.669922, -41.240356, 0)
- player:GossipComplete()
- end
- if(intid == 327) then --Lower Blackrock Spire--
- player:Teleport(0, -7734.138184, -1515.616333, 133.851135, 1.105376)
- player:GossipComplete()
- end
- if(intid == 328) then --Dire Maul--
- player:Teleport(1, -3981.025391, 788.601379, 161.007019, 0)
- player:GossipComplete()
- end
- if(intid == 329) then --Upper Blackrock Spire--
- player:Teleport(469, -766.245117, -1103.233154, 399.680328, 0)
- player:GossipComplete()
- end
- ----------------------------------------------------------
- if(intid == 342) then --Shattrath (Mall)--
- player:Teleport(530, -1877.179077, 5458.045898, -12.427818, 5.190694)
- player:GossipComplete()
- end
- if(intid == 348) then --Dalaran City (Mall #2)--
- player:Teleport(571, 5821.965820, 642.128479, 648.014038, 3.224844)
- player:GossipComplete()
- end
- ----------------------------------------------------------
- if(intid == 343) then --Nagrand Arena--
- player:Teleport(530, -2044.768799, 6654.127441, 13.054342, 0)
- player:GossipComplete()
- end
- if(intid == 345) then --Gurubashi Arena--
- player:Teleport(530,-2011.498413, 6601.716797, 12.434589, 0)
- player:GossipComplete()
- end
- ----------------------------------------------------------
- if (intid == 994) then -- Heal
- player:SetHealth(player:GetMaxHealth())
- player:SendAreaTriggerMessage("your life has been recovered!")
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipComplete()
- end
- if (intid == 996) then -- Remove Sickness
- player:RemoveAura(15007)
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipComplete()
- end
- if(intid == 995) then
- player:GossipClearMenu()
- player:AddAura(33077, player)
- player:AddAura(33078, player)
- player:AddAura(33079, player)
- player:AddAura(33080, player)
- player:AddAura(33081, player)
- player:AddAura(33082, player)
- player:AddAura(42995, player)
- player:AddAura(48161, player)
- player:AddAura(25898, player)
- player:SendAreaTriggerMessage("You're now Buffed!")
- player:GossipMenuAddItem(7, "[Main Menu]", 0, 990)
- player:GossipSendMenu(1, unit)
- end
- end
- RegisterCreatureGossipEvent(NpcEntry, 1, Npc_Teleport)
- RegisterCreatureGossipEvent(NpcEntry, 2, Teleporter_Events)
Advertisement
Add Comment
Please, Sign In to add comment