Simple away script... Paste in remotes :)
Using:
/away
/back
alias away {
set %timer $time
set %reason $1-
/ame 0is away now... Reason:10 %reason
set %away.time $ctime
set %gone on
set %nick $me
/nick $me $+ `afk
}
alias back {
if (%gone == $NULL) /echo $active Your not away
else /ame 0is back from10 %reason $+ , 0I was away for10 $duration($calc($ctime - %away.time)) $+ 0.
unset %away.time
unset %reason
unset %gone
/nick %nick
}
on *:OPEN:*:*: {
if (%gone == on) { msg $nick Hey $nick $+ , atm im not here. Ill be back later to check your message :) | halt }
else { halt }
}
on 1:TEXT:*:#: {
if (%flood == on) {
halt
}
if ($me isin $1-) && (%gone == on) {
describe $chan 0is away:10 %reason ... 0Went away @ %timer (GMT+1) 10Awaytime: $duration($calc($ctime - %away.time)) $+ 0.
set %flood on
timer 1 120 unset %flood
halt }
}
on 1:ACTION:*:#: {
if (%flood == on) {
halt
}
if ($me isin $1-) && (%gone == on) {
describe $chan 0is away:10 %reason ... 0Went away @ %timer (GMT+1) 10Awaytime: $duration($calc($ctime - %away.time)) $+ 0.
set %flood on
timer 1 120 unset %flood
halt }
}
You have this set to say ur away message to the channel. however their are some idiots who would say your nick over and over, and your script would keep repeating the same away message and you will be kicked by a bot. So i was thinking you could add .notice $nick to the script, so it notices them, and also wouldn't cause disruption to the room.
Interestin way to code.no need for the else statements an should use /away and the $away identifier as well an please add flood protection and i know i say that alot to everyone but ima freak about protecting lol ask eugene;p.Seriously tho it should be protected or ppl can just flood you off your network.And maybe add some simple loggin as well for things tat are said with your nick trigger.`-.-´