Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --|||||SCRIPTED BY Sunrise||||||--
- --||IF YOU STEAL I KIEL||--
- --||CREDITS TO ME||--
- local NPC_ID = 111111 -- change to your id
- function BG_OnGossipTalk(pUnit, Event, player)
- pUnit:GossipCreateMenu(1, player, 0)
- pUnit:GossipMenuAddItem(1, "Warsong Gulch", 1, 0)
- pUnit:GossipMenuAddItem(1, "Arathi Basin", 2, 0)
- pUnit:GossipMenuAddItem(1, "Eye of the Storm", 3, 0)
- pUnit:GossipMenuAddItem(1, "Strand of the Acients", 4, 0)
- pUnit:GossipMenuAddItem(1, "Alterac Valley", 5, 0)
- pUnit:GossipMenuAddItem(1, "Never mind", 6, 0)
- pUnit:GossipSendMenu(player)
- end
- function BG_OnGossipSelect(pUnit, Event, player, id, intid, code, pMisc)
- if(intid == 1) then
- player:SendBattlegroundWindow(2)
- player:GossipComplete()
- end
- if(intid == 2) then
- player:SendBattlegroundWindow(3)
- player:GossipComplete()
- end
- if(intid == 3) then
- player:SendBattlegroundWindow(7)
- player:GossipComplete()
- end
- if(intid == 4) then
- player:SendBattlegroundWindow(9)
- player:GossipComplete()
- end
- if(intid == 5) then
- player:SendBattlegroundWindow(1)
- player:GossipComplete()
- end
- if(intid == 6) then
- player:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(NPC_ID, 1, "BG_OnGossipTalk")
- RegisterUnitGossipEvent(NPC_ID, 2, "BG_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement