LibPlayerCache

Description
This is NOT an AddOn, it is meant for developers only
This library keeps a database of all people that you mouse-over and people that come up when you do a party search.

This information is kept in a table that is saved to your savedvariables file.
The information held inside the variable is as such: player name, main level/class, secondary level/class, title, and guild.

The guild will be nil 99% of the time due to it being impossible to get someones guild name through the API.

Usage
local mainclass, mainlvl, subclass, sublvl, title, guild = LibPlayerCache.GetChar(player_name);

Installation

  • Include LibPlayerCache.lua, LibPlayerCache.xml, and LibStub.lua with your addon's files
  • Add LibStub.lua followed by LibPlayerCache.xml and LibPlayerCache.lua to your .toc, before any files that use LibPlayerCache
  • Place this line at the top any files that use LibPlayerCache: local LibPlayerCache = LibStub("LibPlayerCache-1.0")

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
11 Apr 2009
Category
Last update
13 May 2009
Development stage
Release
Language
  • enUS
License
MIT License
Curse link
LibPlayerCache
Recent files
  • R: v1.0.2 for 1825 on 13 May 2009
  • A: r5 for 1825 on 13 May 2009
  • A: r4 for 1825 on 14 Apr 2009
  • R: v1.0 for 1825 on 11 Apr 2009
  • A: r2 for 1825 on 11 Apr 2009

Authors