Jump to content
Christmas sale! Use coupon XMAS24 for 40% off ×

Useful Macro (Learn all spells from trainer)


lolguy2

Recommended Posts

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 

Link to comment
Share on other sites

/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.

Link to comment
Share on other sites

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