Quantcast
WoWInterface - View Single Post - Determin which battleground player is in
View Single Post
05-09-20, 05:41 PM   #4
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,124
Correct, but you will want to use the instanceID return (eighth value) because the numbers won't change, but there could be conflicts with the name across locales. The name is useful only to show to users while instanceID is what to use when checking the instance.

In other words, instanceID is unique but you cannot guarantee name is unique. Think of it this way: whenever Blizzard decides to provide a legacy version of a battleground, it will share the same name as the current version of the battleground (name == name) but they will have different instanceIDs to tell them apart.
  Reply With Quote