two commands one is:
/gone
other is:
/here
enjoy
alias gone {
set %away 1
/ame 9Has gone afk Reason: $1-
/away $1-
}
alias here {
set %away 2
/ame 9Is Back left: $duration($awaytime) Reason: $awaymsg
/away
}
on *:TEXT:*:#:{ if (%away = 1) && ($me isin $1-) {
.msg # 9is currently away Reason: $awaymsg Time: $duration($awaytime)
}
}
Ok, thanks for the suggestion, gooshie. I know the $me can be placed in the matching range. In fact, I was actually suggesting that in a comment I posted. But I was just trying to refer to the original script without making a drastic suggestion, as close as to what the author's intended. As to the set -z and dec -z, I don't see the paramount point in substituting for another.
Jethro_
Also, you can use $away identifier to tell if I'm away or not. No variables required. Edit- actually the $away isn't needed at all.
The $away is needed. Also no need for dec -z just set -z
Also can place $me in the match text event.
Also i believe he wanted to action to channel
on *:TEXT:$(* $+ $me $+ *):#: {
if ($away) && (!%floodnot) {
set -z %floodnot 9
.describe # is currently away Reason: $awaymsg Time: $duration($awaytime)
}
}
You should add an Antispammer on that text event. Else people can flood you off quite easily
alias gone {
ame 9Has gone afk Reason: $1-
away $1-
}
alias here {
ame 9Is Back left: $duration($awaytime) Reason: $awaymsg
away
}
on *:TEXT:*:#: {
if ($me isin $1-) && (!%floodpro) {
set %floodpro 8 | dec -z %floodpro
.msg # 9is currently away Reason: $awaymsg Time: $duration($awaytime)
}
}
This will set a 8 second time frame and message the away info once until 8 seconds have expired. The longer you set the second, the stricter it becomes. Also, you can use $away identifier to tell if I'm away or not. No variables required. Edit- actually the $away isn't needed at all.