Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-05-11, 01:31 PM   #1
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 72
some mentoring (lua noob)

Hi, so im looking to make use of

GetPrimaryTalentTree(false,false)

it will output 1 2 or 3.

once i get the output from it i have something to use based off it.

if cfg.playername == "Windblossom" and cfg.playerclass == "DRUID" and cfg.talentree == "3" then
cfg.animhealth = 0
end


cfg.talentree doesnt exist yet, its just a placeholder, where do i make GetPrimaryTalentTree(false,false) to run to give the cfg.talentree variable its output?.

First off i just want it to load when you log in or enter world since thats what everything else does atm so that seems most doable. And later if i learn anything from this get it to recheck changed talent trees using another api thingy.

this is from charspecific.lua from rothui.

if you think i should read up on something specific please tell me. I have a very basic understanding atm. Thanks.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » some mentoring (lua noob)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off