GetTrainerServiceDescription

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the description of a specific trainer service.

serviceDescription = GetTrainerServiceDescription(index)

Arguments

index
number - The index of the specific trainer service.

Returns

serviceDescription
string - The description of a specific trainer service. Not readily available on function call, see SpellMixin:ContinueOnSpellLoad.

Example

Prints the description of the trainer service with index 3, in the chatwindow

print(GetTrainerServiceDescription(3))
> "Permanently enchant a weapon to often deal 20 Nature damage to an enemy damaged by your spells or struck by your melee attacks. Cannot be applied to items higher than level 136."