Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
- if (player:IsInCombat() == true) then
- player:SendAreaTriggerMessage("Can't use 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(8, "|cFFFF0000Main City teleport", 3, 0)
- end
- local race=player:GetPlayerRace()
- if race==2 or race==5 or race==6 or race==8 or race==10 then
- pUnit:GossipMenuAddItem(8, "|cFFFF0000[Main City Teleport]", 1, 0)
- end
- pUnit:GossipMenuAddItem(1, "|cFFFF00FF[Mall&Task Area]", 4, 0)
- pUnit:GossipMenuAddItem(7, "|cFF0033CC[Boss Fight Transfer]", 5, 0)
- pUnit:GossipMenuAddItem(0, "|cFF993300[Arena]", 6, 0)
- pUnit:GossipMenuAddItem(6, "|cFF00FF00[Leveling Roads]", 7, 0)
- pUnit:GossipMenuAddItem(4, "|cff00CC99[Update Skill]", 2000, 0)
- pUnit:GossipMenuAddItem(4, "|cffFFFFFF[Reset Talents]", 3000, 0)
- pUnit:GossipMenuAddItem(10, "|cFF999999[Ress]", 2, 0)
- pUnit:GossipSendMenu(player)
- end
- end
- function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code)
- if(intid == 1) then
- pUnit:GossipCreateMenu(51, player, 0)
- pUnit:GossipMenuAddItem(4, "|cFFFF0000[Orgrimmar]", 10, 0)
- pUnit:GossipMenuAddItem(4, "|cFFFF0000[Undercity]", 11, 0)
- pUnit:GossipMenuAddItem(4, "|cFFFF0000[Thunder Bluff]", 12, 0)
- pUnit:GossipMenuAddItem(4, "|cFFFF0000[Silvermoon]", 13, 0)
- pUnit:GossipSendMenu(player)
- end
- if(intid == 3) then
- pUnit:GossipCreateMenu(52, player, 0)
- pUnit:GossipMenuAddItem(4, "|cFF0033FF[Stormwind]", 14, 0)
- pUnit:GossipMenuAddItem(4, "|cFF0033FF[Ironforge]", 15, 0)
- pUnit:GossipMenuAddItem(4, "|cFF0033FF[Darnassus]", 16, 0)
- pUnit:GossipMenuAddItem(4, "|cFF0033FF[Exodar]", 17, 0)
- pUnit:GossipSendMenu(player)
- end
- if(intid == 5) then
- pUnit:GossipCreateMenu(56, player, 0)
- pUnit:GossipMenuAddItem(1, "|cFFFF0000[Arena Bosses]", 19, 0)
- pUnit:GossipMenuAddItem(3, "|cFFFF0000[(New)VOA Bosses]", 21, 0)
- pUnit:GossipMenuAddItem(3, "|cFFFF0000[ICC Bosses]", 22, 0)
- pUnit:GossipMenuAddItem(8, "|cFFFF0000[Tanaris Bosses]", 23, 0)
- pUnit:GossipMenuAddItem(7, "|cFFFF0000[Durnholde Bosses]", 24, 0)
- pUnit:GossipMenuAddItem(7, "|cFFFF0000[GMisland]", 25, 0)
- pUnit:GossipSendMenu(player)
- end
- if(intid == 7) then
- pUnit:GossipCreateMenu(58, player, 0)
- pUnit:GossipMenuAddItem(2, "|cFF008000[1-70]", 41, 0)
- pUnit:GossipMenuAddItem(2, "|cFF008000[70-95]", 430, 0)
- pUnit:GossipSendMenu(player)
- end
- if(intid == 4) then
- player:Teleport(0, 261.147949, -2754.336914, 122.551956)
- end
- if(intid == 6) then
- player:Teleport(0, -13224.389648, 235.179276, 33.446323)
- end
- if(intid == 10) then
- player:Teleport(1, 1484, -4417, 25)
- end
- if(intid == 11) then
- player:Teleport(0, 1831, 238, 60)
- end
- if(intid == 12) then
- player:Teleport(1, -1277, 118, 131)
- end
- if(intid == 13) then
- player:Teleport(530, 9413, -7277, 14)
- end
- if(intid == 14) then
- player:Teleport(0, -8913.23, 554.633, 94.7944)
- end
- if(intid == 15) then
- player:Teleport(0, -4981.25, -881.542, 502.66)
- end
- if(intid == 16) then
- player:Teleport(1, 9948, 2413, 1327)
- end
- if(intid == 17) then
- player:Teleport(530, -4014.080078, -11895.799805, -1.990842)
- end
- if(intid == 19) then
- player:Teleport(0, -13224.389648, 235.179276, 33.446323)
- end
- if(intid == 21) then
- player:Teleport(571, 5483.257324, 2840.446289, 419.170929)
- end
- if(intid == 22) then
- player:Teleport(571, 5804.397461, 2077.846436, 636.064026)
- end
- if(intid == 23) then
- player:Teleport(1, -7083.559570, -3796.527100, 8.575035)
- end
- if(intid == 25) then
- player:Teleport(1, 16222.599609, 16265.900391, 13.208698)
- end
- if(intid == 24) then
- player:Teleport(0, -658.853943, -1355.948975, 69.602150)
- end
- if(intid == 41) then
- player:Teleport(1, 4636.985352, -3819.007568, 942.851318)
- end
- if(intid == 2000) then
- if (PlayerClass == "Death Knight") then
- pUnit:FullCastSpellOnTarget(201, player)
- player:LearnSpell(202)
- player:LearnSpell(196)
- player:LearnSpell(197)
- player:LearnSpell(200)
- player:LearnSpell(198)
- player:LearnSpell(199)
- player:LearnSpell(53428)
- elseif (PlayerClass == "Druid") then
- player:LearnSpell(227)
- player:LearnSpell(200)
- player:LearnSpell(198)
- player:LearnSpell(199)
- player:LearnSpell(1180)
- elseif (PlayerClass == "Hunter") then
- player:LearnSpell(201)
- player:LearnSpell(202)
- player:LearnSpell(196)
- player:LearnSpell(197)
- player:LearnSpell(227)
- player:LearnSpell(200)
- player:LearnSpell(266)
- player:LearnSpell(264)
- player:LearnSpell(5011)
- player:LearnSpell(3018)
- player:LearnSpell(1180)
- elseif (PlayerClass == "Mage") then
- player:LearnSpell(201)
- player:LearnSpell(227)
- player:LearnSpell(1180)
- player:LearnSpell(5009)
- player:LearnSpell(5019)
- elseif (PlayerClass == "Paladin") then
- player:LearnSpell(201)
- player:LearnSpell(202)
- player:LearnSpell(196)
- player:LearnSpell(197)
- player:LearnSpell(200)
- player:LearnSpell(198)
- player:LearnSpell(199)
- elseif (PlayerClass == "Priest") then
- player:LearnSpell(227)
- player:LearnSpell(198)
- player:LearnSpell(1180)
- player:LearnSpell(5009)
- player:LearnSpell(5019)
- elseif (PlayerClass == "Rogue") then
- player:LearnSpell(201)
- player:LearnSpell(196)
- player:LearnSpell(266)
- player:LearnSpell(264)
- player:LearnSpell(5011)
- player:LearnSpell(3018)
- player:LearnSpell(198)
- player:LearnSpell(1180)
- player:LearnSpell(2567)
- player:LearnSpell(2764)
- elseif (PlayerClass == "Shaman") then
- player:LearnSpell(196)
- player:LearnSpell(197)
- player:LearnSpell(227)
- player:LearnSpell(198)
- player:LearnSpell(199)
- player:LearnSpell(1180)
- elseif (PlayerClass == "Warlock") then
- player:LearnSpell(201)
- player:LearnSpell(227)
- player:LearnSpell(1180)
- player:LearnSpell(5009)
- player:LearnSpell(5019)
- elseif (PlayerClass == "Warrior") then
- player:LearnSpell(264)
- player:LearnSpell(266)
- player:LearnSpell(202)
- player:LearnSpell(196)
- player:LearnSpell(197)
- player:LearnSpell(227)
- player:LearnSpell(200)
- player:LearnSpell(266)
- player:LearnSpell(264)
- player:LearnSpell(5011)
- player:LearnSpell(3018)
- player:LearnSpell(198)
- player:LearnSpell(199)
- player:LearnSpell(1180)
- player:LearnSpell(2567)
- player:LearnSpell(2764)
- end
- player:AdvanceSkill(43, 1000)
- player:AdvanceSkill(44, 1000)
- player:AdvanceSkill(45, 1000)
- player:AdvanceSkill(46, 1000)
- player:AdvanceSkill(54, 1000)
- player:AdvanceSkill(55, 1000)
- player:AdvanceSkill(95, 1000)
- player:AdvanceSkill(136, 1000)
- player:AdvanceSkill(160, 1000)
- player:AdvanceSkill(162, 1000)
- player:AdvanceSkill(172, 1000)
- player:AdvanceSkill(173, 1000)
- player:AdvanceSkill(176, 1000)
- player:AdvanceSkill(226, 1000)
- player:AdvanceSkill(228, 1000)
- player:AdvanceSkill(229, 1000)
- player:AdvanceSkill(473, 1000)
- player:AdvanceSkill(164, 1000)
- player:AdvanceSkill(165, 1000)
- player:AdvanceSkill(171, 1000)
- player:AdvanceSkill(182, 1000)
- player:AdvanceSkill(186, 1000)
- player:AdvanceSkill(197, 1000)
- player:AdvanceSkill(202, 1000)
- player:AdvanceSkill(333, 1000)
- player:AdvanceSkill(393, 1000)
- player:AdvanceSkill(755, 1000)
- player:AdvanceSkill(773, 1000)
- player:AdvanceSkill(129, 1000)
- player:AdvanceSkill(185, 1000)
- player:AdvanceSkill(356, 1000)
- player:FullCastSpell(33389)
- player:FullCastSpell(33392)
- player:FullCastSpell(34092)
- player:FullCastSpell(34093)
- player:FullCastSpell(54198)
- pUnit:GossipCreateMenu(100005, player, 0)
- pUnit:GossipMenuAddItem(8, "[Skills maxed]", 75, 0)
- pUnit:GossipSendMenu(player)
- end
- if(intid == 3000) then
- player:GossipComplete()
- player:GossipMiscAction(9, player, 1)
- end
- if(intid == 999) then
- player:GossipComplete()
- end
- if(intid == 430) then
- player:Teleport(1, -6216.014160, -3904.442627, -60.429264)
- end
- end
- RegisterItemGossipEvent(6948, 1, "WarpNPC_OnGossipTalk")
- RegisterItemGossipEvent(6948, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement