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 The Mall Teleporter When You Are In Combat!")
- else
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:GossipMenuAddItem(2, "|cFF008080Mall", 1, 0)
- pUnit:GossipSendMenu(player)
- end
- end
- function WarpNPC_OnGossipSelect(punit, event, player, id, intid, code)
- if(intid == 1)then
- player:Teleport(530, -1863.653564, 5430.051270, -9.705496)
- end
- end
- RegisterUnitGossipEvent(72993, 1, "WarpNPC_OnGossipTalk")
- RegisterUnitGossipEvent(72993, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement