Top

Away script


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.0 (of 1 scores)
Date Added  Jul 03, 2008
Last Updated  Aug 17, 2008
Tags  away 

Introduction

Simple away script... Paste in remotes :)

Using:
/away <Reason>
/back



Grab the Code

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

  (6)  RSS
EL
Comments: 1,125
 
mIRC Snippet:  Away script
Posted on Jul 3, 2008 8:25 pm
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.`-.-ยด
mountaindew
Comments: 1,826
 
mIRC Snippet:  Away script
Posted on Jul 3, 2008 8:33 pm
Don't you need on ^ to halt?
Eugenio
Comments: 1,193
 
mIRC Snippet:  Away script
Posted on Jul 3, 2008 9:37 pm
ROFL @ hes flood protection
bloody use it though......its an mIRC life saver
-.-'
Yilena
Comments: 13
 
mIRC Snippet:  Away script
Posted on Jul 6, 2008 11:42 am
thanks for the comments.. Ill edit it soon _o_
Yilena
Comments: 13
 
mIRC Snippet:  Away script
Posted on Aug 5, 2008 2:18 pm
Updated with flood protecion :)
dangerous_angel
Comments: 5
 
mIRC Snippet:  Away script
Posted on Jul 5, 2009 1:49 am
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.

Commenting Options

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

  
Bottom