Advertisement
WIXXZI

Ultraxion WoW Raid Teleporter

Jul 4th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
  2. if (player:IsInCombat() == true) then
  3. player:SendAreaTriggerMessage("You Can't Access This NPC When You Are In Combat!")
  4. else
  5. pUnit:GossipCreateMenu(3544, player, 0)
  6. pUnit:GossipMenuAddItem(2, "|cFF008080Icecrown Citadel", 1, 0)
  7. pUnit:GossipMenuAddItem(2, "Vault of Archavon", 4, 0)
  8. pUnit:GossipMenuAddItem(2, "|cffffff00Ulduar", 5, 0)
  9. pUnit:GossipMenuAddItem(2, "|cff0000ffRuby Sanctum", 6, 0)
  10. pUnit:GossipMenuAddItem(2, "|cffffff00Trial of Crusader", 7, 0)
  11. pUnit:GossipSendMenu(player)
  12. end
  13. end
  14.  
  15. function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code)
  16. if(intid == 1) then
  17. player:Teleport(571, 5818.668945, 2085.135986, 636.063049)
  18. end
  19.  
  20. if(intid == 2) then
  21. player:Teleport(0, -6309.638672, -1194.167480, 353.556213)
  22. end
  23.  
  24. if(intid == 3) then
  25. player:Teleport(571, 5462.988281, 2840.310059, 418.675385)
  26. end
  27.  
  28. if(intid == 4) then
  29. player:Teleport(571, 5461.489746, 2840.310059, 418.675568)
  30. end
  31.  
  32.  
  33. if(intid == 5) then
  34. player:Teleport(571, 9023.664063, -1109.675293, 1165.275757)
  35. end
  36.  
  37. if(intid == 6) then
  38. player:Teleport(571, 3477.673828, 265.820740, -120.145973)
  39. end
  40.  
  41. if(intid == 7) then
  42. player:Teleport(571, 8515.925781, 635.621277, 547.594543)
  43. end
  44. end
  45.  
  46. RegisterUnitGossipEvent(72999, 1, "WarpNPC_OnGossipTalk")
  47. RegisterUnitGossipEvent(72999, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement