40 lines
851 B
Plaintext
40 lines
851 B
Plaintext
|
|
function main(... params)
|
|
{
|
|
if !${Script[Relay](exists)}
|
|
{
|
|
RunScript "${LavishScript.HomeDirectory}/Scripts/mr/common/Relay"
|
|
}
|
|
variable string command = ${params[1].Lower}
|
|
if ${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["relay"]}
|
|
{
|
|
|
|
}
|
|
elseif ${command.Equal["!c"]}
|
|
{
|
|
variable jsonvalue rest = []
|
|
rest:Erase[1]
|
|
if !${MRNav(exists)}
|
|
{
|
|
RunScript "${LavishScript.HomeDirectory}/Scripts/mr/common/Navigation/Movement"
|
|
}
|
|
run mr/commands/ProcessCommand ${rest}
|
|
}
|
|
elseif ${command.Equal["test"]}
|
|
{
|
|
run mr/common/Navigation/test
|
|
}
|
|
} |