Top

away system 4.0

Please Register to submit score.
Average Score  2.0
Scores Submitted  1
Date Added  Nov 11, 2006
Last Updated  Mar 22, 2007
Tags  away  duration  reason  system  timer 

Introduction

Type "/leave" for "NICK is away" It will say this message in all the channels you are in.
Type "/away [reason]" For "NICK is away. Reason: [reason]" Without the brackets of course.
Type "/return" for your nick to be changed back to normal.

Grab the Code

Comments

  (8)  RSS
PowerDragon
Comments: 32
 
mIRC Snippet:  away system 4.0
Posted on Nov 11, 2006 6:58 pm
My first away system. Made it in less than 3 minutes.
Yoinx
Comments: 424
 
mIRC Snippet:  away system 4.0
Posted on Nov 12, 2006 2:53 pm
personally.. I'd do it like:

on *:input:#: {
if ($1 == !away) {
tnick $+($me,$chr(124),Away)
describe $chan I am currently away.
}
elseif ($1 == !back) {
tnick $mnick
describe $chan I'm back.
}
elseif ($1 == !afk) {
tnick $chan $+($me,$chr(124),AFK)
describe I'm currently AFK at the moment.
}
}


if you wanted to use it this way.

Reasons:
1. Using tnick instead of nick allows you to reference $mnick to get back to the default nick, whereas nick replaces $mnick. Also, using nick you would still have that nick if you were to disconnect and reconnect etc.
2. Describe $chan is the proper way to do actions to a channel from a script.
3. You dont have all the on inputs that you had as, I believe only the first one ever should have worked.
4. You dont have the bracket mismatches.
Valdran
Comments: 4
 
mIRC Snippet:  away system 4.0
Posted on Nov 12, 2006 3:20 pm
I don't really see a problem.
But the slashes aren't really needed. You can just use "describe".
Seanbox344
Comments: 1
 
mIRC Snippet:  away system 4.0
Posted on Nov 13, 2006 3:14 pm
I know I been seeing you work on it in your chat room. I that this will prove to be useful.
PowerDragon
Comments: 32
 
mIRC Snippet:  away system 4.0
Posted on Nov 13, 2006 3:59 pm
Thanks Sean!
HassanAbbas
Comments: 18
 
mIRC Snippet:  away system 4.0
Posted on Nov 25, 2006 12:54 pm
look nice and work great thanks
PowerDragon
Comments: 32
 
mIRC Snippet:  away system 4.0
Posted on Nov 27, 2006 6:46 am
Thanks. I fixed it up for the final.
PowerDragon
Comments: 32
 
mIRC Snippet:  away system 4.0
Posted on Aug 14, 2007 9:58 pm
*note dont use /return use something else like /back

Please Register or Login to start posting comments.
Bottom