Untested....
/run SendChatMessage(string.format("{Skull} >>Need Help at [%s] NOW!<< {Skull}",GetMinimapZoneText()),select(2,GetInstanceInfo())=="pvp" and "BATTLEGROUND" or GetNumWorldStateUI()>0 and "RAID" or "YELL")
What this
should do:
- If in a pvp instance, use "BATTLEGROUND".
- If there is any world state capture information on the screen (towers held, capture bars, etc.), use "RAID". (Note: this is assuming that you get this information on your screen in Tol Barad - I haven't participated in a battle myself yet.)
- Otherwise use "YELL".