WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Macro for Battleground Defence (https://www.wowinterface.com/forums/showthread.php?t=58525)

Jynks 01-04-21 07:33 PM

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")
I used to have a bunch of BG macros for yelling "Incoming" "Clear" and "HELP"... but I started a new toon to level in BGs this time and they no longer work.. can anyone help me?

The macro is supposed to automatically call out the BG location I am standing in when I press it.

Kanegasi 01-04-21 08:30 PM

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")

Jynks 01-05-21 08:49 AM

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...

Jynks 01-12-21 08:34 PM

Any one able to modify this to work? Teh changes do not seem to send to the battleground instance chat?

Kanegasi 01-13-21 07:37 PM

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 02:14 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI