Simple Away Script

By Snip3KitTy on Aug 12, 2010

Hi, This is a very simple Away Script. I made this In a very short period of time.

Copy and paste into Remotes and Right click in the Channel or on a nick to find the Dropdown menu "AFK list"

And aswell Enjoy it :).

Tested And Working

Updated 4th september 2010 2:50am GMT

Updated 4th september 2010 7:50pm GMT (thank you to napa182 for the flood protection.

Updated 13th september 2010 10:50am GMT New Lines added (Going out, Movies & safari)

-(Snip3Kitty)- - -(Away)- - -(Script)- - -
-                                        -
-                                        -
-                                        -
-                 V1.1                   -
-                                        -
-                                        -
-                                        -  
-(Snip3Kitty)- - -(Away)- - -(Script)- - -

menu Channel,status,nicklist {

  -

  AFK List
  .Normal
  ..Sleep:/amsg 15I'm A.F.K Reason:11 Sleeping 0(15P15A15N15T14H14E14R14) |  /away 11Sleeping
  ..Shops:/amsg 15I'm A.F.K Reason:11 Shopping 0(15P15A15N15T14H14E14R14) |  /away 11Shopping
  ..Smoke:/amsg 15I'm A.F.K Reason:11 Smoking 0(15P15A15N15T14H14E14R14) |  /away 11Smoking
  ..Work:/amsg 15I'm A.F.K Reason:11 Working 0(15P15A15N15T14H1414R14) |  /away 11Working
  ..Shower:/amsg 15I'm A.F.K Reason:11 Shower Time 0(15P15A15N15T14H1414R14) |  /away  11Shower Time
  ..Going Out:/amsg 15I'm A.F.K Reason:11 Going Out 0(15P15A15N15t14H14E14R14) |  /away 11Going Out
  .Fun
  ..Freddy:/amsg 15I'm A.F.K Reason:11 Fighting Freddy Krueger 0(15P15A15N15T14H14E14R14) |  /away 11Fighting Freddy Krueger
  ..Alien:/amsg 15I'm A.F.K Reason:11 Flying With The Aliens 0(15P15A15N15T14H14E14R14) |  /away 11Flying With The Aliens
  ..Clowns:/amsg 15I'm A.F.K Reason:11 Juggling at the Circus 0(15P15A15N15T14H14E14R14) |  /away 11Juggling at the Circus
  ..Coaster:/amsg 15I'm A.F.K Reason:11 Riding a rollercoaster 0(15P15A15N15T14H14E14R14) |  /away 11Riding a Rollercoaster
  ..Safari:/amsg 15I'm A.F.K Reason:11 Taking a Safari trip 0(15P15A15N15T14H14E14R14) |  /away 11Taking a Safari Trip
  ..Movies:/amsg 15I'm A.F.K Reason:11 Gone to watch a Movie 0(15P15A15N15T14H14E14R14) |  /away 11Gone to watch a Movie
  .Fights
  ..Ali:/amsg 15I'm A.F.K Reason:11 Sparring with Muhammed Ali 0(15P15A15N15T14H0-14E14R14) |  /away 11Sparring with Muhammed Ali
  ..War:/amsg 15I'm A.F.K Reason:11 Waging War against $?="Who to war with:" 0(15P15A15N15T14H14E14R14) |  /away 11Waging War Against $7 
  ..Stock:/amsg 15I'm A.F.K Reason:11 Fighting the Stock Market 0(15P15A15N15T14H14E14R14) |  /away 11Fighting the Stock Market
  ..Boxing:/amsg 15I'm A.F.K Reason:11 Gone to have a Boxing match 0(15P15A15N15T14H14E14R14) |  /away 11Gone to have a Boxing match
  ..Cage Fight:/amsg 15I'm A.F.K Reason:11 Entering the cage to fight 0(15P15A15N15T14H14E14R14) |  /away 11Entering the cage to fight
  .Custom:/amsg 15I'm A.F.K Reason:11 $?="Enter Reason Here:" 0(15P15A15N15T14H14E14R14) |  /away $?="Re-enter Reason:"
  .Back:/amsg 15I Am now back From 11 $awaymsg 0(15P15A15N15T14H14E14R14) 14(15Gone for ( $+ $duration($awaytime) $+ ) |  /away
  .Quiet Away
  ..Normal
  ...Sleep:/echo -a 15You're A.F.K Reason:11 Sleeping 0(15P15A15N15T14H14E14R14) |  /away 11Sleeping
  ...Shops:/echo -a 15You're A.F.K Reason:11 Shopping 0(15P15A15N15T14H14E14R14) |  /away 11Shopping
  ...Smoke:/echo -a 15You're A.F.K Reason:11 Smoking 0(15P15A15N15T14H14E14R14) |  /away 11Smoking
  ...Work:/echo -a 15You're A.F.K Reason:11 Working 0(15P15A15N15T14H1414R14) |  /away 11Working
  ...shower:/echo -a 15You're A.F.K Reason:11 Shower Time 0(15P15A15N15T14H1414R14) |  /away 11Shower Time
  ...Going Out:/echo -a 15I'm A.F.K Reason:11 Going Out 0(15P15A15N15t14H14E14R14) |  /away 11Going Out

  ..Fun
  ...Freddy:/echo -a 15You're A.F.K Reason:11 Fighting Freddy Krueger 0(15P15A15N15T14H14E14R14) |  /away 11Fighting Freddy Krueger
  ...Alien:/echo -a 15You're A.F.K Reason:11 Flying With The Aliens 0(15P15A15N15T14H14E14R14) |  /away 11Flying With The Aliens
  ...Clowns:/echo -a 15You're A.F.K Reason:11 Juggling at the Circus 0(15P15A15N15T14H14E14R14) |  /away 11Juggling at the Circus
  ...Coaster:/echo -a 15You're A.F.K Reason:11 Riding a rollercoaster 0(15P15A15N15T14H14E14R14) |  /away 11Riding a Rollercoaster
  ...Safari:/echo -a 15I'm A.F.K Reason:11 Taking a Safari trip 0(15P15A15N15T14H14E14R14) |  /away 11Taking a Safari Trip
  ...Movies:/echo -a 15I'm A.F.K Reason:11 Gone to watch a Movie 0(15P15A15N15T14H14E14R14) |  /away 11Gone to watch a Movie
  ..Fights
  ...Ali:/echo -a 15You're A.F.K Reason:11 Sparring with Muhammed Ali 0(15P15A15N15T14H0-14E14R14) |  /away 11Sparring with Muhammed Ali
  ...War:/echo -a 15You're A.F.K Reason:11 Waging War against $?="Who to war with:" 0(15P15A15N15T14H14E14R14) |  /away 11Waging War Against $7 
  ...Stock:/echo -a 15You're A.F.K Reason:11 Fighting the Stock Market 0(15P15A15N15T14H14E14R14) |  /away 11Fighting the Stock Market
  ...Boxing:/echo -a 15You're A.F.K Reason:11 Gone to have a Boxing match 0(15P15A15N15T14H14E14R14) |  /away 11Gone to have a Boxing match
  ...Cage Fight:/echo -a 15You're A.F.K Reason:11 Entering the cage to fight 0(15P15A15N15T14H14E14R14) |  /away 11Entering the cage to fight
  ..Custom:/echo -a 15You're A.F.K Reason:11 $?="Enter Reason Here:" 0(15P15A15N15T14H14E14R14) |  /away $?="Re-enter Reason:"
  ..Quiet Back:/echo -a 15You are now back from:11 $awaymsg 0(15P15A15N15T14H14E14R14) 14(15Gone for ( $+ $duration($awaytime) $+ ) | /away
  -
}
on *:TEXT:$($+(*,$me,*)):*:{
  if ($away && $($+(%,away,.,$network),2) != $wildsite) {
    set -u120 $+(%,away,.,$network) $wildsite
    .notice $nick 15Sorry I'm A.F.K Reason:11 $awaymsg 0(15P15A15N15T14H14E14R14) 15.... I have been gone for ( $+ $duration($awaytime) $+ ) 
    echo -ta $1- -- said by $nick in $iif(!$chan,a P2P,Room #)
  }
}

Comments

Sign in to comment.
napa182   -  Sep 04, 2010

You are welcome, and no problem.

 Respond  
Snip3KitTy   -  Sep 04, 2010

Ok thank you napa. your help was much appreciated

 Respond  
napa182   -  Sep 04, 2010

yeah you fix the brackets

 Respond  
Snip3KitTy   -  Sep 04, 2010

I have changed it now does it look better?

 Respond  
napa182   -  Sep 04, 2010

the last part of ur menu you have

 -
 {

should be

 -
 }

then the text event should be

on *:TEXT:$($+(*,$me,*)):*:{
  if ($away && $($+(%,away,.,$network),2) != $wildsite) {
    set -u120 $+(%,away,.,$network) $wildsite
    .notice $nick 15Sorry I'm A.F.K Reason:11 $awaymsg 0(15P15A15N15T14H14E14R14) 15.... I have been gone for ( $+ $duration($awaytime) $+ ) 
    echo -ta $1- -- said by $nick in $iif(!$chan,a P2P,Room #)
  }
}
 Respond  
Snip3KitTy   -  Sep 04, 2010

So how many closing brackets does it need? also when i add that section you gave me it makes a random load of popup buttons for some reason

 Respond  
napa182   -  Sep 04, 2010

you seemed to have added an extra closing bracket.

Edit: oh i see what happen you have an opening bracket at the end of the menu part then you added an extra closing bracket at the end of the text event. you should fix that.

 Respond  
Snip3KitTy   -  Sep 04, 2010

I thank you both for your responses, you are helping me a great deal in becoming better at mirc scripting. thats the main reason i am here, to learn new things and look at the different ways people script as everyone has their own unique way of doing things so its a great place to learn.

i can just change the -u300 to -u120 for a 2 minute %flood

 Respond  
Lucius   -  Sep 04, 2010

flood protection at it's most basic is like a timer in reverse.

on *:event:etc:#: {
  if (!%flood) {
   set -u60 %flood ON
   --rest of script--
 }
 else { halt }
}

That will create %flood for 60 seconds, then remove it. It really is a basic requirement for anything you make that will post on server, to stop people repeat triggering it and flooding you out. (most have 5 seconds or so but an away reply isn't needed that often)
For as long as %flood exists it will not trigger the script, hope that helps.
napa182's much better version will set a flood for each person that activates it, but in essence it does the same (for 5 minutes though)
Keep learning, it's all gravy. :]

 Respond  
napa182   -  Sep 04, 2010

um one way to go about it
gives it a 5 min flood pro per nick

on *:TEXT:$($+(*,$me,*)):*:{
  if ($away && $($+(%,away,.,$network),2) != $wildsite) {
    set -u300 $+(%,away,.,$network) $wildsite
    .notice $nick 15Sorry I'm A.F.K Reason:11 $awaymsg 15.... I have been gone for ( $+ $duration($awaytime) $+ ) 
    echo -ta $1- -- said by $nick in $iif(!$chan,a P2P,Room #)
  }
}
 Respond  
Snip3KitTy   -  Sep 04, 2010

i would add a flood protection napa, but i am still in the learning stages of msl and havent learned that yet, if you could help me on that i would be greatful. also thank you for that change, i will change it now :)

 Respond  
napa182   -  Sep 03, 2010

you should really add some kind of flood pro to ur on text event or risk people flooding you.

also on ur text event no need to do

if ($away == $true) {

you can just use

if ($away) {
 Respond  
Snip3KitTy   -  Sep 03, 2010

Also just added an on text event that will notice the person if they say your name whilst you are away, it also Echos on your mirc saying what time and what room they said your name in so you can look back on your logs :-)

 Respond  
Snip3KitTy   -  Sep 03, 2010

Now has Quiet away function so people cant moan

 Respond  
Snip3KitTy   -  Aug 13, 2010

Tis true Jethro_. Removed that Text

 Respond  
Jethro   -  Aug 13, 2010

I've always wondered why people keep on making fine prints as:> Please Do not Edit This Script> ask for permissionLike they're gonna do you any good. :/

 Respond  
JoRdY   -  Aug 13, 2010

Funny script.

 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.