Advertisement
WIXXZI

Teleporter [Arcemu]

Jul 4th, 2012
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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, "|cFF008080Mall", 1, 0)
  7. pUnit:GossipMenuAddItem(2, "Duel Zone", 4, 0)
  8. pUnit:GossipMenuAddItem(2, "|cffffff00Arena", 5, 0)
  9. pUnit:GossipMenuAddItem(8, "|cff0000ffRemove Ressurection Sickness", 92, 0)
  10. pUnit:GossipSendMenu(player)
  11. end
  12. end
  13.  
  14. function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code)
  15. if(intid == 1) then
  16. player:Teleport(1, -11821.579102, -4753.318848, 6.836580)
  17. end
  18.  
  19. if(intid == 2) then
  20. player:Teleport(0, -6309.638672, -1194.167480, 353.556213)
  21. end
  22.  
  23. if(intid == 3) then
  24. player:Teleport(1, 4624.385742, -3841.790039, 943.732727)
  25. end
  26.  
  27. if(intid == 4) then
  28. player:Teleport(1, -11567.864258, -5099.115723, 77.945244)
  29. end
  30.  
  31. if(intid == 5) then
  32. player:Teleport(0, -13252.957031, 182.179565, 33.774010)
  33. end
  34.  
  35. if(intid == 92) then
  36. player:LearnSpell(15007)
  37. player:UnlearnSpell(15007)
  38. player:GossipComplete()
  39. end
  40. end
  41.  
  42. RegisterUnitGossipEvent(NPC_ID, 1, "WarpNPC_OnGossipTalk")
  43. RegisterUnitGossipEvent(NPC_ID, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement