Jump to content

Away script something like !away and !brb


Convirion

Recommended Posts

For everyone that wants a !away or !brb script, i've scripted one so you can put your own reason after it and you can get the status for doing !stats or !status.

This only works with General Use Scripts.

Commands: !setstatus-!setstats

Put this after "on *:SIGNAL:mta.command:"

 elseif ($3 == !setstats) || ($3 == !setstatus) {
if ($4) {
mta.text $1 $mta.nick($1,$2) changed his status to $4-
writeini -n " $+ $scriptdir $+ mode.ini" STATUS $mta.nick($1,$2) $4-
}
else {
if ($readini($scriptdir $+ mode.ini,STATUS,$mta.nick($1,$2)) == normal) {
mta.pm $1 $2 You didn't chose a status, please try again
}
else {
mta.text $1 $mta.nick($1,$2) 's status returns to normal
writeini -n " $+ $scriptdir $+ mode.ini" STATUS $mta.nick($1,$2) normal
}
}

and put this after: "on *:SIGNAL:mta.join:"

writeini -n " $+ $scriptdir $+ mode.ini" STATUS $mta.nick($1,$2) normal

© by http://x-clan.mine.nu/mta/

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...