Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.30 KB | None | 0 0
  1. --|||||SCRIPTED BY Sunrise||||||--
  2. --||IF YOU STEAL I KIEL||--
  3. --||CREDITS TO ME||--
  4.  
  5. local NPC_ID = 111111 -- change to your id
  6.  
  7. function BG_OnGossipTalk(pUnit, Event, player)
  8.     pUnit:GossipCreateMenu(1, player, 0)
  9.     pUnit:GossipMenuAddItem(1, "Warsong Gulch", 1, 0)
  10.     pUnit:GossipMenuAddItem(1, "Arathi Basin", 2, 0)
  11.     pUnit:GossipMenuAddItem(1, "Eye of the Storm", 3, 0)
  12.     pUnit:GossipMenuAddItem(1, "Strand of the Acients", 4, 0)
  13.     pUnit:GossipMenuAddItem(1, "Alterac Valley", 5, 0)
  14.     pUnit:GossipMenuAddItem(1, "Never mind", 6, 0)
  15.     pUnit:GossipSendMenu(player)
  16. end
  17.  
  18. function BG_OnGossipSelect(pUnit, Event, player, id, intid, code, pMisc)
  19.    if(intid == 1) then
  20.     player:SendBattlegroundWindow(2)
  21.     player:GossipComplete()
  22. end
  23.  
  24. if(intid == 2) then
  25.     player:SendBattlegroundWindow(3)
  26.     player:GossipComplete()
  27. end
  28.  
  29. if(intid == 3) then
  30.     player:SendBattlegroundWindow(7)
  31.     player:GossipComplete()
  32. end
  33.  
  34. if(intid == 4) then
  35.     player:SendBattlegroundWindow(9)
  36.     player:GossipComplete()
  37. end
  38.  
  39. if(intid == 5) then
  40.     player:SendBattlegroundWindow(1)
  41.     player:GossipComplete()
  42. end
  43.  
  44. if(intid == 6) then
  45.     player:GossipComplete()
  46. end
  47. end
  48.  
  49. RegisterUnitGossipEvent(NPC_ID, 1, "BG_OnGossipTalk")
  50. RegisterUnitGossipEvent(NPC_ID, 2, "BG_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement