Michaelcain6

City Gaurd

Apr 24th, 2012
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. function Gaurd (pUnit, event, pPlayer)
  2.     pUnit:GossipCreateMenu(0, pPlayer, 0)
  3.         pUnit:GossipMenuAddItem(3, "Where's the Rogue trainer?", 1, 0)
  4.                     pUnit:GossipMenuAddItem(6, "Nevermind, Sorry.", 2, 0)
  5.             pUnit:GossipSendMenu(pPlayer)
  6. end
  7.  
  8. function Gaurd_OnGossipSelect()
  9.  
  10. local location pUnit:GetLocation()
  11.  
  12.     if (intid = 1) then
  13.    
  14.         pUnit:GossipSendPOI(X, Y, 1, 0, 0, Rogue trainer)  
  15.         --[[When making this for your zone,
  16.         Make sure to go ingame and replase the X and Y
  17.         with your X and Y locations!]]
  18.         pPlayer:GossipComplete()
  19.        
  20.    
  21.  
  22.     end
  23.    
  24.     if (intid = 2) then
  25.     pPlayer:GossipComplete()
  26. end
  27.  
  28.     end
  29.  
  30. RegisterUnitGossipEvent(90091, 1, Gaurd)
  31. RegisterUnitGossipEvent(90091, 2, Gaurd_OnGossipSelect)
Advertisement
Add Comment
Please, Sign In to add comment