Scripting second base

Start with this: http://forum.mikrotik.com/t/getting-the-most-out-of-this-forum/40983/1