7,679,370 Downloads Last Updated: Aug 12, 2019 Game Version: 8.2.0

Data for "realm" shared on connected realms

#368 By  ckaotik

Created Nov 14, 2014 Updated Nov 15, 2014

Assigned to  nevcairiel

What is the enhancement in mind? How should it look and feel? Data that is based on a "realm" scope should be the same for all characters in a connected realms group since their guilds, auctions and whatnot are all shared. E.g. EU-DieTodeskrallen and EU-DerAbyssischeRat should share the same realm data.

Please provide any additional information below. One could use GetAutoCompleteRealms to map to a single realm in a realm group.

ckaotik   added the tags
  Nov 14, 2014
Nov 14, 2014

Instead of local realmKey = GetRealmName() one could use a construct such as this one:

local realms = GetAutoCompleteRealms()
if realms then table.sort(realms) end
local realmKey = realms and realms[1] or select(2, UnitFullName('player'))

Note: This uses the shortened realm names that Blizzard uses in most cases, i.e. "DieTodeskrallen" instead of "Die Todeskrallen" which would probably invalidate existing databases... But of course, there are other options :)

Nov 14, 2014

Existing data is invalidated anyway with any change, no matter what, which is why I'm somewhat reluctant to do this.

Nov 14, 2014

Then maybe add an alternative scope, e.g. "realms", "realmgroup" or "connectedrealms"? That way the authors would still have full power over their data representation.

Edited Nov 15, 2014

To post a comment, please login or register a new account.