Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(20 Kb)
Download
Updated: 10-06-14 12:45 PM
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Siege of Orgrimmar (5.4)
Updated:10-06-14 12:45 PM
Created:07-27-14 08:55 PM
Downloads:87
Favorites:1
MD5:
6.0.2
LibRealmInfo
Version: 7
by: Phanx [More]
Library to provide information about realms.

Note that if you only need to know which realms are connected to the player's current realm, you can just use the GetAutoCompleteRealms() API function instead of this library. If you only need to know which region the player is currently logged into, use the GetCurrentRegion() API function.

Use GitHub for issues and patches.

Usage

lib:GetRealmInfo(realmID)
=> name, apiName, rules, locale, battlegroup, region, timezone, connected, latinName

lib:GetRealmInfoByName(name, region)
=> realmID, name, apiName, rules, locale, battlegroup, region, timezone, connected, latinName

lib:GetRealmInfoByUnit(unit)
=> realmID, name, apiName, rules, locale, battlegroup, region, timezone, connected, latinName

See the API documentation on GitHub for more details!

To Do

Data for Korean realms?
If you have an active Korean account, please see this forum post. If you don't know how to run the script provided there, you can just post the whole HTML source of the relevant page (right-click > view source > save, then attach the file to your post).
Archived Files (7)
File Name
Version
Size
Author
Date
6
20kB
Phanx
09-25-14 03:49 AM
4
17kB
Phanx
08-04-14 06:23 AM
4
17kB
Phanx
08-03-14 01:14 PM
3
15kB
Phanx
07-29-14 10:05 AM
2
10kB
Phanx
07-29-14 01:21 AM
1
16kB
Phanx
07-27-14 08:56 PM
0B
Phanx
07-27-14 08:55 PM


Post A Reply Comment Options
Unread 07-27-14, 09:35 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4382
File comments: 2031
Uploads: 40
Please use GitHub for bug reports, feature requests, and patches.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Last edited by Phanx : 08-02-14 at 11:32 PM.
Phanx is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: