is it possible to use map id as key
xiaopengcn opened this issue · 8 comments
I am not very good at English, so I put this wrong, you can check out this wa for this map id is what I mentioned about
In English there are mainly two concepts:
- Connected realms (servers): WBT supports this already via Util.GetConnectedRealms()
- Cross-realm: WBT does not support this due to elevated risk of giving incorrect timers when people are grouping
--
What is it you want to use map id as key for? Today it's only used to check if you're in the same zone as a boss.
Sorry, not map id, should be zone_uid
a lot of servers shared a same zone, so if my two different characters in same map with same zone_uid, the timer should be shared.
I dont know the specific API :( , but i got this wa to display current zone_uid in my screen, It's start with some chinese, means you can hover a npc to display current zone_id(we call it 位面)
!WA:2!TF1ZRTXXx846db2uOjIIjqdKTQ0ujI(AItbtPqivsETJnYsQRwfN8fAxpA3zLMKvZUmZSYw(qjFv)cXxAd1hc0cbc6yON0LMs)2Ms)lyj0)ccoPjxZTERVzxjvf5n0(fCPx6CzFV3mZ79zE)y23mZYPANYoL9UVdZlq4sOywL6gLwTSMULNRhBTzHXaBc33f11aVTyW(F)N9S70F1LE)32QVvax41wk2)SobulbXJMjRIkmyyraJQIcyitmTZ8)7kL1mRV6skyQnRBfhhowCPp4I1nocm8FZjSGPJhRnsy6BkiTXM2DPO2eRw(h)3TwDFBKaRJ7GPIhHcaPibXAdITOvH8aldfbf(I6CbIjukqOeXz2Z2ZmwhB2i(RF1dGp1lOM(z)V7(K7EZN9v3A)F4bpE39E6dUzMNS7T)LEF7JV53LD)7FJ9V)9kxTii6j34Ep9Z)MhFRBpYPKUHdykElLEcgPztmJx(mSHK7EIE2G1Kal1cpIh0ic(vzyhY261QQvQuFBCJahhJU(y2L0kvD56LkiaMWudIXRze3XgX1IyJ1LojBDWhH5kHhRFrV2nqc1sEnhBIAGojBpWSy(AgM1mYRB8OyfS0q44)FMk456zHCvhHwWLCU5xyIjWB7tINYamom9kyHKktw1ZoExtMfmswUP2AovblahLseqJWA4PJXm3)lxrVs9QMRvbYfxkNAmxjTLnYPwTu(RQPBwQYkRwEmNwzdn9vlVI5gv0lbBOC(11mH5mGWA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ZEdgYV3gdjsX1F35p38lMQZpFLF7p
I won't load that weak aura now, but I assume it will return the same as C_Map.GetBestMapForUnit("player")
.
So the reason it has not been enabled PVE:{boss_id} but rather ConnectedRealm:{boss_id} is that if you are in a zone with low amount of players, then Blizzard can decide to merge it with some other servers (this is called CrossRealm). It's not possible to use the API to determine what servers are part of the CrossRealm-zone, so if you log in on another server, which is not connected to your previous one, then it's possible that you may, or may not, get on the same zone. To keep the addon conservative and avoid false positives, the timer will therefore not show.
Today you can show it, but without getting a notification, by using this option: