Away script

By Yilena on Jul 03, 2008

Simple away script... Paste in remotes :)

Using:
/away
/back

alias away { 
  set %timer $time
  set %reason $1-
  /ame 0is away now... Reason:10 %reason
  set %away.time $ctime
  set %gone on
set %nick $me
/nick $me $+ `afk
}
alias back { 
  if (%gone == $NULL) /echo $active Your not away
  else /ame 0is back from10 %reason $+ , 0I was away for10 $duration($calc($ctime - %away.time)) $+ 0. 
  unset %away.time
  unset %reason
  unset %gone 
/nick %nick
}
on *:OPEN:*:*: { 
  if (%gone == on) { msg $nick Hey $nick $+ , atm im not here. Ill be back later to check your message :) | halt }
  else { halt } 
}
on 1:TEXT:*:#: { 
  if (%flood == on) { 
    halt 
  }
  if ($me isin $1-) && (%gone == on) { 
    describe $chan 0is away:10 %reason  ... 0Went away @ %timer (GMT+1) 10Awaytime: $duration($calc($ctime - %away.time)) $+ 0. 
    set %flood on
    timer 1 120 unset %flood
  halt }  
}
on 1:ACTION:*:#: { 
  if (%flood == on) { 
    halt 
  }
  if ($me isin $1-) && (%gone == on) { 
    describe $chan 0is away:10 %reason  ... 0Went away @ %timer (GMT+1) 10Awaytime: $duration($calc($ctime - %away.time)) $+ 0. 
    set %flood on
    timer 1 120 unset %flood
  halt }  
}

Comments

Sign in to comment.
dangerous_angel   -  Jul 05, 2009

You have this set to say ur away message to the channel. however their are some idiots who would say your nick over and over, and your script would keep repeating the same away message and you will be kicked by a bot. So i was thinking you could add .notice $nick to the script, so it notices them, and also wouldn't cause disruption to the room.

 Respond  
Yilena   -  Aug 05, 2008

Updated with flood protecion :)

 Respond  
Yilena   -  Jul 06, 2008

thanks for the comments.. Ill edit it soon o

 Respond  
Eugenio   -  Jul 03, 2008

ROFL @ hes flood protection
bloody use it though......its an mIRC life saver
-.-\'

 Respond  
guest598594   -  Jul 03, 2008

Don\'t you need on ^ to halt?

 Respond  
EL   -  Jul 03, 2008

Interestin way to code.no need for the else statements an should use /away and the $away identifier as well an please add flood protection and i know i say that alot to everyone but ima freak about protecting lol ask eugene;p.Seriously tho it should be protected or ppl can just flood you off your network.And maybe add some simple loggin as well for things tat are said with your nick trigger.`-.-´

 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.