Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function On_Gossip(punit, player, event)
- 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(10, "Horde Zone", 1, 0)
- pUnit:GossipSendMenu(player)
- end
- local race=player:GetPlayerRace()
- if race==1 or race==3 or race==4 or race==7 or race==11 then
- pUnit:GossipMenuAddItem(10, "Alliance Zones", 2, 0)
- pUnit:GossipSendMenu(player)
- end
- function Gossip_Submenus(pUnit, event, player, id, intid, code)
- if(intid == 1) then
- player:Teleport(MapID, X, Y, Z)
- end
- if(intid == 2) then
- player:Teleport(MapID, X, Y, Z)
- end
- end
- RegisterUnitGossipEvent(EntryID, 1, "On_Gossip")
- RegisterUnitGossipEvent(EntryID, 2, "Gossip_Submenus")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement