MichaelCrow

Untitled

Apr 23rd, 2012
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Script made by Mönster of Ac-web
  2.  
  3. function RaidGroup(pUnit, event, pPlayer)
  4. if (pUnit:IsInGroup() == true) and (pUnit:IsGroupFull() == true) then                               --Will this stuff work? :P
  5.             pUnit:GossipCreateMenu(100, pPlayer, 0)
  6.             pUnit:GossipMenuAddItem(6, "Convert my group to Raid!", 1, 0)
  7.             pUnit:GossipMenuAddItem(6, "Nevermind, Sorry.", 2, 0)
  8.             pUnit:GossipSendMenu(pPlayer)
  9.             else
  10.             pPlayer:GossipComplete()
  11.             end
  12.             end
  13.            
  14. function RaidGroup_OnGossipSelect(pUnit, event, pPlayer, id, intid, code)
  15.     if (intid = 1) then
  16.      pUnit:ExpandToRaid()   --Forcably converts to raid.
  17.      pPlayer:GossipComplete()
  18.      end
  19.     if (intid = 2) then
  20.     pPlayer:GossipComplete()
  21.      end
  22. end
  23.  
  24.  
  25.  
  26. RegisterUnitGossipEvent(90091, 1, RaidGroup)
  27. RegisterUnitGossipEvent(90091, 2, RaidGroup_OnGossipSelect)
Advertisement
Add Comment
Please, Sign In to add comment