Top

A...F...K..!


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  4.6 (of 5 scores)
Date Added  Oct 21, 2005
Last Updated  Jun 15, 2007
Tags  afk  away 

Introduction

Pretty Simple, and the colour's arent nasty, anymore! (It was Purple and Black before. x.x)
Type ' /away ' and a box pops up, type in your reason, then another box pops up, type in your away nick. When you come back from away, type ' /back '
I have fixed it, and so far, I found nothing wrong. It's small, but it works.

Sorry about the highlighting problem. The window where it shows who highlighted you is broken and needs to be taken out.


BEST USED WITH MS SAN SERIF 12 AND MONOCHROME SCREEN

Grab the Code

Alias Away {
  if (%away == $null) { 
    Away $1-
    set %reason $$?="What's your reason For being AFK?"
    set %time $$?="How long are you expected to be gone?"
    set %highlights $$?="Are your highlights on or off?"
    amsg 0,1Away: 4,1«†» «†» «†»0,1 %reason $+ ... Highlights:0,1 %highlights $+ ... Expected Away Time:0,1 %time 4,1«†» «†» «†»  
    set %duration 0
    inc -c %duration
    set %away
    window -w @Away
    echo @away These are your highlights...
    set %nick $me
    nick $$?="You're away, so what is your new name?"
    halt 
  }
}
Alias Back {
  if (%back == $null) {
    unset %away
    amsg 4,1Back: 0,1«†» «†» «†»4,1 %reason 0,1«†» «†» «†» I was away for: $duration(%duration) $+ ... Expected Away Time:4 %time 0,1«†» «†» «†»
    unset %reason
    unset %duration
    nick %nick
    unset %back
    unset %people
    unset %highlights
    unset %time
    halt 
  }
}
 

Comments

  (21)  RSS
xDaeMoN
Comments: 695
 
mIRC Snippet:  A...F...K..!
Posted on Oct 21, 2005 3:35 pm
No need for variables for the away status, time & message as you can use the $away, $awaytime & $awaymsg identifiers.
KuTsuM
Comments: 141
 
mIRC Snippet:  A...F...K..!
Posted on Oct 21, 2005 3:40 pm
You can clean up your script by getting rid of the /'s and when checking to see if a variable has or doesn't have a value use if (%var) or if (!%var)
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Oct 21, 2005 3:44 pm
Yeh, I guess so, Thanks :)
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Nov 8, 2005 8:37 pm
Cleaned XD
Yoinx
Comments: 424
 
mIRC Snippet:  A...F...K..!
Posted on Nov 8, 2005 8:50 pm
just a suggestion. since /away is a builtin command. why not name your away something custom?
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Nov 9, 2005 5:51 pm
Nah..
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Nov 9, 2005 5:52 pm
-_-; Ok x) Just cause i'm bored
Yoinx
Comments: 424
 
mIRC Snippet:  A...F...K..!
Posted on Nov 9, 2005 5:55 pm
if ($me == %away)

set %away

those dont jive.
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Nov 9, 2005 6:00 pm
back to editing, then
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Nov 9, 2005 6:01 pm
It should work now.
WDragon
Comments: 8
 
mIRC Snippet:  A...F...K..!
Posted on Apr 12, 2006 12:33 am
i cant get it to post to the away window plus it dosent gave a message when people say the away nick
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Apr 29, 2006 9:52 am
I'm baaaccck.
My browser wouldn't allow me to get on Hawkee, but now.. Thanks to Firefox.. I'm back!
sean
Comments: 109
 
mIRC Snippet:  A...F...K..!
Posted on Apr 29, 2006 10:00 am
welcome back Sasuke, this snippet could be greatly approved apon :T
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Apr 29, 2006 10:02 am
Oh, tell me!
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on Apr 29, 2006 12:41 pm
Mm. Tell me before I start getting Emo.
WDragon
Comments: 8
 
mIRC Snippet:  A...F...K..!
Posted on Apr 29, 2006 11:26 pm
the msg window thing still dont work
Sasuke
Comments: 317
 
mIRC Snippet:  A...F...K..!
Posted on May 2, 2006 2:28 pm
Er..It works for me. Seriously.
ZabuzaMomochi
Comments: 184
 
mIRC Snippet:  A...F...K..!
Posted on Jun 15, 2007 3:47 pm
You could make this a lot better and more efficiant if it were a dialog. Not saying that its not efficiant right now, but i wouldnt want a bunch of windows to pop up and ask me questions just so i could go away. (I would rather type /amsg afk)
ZabuzaMomochi
Comments: 184
 
mIRC Snippet:  A...F...K..!
Posted on Jun 15, 2007 3:56 pm
And also, in the second alias,
Code:

unset %back

It unsets the variable 'back' but i dont even see where it sets it. Unless you are trying to make it
Code:

set %back

And then in the first alias,
Code:

unset %back

Just saying this because i believe you would be able to come back even if you were already back! (And on a side note, you should REALLY change your first aliases name, just so in the back alias, you can put the /away command in it so it will return you from mIRC's away, and also so it doesnt try to run through the /away thing twice, since in the away alias you have it execute the /away command)
mountaindew
Comments: 1,826
 
mIRC Snippet:  A...F...K..!
Posted on Sep 6, 2007 4:04 pm
u can do

Code:

unset %variable %variabletwo %variablethree...
AdrianF
Comments: 53
 
mIRC Snippet:  A...F...K..!
Posted on Nov 4, 2008 9:27 am
didnt even popup

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom