Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Gaurd (pUnit, event, pPlayer)
- pUnit:GossipCreateMenu(0, pPlayer, 0)
- pUnit:GossipMenuAddItem(3, "Where's the Rogue trainer?", 1, 0)
- pUnit:GossipMenuAddItem(6, "Nevermind, Sorry.", 2, 0)
- pUnit:GossipSendMenu(pPlayer)
- end
- function Gaurd_OnGossipSelect()
- local location pUnit:GetLocation()
- if (intid = 1) then
- pUnit:GossipSendPOI(X, Y, 1, 0, 0, Rogue trainer)
- --[[When making this for your zone,
- Make sure to go ingame and replase the X and Y
- with your X and Y locations!]]
- pPlayer:GossipComplete()
- end
- if (intid = 2) then
- pPlayer:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(90091, 1, Gaurd)
- RegisterUnitGossipEvent(90091, 2, Gaurd_OnGossipSelect)
Advertisement
Add Comment
Please, Sign In to add comment