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 "/away [reason]" For "NICK is away. Reason: [reason]" Without the brackets of course.
Type "/return" for your nick to be changed back to normal.
mIRC Snippet:
away system 4.0
Posted on Nov 11, 2006 6:58 pm
Posted on Nov 11, 2006 6:58 pm
My first away system. Made it in less than 3 minutes.
mIRC Snippet:
away system 4.0
Posted on Nov 12, 2006 2:53 pm
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.
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.
mIRC Snippet:
away system 4.0
Posted on Nov 12, 2006 3:20 pm
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".
But the slashes aren't really needed. You can just use "describe".
mIRC Snippet:
away system 4.0
Posted on Nov 13, 2006 3:14 pm
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.
mIRC Snippet:
away system 4.0
Posted on Nov 25, 2006 12:54 pm
Posted on Nov 25, 2006 12:54 pm
look nice and work great thanks
mIRC Snippet:
away system 4.0
Posted on Nov 27, 2006 6:46 am
Posted on Nov 27, 2006 6:46 am
Thanks. I fixed it up for the final.
mIRC Snippet:
away system 4.0
Posted on Aug 14, 2007 9:58 pm
Posted on Aug 14, 2007 9:58 pm
*note dont use /return use something else like /back



