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("You Can't Access This NPC When You Are In Combat!")
- else
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:GossipMenuAddItem(2, "|cFF008080Icecrown Citadel", 1, 0)
- pUnit:GossipMenuAddItem(2, "Vault of Archavon", 4, 0)
- pUnit:GossipMenuAddItem(2, "|cffffff00Ulduar", 5, 0)
- pUnit:GossipMenuAddItem(2, "|cff0000ffRuby Sanctum", 6, 0)
- pUnit:GossipMenuAddItem(2, "|cffffff00Trial of Crusader", 7, 0)
- pUnit:GossipSendMenu(player)
- end
- end
- function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code)
- if(intid == 1) then
- player:Teleport(571, 5818.668945, 2085.135986, 636.063049)
- end
- if(intid == 2) then
- player:Teleport(0, -6309.638672, -1194.167480, 353.556213)
- end
- if(intid == 3) then
- player:Teleport(571, 5462.988281, 2840.310059, 418.675385)
- end
- if(intid == 4) then
- player:Teleport(571, 5461.489746, 2840.310059, 418.675568)
- end
- if(intid == 5) then
- player:Teleport(571, 9023.664063, -1109.675293, 1165.275757)
- end
- if(intid == 6) then
- player:Teleport(571, 3477.673828, 265.820740, -120.145973)
- end
- if(intid == 7) then
- player:Teleport(571, 8515.925781, 635.621277, 547.594543)
- end
- end
- RegisterUnitGossipEvent(72999, 1, "WarpNPC_OnGossipTalk")
- RegisterUnitGossipEvent(72999, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement