I've come to like the addon Autograts since it helps with making it seem like i'm taking the time to congratulate my guild members when they level. The problem is, the addon was broken after 4.0.1's removal of the "this, arg1, arg2, argX". I've been trying to repair the addon into a working state, however all of the fixes that I know of aren't working. I'm not asking for someone here to rewrite it, but if anyone can glance over and let me know what i'm needing to correct (quite possibly alot) so I can get the addon working again.
autograts.xml
Code:
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="autograts.lua"/>
<Frame name="AGFrame">
<Scripts>
<OnLoad>
AG_OnLoad();
</OnLoad>
<OnEvent>
AG_OnEvent(event);
</OnEvent>
</Scripts>
</Frame>
</Ui>
autograts.lua
The code was too long to put in the post, it's at the link below
Code:
http://pastebin.com/VymEwrqg