Xzempt

Untitled

Aug 6th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if not bgFrame then
  2. bgFrame = CreateFrame("Frame")
  3. end
  4. local frame = bgFrame
  5. frame:RegisterEvent("UPDATE_BATTLEFIELD_STATUS")
  6. frame:SetScript("OnEvent", function(self, event, ...)
  7. for i=1, MAX_BATTLEFIELD_QUEUES do
  8. status, mapName, instanceID = GetBattlefieldStatus(i)
  9. if status == "confirm" then
  10. status, mapName, instanceID, bracketMin, bracketMax, teamSize, registeredMatch = GetBattlefieldStatus(i)
  11. print("Status: " ..status, "Map: " ..mapName, "Instance ID: " ..instanceID, "Min Level: " ..bracketMin, "Max Level: " ..bracketMax, "Team Size: " ..teamSize)
  12. SendChatMessage("Queue has popped. The battlefield is: " ..mapName, "PARTY", nil, nil)
  13. end
  14. end
  15. end)
Add Comment
Please, Sign In to add comment