S6Hook is a extension for Settlers 6 which can be loaded at runtime through the Lua script embedded in a usermap.
Include the code from output/S6Hook.lua in your map and execute InstallS6Hook(). The return value indicates whether S6Hook was successfully loaded. All functions reside in a global table call S6Hook.
Simply execute the build.bat to build the source code into a ready-to-use Lua script.
Read more about the implementation here.