User:Sedouri/Sandbox
From WoWWiki
Achievement Functions
These functions are available in Patch 3.0.2 and newer.
- AddTrackedAchievement(achievementId) - Add an achievement to tracking.
- CanShowAchievementUI() - Returns whether the AchievementUI can be displayed.
- ClearAchievementComparisonUnit() - Remove the unit being compared.
- GetAchievementCategory(achievementID) - Return the category number the requested achievement belongs to.
- GetAchievementComparisonInfo(achievementID, comparisonNum) - Return the status of the achievement for the comparison player.
- GetAchievementCriteriaInfo(achievementID, criteriaNum) - Return information about the requested criteria.
- GetAchievementInfo(achievementID) or (category, offset) - Return information about the requested achievement.
- GetAchievementInfoFromCriteria(id) - Return information about the requested achievement.
- GetAchievementLink(achievementID) - Returns a achievementLink for the specified achievement.
- GetAchievementNumCriteria(achievementID) - Return the number of criteria the requested achievement has.
- GetAchievementNumRewards(achievementID) - Return the number of rewards the requested achievement has.
- GetCategoryInfo(category) - Return information about the requested category.
- GetCategoryList() - Returns the list of achievement categories.
- GetCategoryNumAchievements(category) - Return the number of achievements, and number completed for the specific category.
- GetComparisonAchievementPoints() - Return the total number of achievement points the comparison unit has earned.
- GetComparisonCategoryNumAchievements(achievementID)
- GetComparisonStatistic(achievementID) - Return the value of the requested statistic for the comparison player.
- GetLatestCompletedAchievements() - Return the ID's of the last 5 completed achievements.
- GetLatestCompletedComparisonAchievements()
- GetLatestUpdatedComparisonStats()
- GetLatestUpdatedStats() - Return the ID's of the last 5 updated statistics.
- GetNextAchievement(achievementID)
- GetNumComparisonCompletedAchievements()
- GetNumCompletedAchievements() - Return the total number of achievements, and number completed.
- GetPreviousAchievement(achievementID) - Return previous related achievements.
- GetStatistic(achievementID) - Return the value of the requested statistic.
- GetStatisticsCategoryList() - Returns the list of statistic categories.
- GetTotalAchievementPoints() - Return the total number of achievement points earned.
- GetTrackedAchievements() - Return the AchievementID of the currently tracked achievements.
- GetNumTrackedAchievements() - Return the total number of the currently tracked achievements.
- RemoveTrackedAchievement(achievementID) - Stops an achievement from being tracked.
- SetAchievementComparisonUnit(unitId) - Set the unit to be compared to.
Removed sometime before Patch 3.0.8 - GetAchievementComparisonUnitInfo()
- GetCriteriaComparisonInfo(achievementID, criteriaNum, comparisonIndex) - Return information about the requested criteria for the comparison unit.
Action Functions
These functions operate on action buttons and action bars. See Activity Functions for general player actions.
- PROTECTED UI ActionButtonDown(id) - Press the specified action button. (Protected in Patch 2.0)
- PROTECTED UI ActionButtonUp(id) - Release the specified action button. (Protected in Patch 2.0)
- ActionHasRange(slot) - Returns 1 if the specified action is a range restriction, nil otherwise.
- UI BonusActionButtonDown - Trigger the specified bonus(pet or minion) action button.
- UI BonusActionButtonUp - Release the specified bonus(pet or minion) action button.
- PROTECTED CameraOrSelectOrMoveStart() - Begin "Left click" in the 3D world. (Protected in Patch 1.10)
- PROTECTED CameraOrSelectOrMoveStop([stickyFlag]) - End "Left click" in the 3D world. (Protected in Patch 1.10)
- ChangeActionBarPage() - Changes the current action bar page.
- GetActionBarPage() - Return the current action bar page. CURRENT_ACTIONBAR_PAGE is obsolete.
- GetActionBarToggles() - Return the toggles for each action bar.
- GetActionCooldown(slot) - This returns the cooldown values of the specified action..
- GetActionCount(slot) - Get the count (bandage/potion/etc) for an action, returns 0 if none or not applicable.
- GetActionInfo(slot) - Returns type, id, subtype.
- GetActionText(slot) - Get the text label (macros, etc) for an action, returns nil if none.
- GetActionTexture(slot) - Gets the texture path for the specified action.
- GetBonusBarOffset() - Determine which page of bonus actions to show.
- GetMouseButtonClicked() - Returns the name of the button that triggered a mouse down/up/click/doubleclick event. (New in Patch 2.0.3)
- GetPossessInfo(index) - Returns texture, name, enabled.
- HasAction(slot) - Returns 1 if the player has an action in the specified slot, nil otherwise.
- IsActionInRange(slot[, unit]) - Test if an action is in range (1=yes, 0=no, nil=not applicable).
- IsAttackAction(slot) - Returns 1 if an action is an 'attack' action (flashes during combat), nil otherwise.
- IsAutoRepeatAction(slot) - Returns 1 if an action is auto-repeating, nil otherwise.
- IsCurrentAction(slot) - Returns 1 if an action is the one currently underway, nil otherwise.
- IsConsumableAction(slot) - Returns 1 if an action is consumable (i.e. has a count), nil otherwise.
- IsEquippedAction(slot) - Returns 1 if an action is equipped (i.e. connected to an item that must be equipped), nil otherwise.
- IsUsableAction(slot) - Returns 1 if an action can be used at present, nil otherwise.
- PetHasActionBar() - Determine if player has a pet with an action bar.
- PickupAction(slot) - Picks up the action from the specified action bar slot, placing it on the cursor.
- PickupPetAction(slot) - Picks up the action from the specified pet action bar slot, placing it on the cursor.
- PlaceAction(slot) - Drops an action from the cursor into the specified action bar slot.
- SetActionBarToggles(show1, show2, show3, show4[, alwaysShow]) - Set show toggle for each action bar. ('alwaysShow' new in Patch 1.12)
- StopAttack() - Turns off auto-attack, if currently active. Has no effect is the player does not currently have auto-attack active.
- PROTECTED TurnOrActionStart() - Begin "Right Click" in the 3D world. (Protected in Patch 1.10)
- PROTECTED TurnOrActionStop() - End "Right Click" in the 3D world. (Protected in Patch 1.10)
- PROTECTED UseAction(slot[, checkCursor[, onSelf]]) - This instructs the interface to use the action associated with the specified ID, optionally on the player (regardless of target). (Protected in Patch 2.0)
