Top

Simple Away System


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  7.0 (of 2 scores)
Date Added  Aug 21, 2008
Last Updated  Dec 04, 2008
Tags  afk  agent121  aliendk  away  chris  gone  irc  mirc  sas  simple  system 

Introduction

I made this script since I thought mIRC really needed a good, but simple away system, like IceChat. So I made this and well, I should probably mention the functions :P

v1.2 Features:
- Works together with mIRCs own away system
- Auto-reply if someone says your name in a channel or opens a query with you (can be deactivated)
- Choose your own away tag
v.1.3 Features:
- Removed some buggy code
- Added menu menu item, 'Default Settings'.
v.1.3.1 Features:
- Bugfix
v.1.3.2 Features:
- added some on *:LOAD info
- added /sasinfo


Setup: Load the file and do /default or right-click on the channel window, Away 1.3 > Default Settings. Then it works. You can set yourself as away/back in the menu (right-click on the channel window) > Away 1.3. In this menu you can also change the settings like, Auto-reply On/off, Away Tag.

Please report any bugs you may find.

Grab the Code

;@@@ Script by: Christoffer G. Thomsen/AlienDK
;@@@ Please do not take credit for this script
 
menu channel {
  Away 1.3
  .Default Settings:/default
  .Set Away:/a $$?="Enter an away reason:"
  .Set Back:/b
  .Auto-reply On:/set %nickmsg on
  .Auto-reply Off:/set %nickmsg off
  .Away Tag:/set %tag $$?="Enter your away tag:"
}
 
on *:LOAD: {
  sasinfo
}
 
alias sasinfo {
  echo -a 3* Simple Away System by AlienDK
  echo -a 3* Version: 1.3.2
  echo -a 3* Changelog: Added some on *:LOAD info, added /sasinfo
  echo 'a 3* Visit www.cgtnet.dk/hawkee for all future versions of this script
}
alias default {
  set %a off
  set %tag [A]
  set %nickmsg on
  set %name $me
  echo -ta Settings has been set to default!
}
 
alias a {
  away $1-
  set %a on
  amsg [AWAY] $me is now away! Reason: $1-
}
 
alias b {
  away
  set %a off
  amsg [AWAY] $me is no longer away! Away Time: $duration($awaytime,23)
}
 
on *:TEXT:%name:#: {
  if ( %a == on ) && ( %nickmsg == on ) && ( %chan.flood != 1 ) {
    set -u90 %chan.flood 1
    msg $chan I'm currently away from IRC. Awaymsg: $awaymsg
  }
  elseif ( %nickmsg == off ) { halt }
  else { halt }
}
 
on *:TEXT:*:?: {
  if ( %a == on ) && ( %nickmsg == on ) && ( %query.flood != 1 ) {
    set -u60 %query.flood 1
    msg $nick I'm currently away from IRC. Awaymsg: $awaymsg
  }
  elseif ( %nickmsg == off ) { halt }
  else { halt }
}

Comments

  (5)  RSS
napa182
Comments: 1,454
 
mIRC Snippet:  Simple Away System
Posted on Aug 21, 2008 7:08 pm
you should make the highlite message only say it once per person or some ahole can make you flood off by highliteing ur nick over and over
AlienDK
Comments: 34
 
mIRC Snippet:  Simple Away System
Posted on Aug 22, 2008 7:11 am
Okay :) I'll do that in the next version :)))

EDIT: Script has been edited. Timer added.
mountaindew
Comments: 1,826
 
mIRC Snippet:  Simple Away System
Posted on Aug 27, 2008 5:16 pm
I would add $style to your menu so you can see if you're away and if auto-reply is on/off.
Paul_1337noob
Comments: 81
 
mIRC Snippet:  Simple Away System
Posted on Sep 8, 2008 3:55 pm
ure missing a closing bracket on the end there

Code:

on *:TEXT:*:?: {
  if ( %a == on ) && ( %nickmsg == on ) && ( %query.flood != 1 ) {
    set -u60 %query.flood 1
    msg $nick I'm currently away from IRC. Awaymsg: $awaymsg
  }
  elseif ( %nickmsg == off ) { halt }
  else { halt }
>>> } <<<
AlienDK
Comments: 34
 
mIRC Snippet:  Simple Away System
Posted on Sep 10, 2008 8:14 am
lol! Fixed

Commenting Options

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

  
Bottom