Advertisement
WIXXZI

Mall Teleporter Ultraxion WoW

Jul 5th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 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 The Mall Teleporter When You Are In Combat!")
  4. else
  5. pUnit:GossipCreateMenu(3544, player, 0)
  6. pUnit:GossipMenuAddItem(2, "|cFF008080Mall", 1, 0)
  7. pUnit:GossipSendMenu(player)
  8. end
  9. end
  10.  
  11. function WarpNPC_OnGossipSelect(punit, event, player, id, intid, code)
  12. if(intid == 1)then
  13. player:Teleport(530, -1863.653564, 5430.051270, -9.705496)
  14. end
  15. end
  16.  
  17. RegisterUnitGossipEvent(72993, 1, "WarpNPC_OnGossipTalk")
  18. RegisterUnitGossipEvent(72993, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement