hello I have tried this code but this part shows an error
eventframe:SetScript(self,event
if event=="UPDATE_TRADESKILL_RECAST" and GetTradeskillRepeatCount()<=1 and not (TradeSkillFrame and TradeSkillFrame:IsShown()) then
CloseTradeSkill();
end
);
error : ')' expected near 'if'
I just started Lua programming, I tried to read about events and SetScript but didn't found the problem.
I tried ONUPDATE event but some how, some functions like CastSpell and DoTradeSkill does not work
btw i'm writing an Addon for 3.3.5a
I also could not use CastSpellByID, and I replaced it with CastSpell
I tried C_TimerAugment.lua but it did not work either
Last edited by kamamir : 03-30-20 at 06:27 AM.
|