promotional bannermobile promotional banner

LibPlayerCache

Abandoned
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")

The LibPlayerCache Team

profile avatar
  • 5
    Projects
  • 30.6K
    Downloads

More from _ForgeUser2177662View all