Hello.
So basically I have this script in a macro that I have to click everytime I logon. I just want help writing it in an .lua file so it automatically activates on logon. I have tried reading a few guides but could not get it to work.
The script is
- /run C_NamePlate.SetNamePlateFriendlySize(60, 60)
I have made an addon with a .toc and everything but I'm not sure what to write exactly in the .lua file for the code to work properly. I have tried
- C_NamePlate.SetNamePlateFriendlySize(60, 60)
- SetNamePlateFriendlySize(60, 60)
- local EventFrame = CreateFrame("Frame")
EventFrame:RegisterEvent("PLAYER_LOGIN")
EventFrame:SetScript("OnEvent", function(self,event,...)
C_NamePlate.SetNamePlateFriendlySize(60, 60)
end)
But none of them seemed to work for me. I have absolutely zero knowledge in coding and I've tried reading a few guides but with no success. If anyone can help I'd be thankful. Cheers