Jump to content

Recommended Posts

Posted

Copy and paste this script in the chat bar

 

 

/run LoadAddOn"Blizzard_TrainerUI" f=ClassTrainerTrainButton f.e = 0 if f:GetScript"OnUpdate" then f:SetScript("OnUpdate", nil)else f:SetScript("OnUpdate", function(f,e) f.e=f.e+e if f.e>.01 then f.e=0 f:Click() end end)end

 

You learn all your classes spells without having to click a button 

Posted

This scripting wouldn't be harmful. It is the correct syntax.

 

Basically the function checks with an "if, then" statement, which will click the "Train Button" as long as there is something to train (Or if it is present and clickable).

Posted

/run

LoadAddOn"Blizzard_TrainerUI"

f=ClassTrainerTrainButton

f.e = 0

if

f:GetScript"OnUpdate"

then

f:SetScript("OnUpdate", nil)

else

f:SetScript("OnUpdate", function(f,e)

f.e=f.e+e

if

f.e>.01

then

f.e=0 f:Click()

end

end

)end

 

 

This is the basic scripting. I separated the If,Then,Else and the If,Then statements so you can understand them...

This is know as a "nested IF,THEN, ELSE" in a scripting language.

  • 2 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...