Advertisement
WIXXZI

Raid Teleporter PvE

Jul 24th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 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, "Back to Mall", 9, 0)
  7. pUnit:GossipMenuAddItem(2, "|cFF008080Icecrown Citadel", 1, 0)
  8. pUnit:GossipMenuAddItem(2, "Vault of Archavon", 4, 0)
  9. pUnit:GossipMenuAddItem(2, "|cffffff00Ulduar", 5, 0)
  10. pUnit:GossipMenuAddItem(2, "|cff0000ffRuby Sanctum", 6, 0)
  11. pUnit:GossipMenuAddItem(2, "|cffffff00Trial of Crusader", 7, 0)
  12. pUnit:GossipMenuAddItem(2, "|cff0000ffNaxxramas", 8, 0)
  13. pUnit:GossipSendMenu(player)
  14. end
  15. end
  16.  
  17. function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code)
  18. if(intid == 1) then
  19. player:Teleport(571, 5818.668945, 2085.135986, 636.063049)
  20. end
  21.  
  22. if(intid == 2) then
  23. player:Teleport(0, -6309.638672, -1194.167480, 353.556213)
  24. end
  25.  
  26. if(intid == 3) then
  27. player:Teleport(571, 5462.988281, 2840.310059, 418.675385)
  28. end
  29.  
  30. if(intid == 4) then
  31. player:Teleport(571, 5461.489746, 2840.310059, 418.675568)
  32. end
  33.  
  34.  
  35. if(intid == 5) then
  36. player:Teleport(571, 9023.664063, -1109.675293, 1165.275757)
  37. end
  38.  
  39. if(intid == 6) then
  40. player:Teleport(571, 3477.673828, 265.820740, -120.145973)
  41. end
  42.  
  43. if(intid == 7) then
  44. player:Teleport(571, 8515.925781, 635.621277, 547.594543)
  45. end
  46.  
  47. if(intid == 8) then
  48. player:Teleport(533, 3005.548340, -3434.102783, 293.881439)
  49. end
  50.  
  51. if(intid == 9) then
  52. player:Teleport(530, -1863.653564, 5430.051270, -9.705496)
  53. end
  54. end
  55.  
  56. RegisterUnitGossipEvent(72999, 1, "WarpNPC_OnGossipTalk")
  57. RegisterUnitGossipEvent(72999, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement