
function main(... params)
{

    variable string command = ${params[1].Lower}

    if ${command.Equal["init"]}
    {
        squelch alias mr run mr
        if !${Script[Relay](exists)}
        {
            RunScript "${LavishScript.HomeDirectory}/Scripts/mr/common/Relay"
        }

        if !${Script[Movement](exists)}
        {
            RunScript "${LavishScript.HomeDirectory}/Scripts/mr/common/Navigation/Movement"
        }
        LGUI2:LoadSkinFile["${LavishScript.HomeDirectory}/Scripts/mr/ui/mr.dark.skin.json"]
        LGUI2:PushSkin["mr.dark"]
    }
    elseif ${command.Equal["osa"]}
    {
        run mr/osa/osa
    }
    elseif ${command.Equal["bot"]}
    {
        run mr/bot/bot
    }
    elseif ${command.Equal["export"]}
    {

        run mr/bot/export_abilities
    }
    elseif ${command.Equal["qw"]}
    {
        run mr/auto_quest/writer
    }
    elseif ${command.Equal["test"]}
    {
        run mr/test/test
    }
}   

