auto away message v2.0
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 1.0 (of 1 scores) |
| Date Added | Aug 17, 2009 |
| Last Updated | Aug 17, 2009 |
| Tags | alias channel message on set text time unset variable |
Introduction
type /here to turn off script
enjoy simple and effective.
mIRC Snippet:
auto away message v2.0
Posted on Aug 17, 2009 3:16 pm
Posted on Aug 17, 2009 3:16 pm
Master-Of-Death, did you test your script's flood protection? By the look of it, you'll still get flooded. The reason being that the %h variable is set every time when your name is called, and your second elseif statement is redundant. If I were you, my approach would be:
| Code: |
| on *:TEXT:*:#:{ if (%h) { halt } elseif ($me isin $1-) && (%away = 1) { inc -u10 %h .msg # 9is currently away Reason: %reason Time: $duration($calc($ctime - %time )) } } |
mIRC Snippet:
auto away message v2.0
Posted on Aug 17, 2009 6:55 pm
Posted on Aug 17, 2009 6:55 pm
| Code: |
| alias gone { if ($right($me,4) != `afk) { tnick $me $+ `afk } ame has gone afk Reason: $$1- away $1- } alias here { if ($away) { if ($right($me,4) == `afk) { tnick $left($me,-4) } ame is back after: $duration($awaytime) Reason: $awaymsg away } } on *:TEXT:*:#:{ if (($me isin $1-) || ($mnick isin $1-)) && ($away) && (!%floodnot) { inc -u9 %floodnot describe # is currently away Reason: $awaymsg Time: $duration($awaytime) } } |
mIRC Snippet:
auto away message v2.0
Posted on Aug 17, 2009 8:02 pm
Posted on Aug 17, 2009 8:02 pm
Nice, gooshie. It literally crossed my mind about the use of /tnick command.
mIRC Snippet:
auto away message v2.0
Posted on Aug 18, 2009 3:18 am
Posted on Aug 18, 2009 3:18 am
what's /tnick ??
mIRC Snippet:
auto away message v2.0
Posted on Aug 18, 2009 3:58 am
Posted on Aug 18, 2009 3:58 am
/tnick changes your nickname to a temporary nickname, without affecting your main or alternate nicknames.
mIRC Snippet:
auto away message v2.0
Posted on Aug 18, 2009 4:03 am
Posted on Aug 18, 2009 4:03 am
ooo ty Jethro_



