View Single Post
04/03/23, 04:36 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,008
Not sure about the PvP flagged, you will have to test it, but you know that the unitTag is not the character name and you will need to use some way to get the unitTag via group, guild, or reticle/crosshair somehow?
And saving the unitTag will not work as they change even in the same group upon porting to new zones, or as members join the group, or leavem.


Maybe GetUnitZone(unitTag) and then check if the zoneIds == Cyrodiil or Imperail City or Sewers can help?
But it does not tell you if they are queued and not in that zones yet!

The zoneIds are in the list of LibZone, LibZone_Data.lua

Search for Cyrodiil and you'll get the ID, I think it was something in the 180ish, maybe 181?
Not sure anymore about IC and IC sewers, and if BGs have a proper zoneId or not.
  Reply With Quote