WoWInterface - View Single Post - Macro for Battleground Defence
View Single Post
01-04-21, 08:30 PM   #2
A Molten Giant
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 575
The WorldStateFrame was removed, so GetNumWorldStateUI no longer exists. All extra info frames, such as capture bars under the minimap, world pvp zones, battleground information, and so on was consolidated into a central UIWidgetManager. However, you should just check if you're in a raid to use the RAID channel. Using that macro in an area with an active widget while not in a raid will give a chat message saying you're not in a raid.

/run SendChatMessage(string.format("{Triangle} %s {Triangle} - CLEAR",GetMinimapZoneText()),select(2,GetInstanceInfo())=="pvp" and "BATTLEGROUND" or IsInRaid() and "RAID" or "YELL")
  Reply With Quote