It's this?
prontera,150,150,5/*Tab*/script/*Tab*/normal/*Tab*/50,{
function exit;
exit "msg";
}
function/*Tab*/script/*Tab*/exit/*Tab*/{
mes getarg( 0);
return close;
}
To use a function without use a callfunc you, you just have to use function name_of_the_function; in the beggining of the script.