GetAchievementCriteriaInfoByID(achievementID, criteriaID) - Returns information about the requested criteria. GetAchievementCriteriaInfo(achievementID, criteriaIndex) - Returns information about the requested criteria.
GetAchievementComparisonInfo(achievementID, comparisonNum) - Returns status of achievement for comparison player. GetAchievementCategory(achievementID) - Return the category number of the requested achievement. CanShowAchievementUI() - Returns if the AchievementUI can be displayed ClearAchievementComparisonUnit() - Remove the unit being compared. These functions are only available in Patch 3.0 AddTrackedAchievement(achievementId) - Add an achievement to tracking. NoPlayTime() - returns 1 if the player is currently "unhealthy": no XP, loot. PartialPlayTime() - returns 1 if the player is currently "tired": reduced XP, loot. GetBillingTimeRested() - returns the time spent logged in current billing unit. These functions only return meaningful values on Asian realms all three relate to the play time limitation system. run local x=GetAccountExpansionLevel() SendChatMessage(x)Īccount GetAccountExpansionLevel() - Returns registered expansion. should be moved from here to Removed Functions.Ĭalling functions via macro or command line:
DEPRECATED - is planned to no longer be used, and more than likely removed in future version. UI - is implemented in Lua in FrameXML, but was important enough to appear here. HW - may only be called in response to a hardware event, like from OnClick handlers. NOCOMBAT - can only be called from secure code while out of combat. PROTECTED - can only be called from secure code. If you're contributing documentation, please read How to edit API pages.įunction names can be prefixed with the following tags, see API notation and conventions: API types - variable value types, used here as parameters and return values. Discuss any large-scale changes on the discussion page. You can also examine the existing UI code to find examples of how the various functions are used by the default UI. See also the an automatically-generated exhaustive list of all API functions present in the latest live client.įor beginners, WoW AddOn contains a number of very informative sources to help get you started. The list below is incomplete, and kept up to date through user contributions. The World of Warcraft API, or WoW API, is a set of Lua functions and facilities provided by the Blizzard WoW Client, to allow interaction with the World of Warcraft and its user interface. This is the API available during normal game play. This is the main reference page for the WoW UI Lua API available to user Macros and AddOns.