Macro for Battleground Defence
Code:
/run SendChatMessage(string.format("{Triangle} %s {Triangle} - CLEAR",GetMinimapZoneText()),select(2,GetInstanceInfo())=="pvp" and "BATTLEGROUND" or GetNumWorldStateUI()>0 and "RAID" or "YELL") The macro is supposed to automatically call out the BG location I am standing in when I press it. |
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") |
Hey thanks man... I tried your macro and it seemed to yell in stormwind fine but it wouldn't print out in the battleground to the instance chat... I said /i hello it is was "active" on a enter to chat into it...
|
Any one able to modify this to work? Teh changes do not seem to send to the battleground instance chat?
|
Ah, my bad. "BATTLEGROUND" was removed a long time ago. All instances use "INSTANCE_CHAT" instead.
Code:
/run SendChatMessage(string.format("{Triangle} %s {Triangle} - CLEAR",GetMinimapZoneText()),select(2,GetInstanceInfo())=="pvp" and "INSTANCE_CHAT" or IsInRaid() and "RAID" or "YELL") |
All times are GMT -6. The time now is 05:48 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI