WoWInterface - View Single Post - Detecting World PvP Zones
View Single Post
06-18-15, 01:53 PM   #19
A Chromatic Dragonspawn
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 194
Thanks for all the responses. I already have arenas and BGs working, but I hadn't actually considered FFA PvP zones (I never did much PvP myself); I was only thinking of the three World PvP zones (Ashran, Tol Barad and Wintergrasp). That said, I think PvP only mode should cover all types of PvP zone like Semlar said.

Unless someone finds a flaw in it, I'll probably go with Semlar's solution (GetZonePVPInfo/IsInActiveWorldPVP) and check it at zone change events (PLAYER_ENTERING_WORLD, ZONE_CHANGED and ZONE_CHANGED_NEW_AREA) and World PvP events (BATTLEFIELD_MGR_*).

Does any event fire when entering or exiting the floor of the Gurubashi Arena (i.e. the FFA zone)? It looks like the subzone covers the whole arena and the surrounding area, so ZONE_CHANGED may not be useful.

Edit: Just realised I can probably test this myself on a trial account. I'll probably do it tomorrow.

Last edited by Choonstertwo : 06-18-15 at 02:08 PM.
  Reply With Quote