Posts

Showing posts from March, 2022

Warmane: scripts sent by Sentinel

During login and while you play, Sentinel sends some Lua code to your client using the addon message channel. It's not clear to me how this code is executed once it arrives to the client or why is it being sent using addon messages. Some of these scripts add UI features while others try to catch cheaters.  I am publishing this as a technical curiosity more than anything else. Excuse the format, I know how much blogspot sucks for posting snippets. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if( OriginalClearTarget ==nil)then     OriginalClearTarget=ClearTarget     ClearTarget=function()         if(issecure())then             OriginalClearTarget()         else             RegisteredFrames={GetFramesRegisteredForEvent("MACRO_ACTION_FORBIDDEN")}             RegisteredFramesCount=getn(RegisteredFrames)       ...