Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NatoSwiftmend (pUnit, event, player, pMisc)
- if (player:IsInCombat() == true) then
- player:SendAreaTriggerMessage("You cannot access Nato Swiftmend while you're in combat!")
- else
- pUnit:GossipCreateMenu(50, player, 0)
- local race=player:GetPlayerRace()
- if race==2 or race==5 or race==6 or race==8 or race==10 then
- pUnit:GossipMenuAddItem(3, "Mall", 1, 0)
- pUnit:GossipMenuAddItem(9, "Cross Faction Battle", 2, 0)
- pUnit:GossipMenuAddItem(10, "Solo Content", 3, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind", 5, 0)
- end
- local race=player:GetPlayerRace()
- if race==1 or race==3 or race==4 or race==7 or race==11 then
- pUnit:GossipMenuAddItem(3, "Mall", 1, 0)
- pUnit:GossipMenuAddItem(9, "Cross Faction Battle", 4, 0)
- pUnit:GossipMenuAddItem(10, "Solo Content", 3, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind", 5, 0)
- pUnit:GossipSendMenu(player)
- end
- function NatoSwiftmend2(pUnit, event, player, id, intid, code)
- if(intid == 1) then
- player:Teleport(1, -10710.852539, 2482.370850, 7.922390)
- end
- if(intid == 2) then
- player:Teleport(0, 1804.678345, 186.426788, 70.398277)
- end
- if(intid == 3) then
- player:Teleport(0, 0, 0, 0) -- Unfinished
- end
- if(intid == 4) then
- player:Teleport(0, 1805.745361, 291.897797, 70.3992628)
- end
- if(intid == 5) then
- player:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(80000, 1, "NatoSwiftmend")
- RegisterUnitGossipEvent(80000, 2, "NatoSwiftmend2")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement