Jump to content

Away script something like !away and !brb


Convirion

Recommended Posts

Posted

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/

Posted

as mirc scripts go, there isnt anything that new floating around these days so all ©'s are usually irrelevant

Kevuwk

Any comments made are purely my own and do not represent the interests of the MTA Team

  • Recently Browsing   0 members

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