AFK Script

By SWNight on Oct 25, 2007

When you type '/afk' it comes up with a box saying "Reason for being AFK" so you enter your reason, and it messages all channels that your on, " is AFK. Reason: " Anyone that says your nick when your AFK it will say "Hello I am currently away. I will get back to you as soon as possible. Reason: " It will also work when they PM you. To be back type '/back', it will also identify you with NickServ.
There are 2 parts to this script: Some Aliases and some Remote.

##### Remote ####
on *:TEXT:<Nick>:#: {
  if ($me == <AFKNick>) {
    notice $nick 9H3ello4 $nick $+ 3. 9I3 9A3m 9C3urrently 9A3way. 9I 9W3ill 9R3espond 9T3o 9Y3ou 9A3s 9S3oon 9A3s 9P3ossible. 9R3eason:4 %afk
  }
}
on *:TEXT:*:?: {
  if ($me == <AFKNick>) {
    msg $nick 9H3ello4 $nick $+ 3. 9I3 9A3m 9C3urrently 9A3way. 9I 9W3ill 9R3espond 9T3o 9Y3ou 9A3s 9S3oon 9A3s 9P3ossible. 9R3eason:4 %afk
  }
}

#### Aliases ####
/afk {
  /nick <AFKNick>
  /set -n %afk $?="Enter reason for being AFK"
  /amsg 11$nick is AFK. Reason:4 %afk $+ 11.
}
/back {
  /nick <Nick>
  /amsg 11$nick is back from:4 %afk $+ 11.
  /msg NickServ IDENTIFY <Password>
}

Comments

Sign in to comment.
Roennev   -  Apr 05, 2013

on :TEXT::?: {
if ($me == %nick $+ |afk) {
msg $nick 9H3ello4 %nick $+ 3. 9I3 9A3m 9C3urrently 9A3way. 9I 9W3ill 9R3espond 9T3o 9Y3ou 9A3s 9S3oon 9A3s 9P3ossible. 9R3eason:4 %afk
}
}

Aliases

alias afk {
set %nick $me
set %away on
/nick %nick $+ |afk
/set -n %afk $?="Enter reason for being AFK"
/away %afk
/amsg 11 $+ %nick is AFK. Reason:4 %afk $+ 11.
}
alias back {
set %away off
/nick %nick
/away
/amsg 11 $+ %nick is back from:4 %afk $+ 11.
}

menu channel,query,status,nicklist,menubar {

Away:
.Away: /afk
.Back: /back

}

Roennev  -  Apr 05, 2013

How you make it into Code format ?

Sign in to comment

SWNight   -  Oct 28, 2007

Thanks for the comments, and GenxYuri it works fine for me.. It\'s obviously something you done. I\'ll update it soon.

 Respond  
FRISH   -  Oct 28, 2007

Hi SWNight and yuri ^_^. Anyway couple of pointers:
1) you dont need all of the /\'s in the alias part.
2) If you want to make the notice and msg silent (so you dont see it) use .notice and .msg ;)
3) Use \"unset %afk\" under the /back alias
4) Once you done 3) you can change

if ($me == <AFKNick>) {

to

  if (%afk) {

(this means if there is a variable %afk then it will do the code)

Another couple of things ya can do is:
use set -ne %afk so that it unsets the variable when you close mirc if you dont go back to you\'r normal name.

Also i would use \"tnick \" instead of \"nick \" so that if you quit mirc with your afk nick, you wont come back on with your afk nick, just a thought :).

Hope this helps ;)

 Respond  
Genxyuri   -  Oct 28, 2007

ACTUALLY Just use $me

 Respond  
Genxyuri   -  Oct 28, 2007

But then it would be Crappy........

 Respond  
Genxyuri   -  Oct 28, 2007

4$nick $+ 3. 9I3 9A3m 9C3urrently 9A3way. 9I 9W3ill 9R3espond 9T3o 9Y3ou 9A3s 9S3oon 9A3s 9P3ossible. 9R3eason:4 %afk
}
}
should be
4 $nick $+ 3. 9I3 9A3m 9C3urrently 9A3way. 9I 9W3ill 9R3espond 9T3o 9Y3ou 9A3s 9S3oon 9A3s 9P3ossible. 9R3eason:4 %afk
}
}

 Respond  
Genxyuri   -  Oct 28, 2007

fuck lol, But anyways /amsg 11$nick is AFK. Reason:4 %afk $+ 11.
}
should be /amsg 11 $nick is AFK. Reason:4 %afk $+ 11.
}

 Respond  
Genxyuri   -  Oct 28, 2007

[07:00] * GenxYuri is now known as GenxYuri|AFK
[07:00] <GenxYuri|AFK> $nick is AFK. Reason: test.
[07:00] <GenxYuri|AFK> lol...
I typed /afk ( just wanted to test it out and it put $nick maybe you added the color to close?

 Respond  
Genxyuri   -  Oct 28, 2007

[07:00] * GenxYuri is now known as GenxYuri|AFK
[07:00] <GenxYuri|AFK> $nick is AFK. Reason: test.
[07:00] <GenxYuri|AFK> lol...
I typed /afk ( just wanted to test it out and it put $nick maybe you did the color to close?

 Respond  
Freckle   -  Oct 25, 2007

already know wittebolx.com ;)

 Respond  
SWNight   -  Oct 25, 2007

Could be.

 Respond  
Freckle   -  Oct 25, 2007

SWNight sounds familiar, Renegade maybe?

 Respond  
SWNight   -  Oct 25, 2007

This is a basic script. Replace with your nick with your AFK Nick and with your password.
Comments please :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.