WoW:API GetPetTrainingPoints: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{wowapi}}, summary, {{Stub/API}})
m (Move page script moved page API GetPetTrainingPoints to WoW:API GetPetTrainingPoints without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{removedapi|3.0|Pets now have talents rather than trainable skills.}}
{{Stub/API}}
{{wowapi}}
Returns information about the pet's training.
Gets the training point information about the current pet.
  pointsUsed, pointsTotal = GetPetTrainingPoints();
  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

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