Simple Away System

By AlienDK on Aug 21, 2008

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.

;@@@ 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

Sign in to comment.
rick1920   -  Sep 01, 2011

rick1920 is away: safa
[02:45] Nagpahilayo ako karong taknaa. Rason sa Pagpahilayo:

it will reply to away msg..one from the top and one from ur script..

 Respond  
AlienDK   -  Sep 10, 2008

lol! Fixed

 Respond  
Paul_1337noob   -  Sep 08, 2008

ure missing a closing bracket on the end there

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 }
>>> } <<<
 Respond  
guest598594   -  Aug 27, 2008

I would add $style to your menu so you can see if you're away and if auto-reply is on/off.

 Respond  
AlienDK   -  Aug 22, 2008

Okay :) I'll do that in the next version :)))

EDIT: Script has been edited. Timer added.

 Respond  
napa182   -  Aug 21, 2008

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

 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.