Documentation of the native server API available on the client side. Consider using the helper functions in SynastriaCoreLib that takes care of a lot of error checking and such for you.
Name | Value |
---|---|
PERK_ACQUIRED | 1 |
PERK_LIMIT | 2 |
PERK_ACTIVE | 3 |
PERK_PROG | 4 |
PERK_TASKASSIGN1 | 6 |
PERK_TASKASSIGN2 | 7 |
PERK_TASKPARTY | 9 |
PERK_OPTIONS | 10 |
ATTUNE_HAS | 11 |
MYTHIC_SELECT | 12 |
RESOURCE_BANK | 13 |
RESOURCE_LAST | 14 |
ATTUNE_RANDOMPROP | 15 |
Name | Value |
---|---|
MAX_ITEMID | (current max itemId in the game) |
Opens the attunement window. Note that the stats are not refreshed when the window is opened this way! To refresh the attunement stats, you have to use the spell
Opens the Perk manager window
Opens the Resource Bank window
Important! Before defining any event handler function, you should store any existing reference and make sure you call it first thing in your function. Otherwise, other addons depending on said event will break!
Called at the start of sending data to the client
Called after the transaction is finished and all data is available
Called after initializing the custom data the first time, for example after login
Used to contain information about unattunable items
Contains key/val pairs for attunable stats for an item. Note! Only populated after the attunement summary window has been opened, and is probably not intended for use.
Contains key/val pairs for stats gained for attunable weapons. Not always populated, and is probably not intended for use.
Contains all affixes, and a table with the stats they would grant
Check if the item can be attuned by the current character, taking level, class, and armor proficiency into account
Check if the item can be attuned at all, ignoring class, level, etc.
Get a list of tables (key/val pairs) when attuning weapons
Returns the name of a stat, given a statId
Returns the attunment progress for an itemId (optional affixId, optional titanforged) 1 = Titanforged, 2 = Warforged, 3 = Lightforged
Returns the attuned forge level for an itemid 1 = Titanforged, 2 = Warforged, 3 = Lightforged
Returns the affix name
GetItemAffixMask(itemId) -> possibleMask1 (uint32), possibleMask2 (uint32), attunedMask1 (uint32), attunedMask2 (uint32), activeIndex (int)
(Still unconfirmed. Most are probably not intended for use)
Do not use: Does nothing towards the server