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 #)
}
}
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 #)
}
}
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
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. :]
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 #)
}
}