What's Your Covenant

Addons
1,948,926 Downloads Last Updated: Aug 17, 2022 Game Version: 9.1.5  

Summary

This addon will specify a player's covenant in their tooltip.

Mouseover Tooltip

NOTICE: this addon uses a similar method as some others (like Raider.IO) which requires the database of players to be regularly updated as there's no in-game method of reliably obtaining a player's covenant. If people show enough interest in the addon then I may try to find additional ways of expanding my existing player list.

 

API

If you're wanting to have your own addon/code directly interact with WhatsYourCovenant, the following functions are available:

GetCovenantId

Arguments
  • realm - the realm name of the player (e.g. "Twisting Nether")
    • player - the name of the player (e.g. "Deathbetray")
Returns
  • id - the covenant ID of the given player
  • timestamp - the UNIX time (in seconds) the player's covenant was last acquired (personal database uses GetServerTime())
  • fromPersonalDb - true if the data was found in the personal database (rather than the data packaged with the addon)

All return values are nil if the player isn't found

Usage
local id, timestamp, fromPersonalDb = _G.WhatsYourCovenant.GetCovenantId("Twisting Nether", "Deathbetray")

 

GetCovenantName

Arguments
  • realm - the realm name of the player (e.g. "Twisting Nether")
  • player - the name of the player (e.g. "Deathbetray")
Returns
  • name - the name of the player's covenant (e.g. "Necrolord", "Night Fae", etc.) as retrieved by C_Covenants.GetCovenantData(). I believe the name should be localised.
  • colour - the hex colour the addon uses to colourise the covenant name (this return nil if a player has the colourisation disabled).

All return values are nil if the player isn't found

Usage
local covenantName, covenantColour = _G.WhatsYourCovenant.GetCovenantName("Twisting Nether", "Deathbetray")

 

 

Comments

  • To post a comment, please or register a new account.
Posts Quoted: