vrathak 0 Report post Posted December 7, 2017 Was this macro not working in Vanilla and only working in TBC and up? /run if not THO then local f,t,c=CreateFrame("Frame","THO"),1,0 f:SetScript("OnUpdate", function(_, e) c=c+e if c>3 then c=0 SetTracking(t) if t==1 then t=2 else t=1 end end end) THO:Hide() end/run if THO:IsVisible() then THO:Hide() else THO:Show() end Im getting nil value on arithmetic when trying to run it on this server 0 Share this post Link to post Share on other sites
Fulzamoth 5 Report post Posted December 10, 2017 You're using the TBC+ version of the OnUpdate function. In Vanilla, OnUpdate is passed just one argument, the elapsed time as arg1. Try: /run if not THO then local f,t,c=CreateFrame("Frame","THO"),1,0 f:SetScript("OnUpdate", function() c=c+arg1 if c>3 then c=0 SetTracking(t) if t==1 then t=2 else t=1 end end end) THO:Hide() end /run if THO:IsVisible() then THO:Hide() else THO:Show() end 0 Share this post Link to post Share on other sites