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 API GetPetTrainingPoints without leaving a redirect)
 
(5 intermediate revisions by 4 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 had.  In 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 ==
;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[edit]

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