Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
(Describe behavior as of 3.0.8 (likely prior patches as well))
KethoBot (talk | contribs)
m (Sync description)
Tag: WoW API docs
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
Determine whether last opened trainer window offered trade skill (profession) abilities.
+
Returns true if the training window is used for a profession trainer.
   
isTradeskillTrainer = IsTradeskillTrainer();
+
isTradeskillTrainer = IsTradeskillTrainer()
   
== Returns ==
+
==Returns==
:1 or True if the last open trainer skill list was for a tradeskill (as opposed to class skills).
+
:1 or True if the last open trainer skill list was for a trade skill (as opposed to class skills).
   
== Example ==
+
==Example==
 
if (IsTradeskillTrainer()) then
 
if (IsTradeskillTrainer()) then
 
message('This is a tradeskill trainer');
 
message('This is a tradeskill trainer');

Latest revision as of 04:21, 13 August 2023

Returns true if the training window is used for a profession trainer.

isTradeskillTrainer = IsTradeskillTrainer()

Returns

1 or True if the last open trainer skill list was for a trade skill (as opposed to class skills).

Example

if (IsTradeskillTrainer()) then
 message('This is a tradeskill trainer');		
end