WoW:API GetPetTrainingPoints: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetPetTrainingPoints to WoW:API GetPetTrainingPoints without leaving a redirect)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Returns two pieces of information, number of training points used so far, and the total number of points, free and used, the pet hadIn that order.
{{removedapi|3.0|Pets now have talents rather than trainable skills.}}
{{wowapi}}
Gets the training point information about the current pet.
  local totalPoints, pointsSpent = GetPetTrainingPoints();


----
== Returns ==
{{WoW API}}
;totalPoints : Number - The total of points spent and points available.
;pointsSpent : Number - The number of points spent.

Latest revision as of 04:46, 15 August 2023

WoW API < GetPetTrainingPoints

Gets the training point information about the current pet.

local totalPoints, pointsSpent = GetPetTrainingPoints();

Returns

totalPoints
Number - The total of points spent and points available.
pointsSpent
Number - The number of points spent.