PDA

View Full Version : Rath's Elite Away Script


Rath
12-29-2007, 04:30 PM
Once you load the script, a box will come up asking for your nickserv password, this will activate the auto identify when you come back from away. Just type your nickserv password in the box and hit okay.

To activate the script, type /gone <reason> - to deactivate it, type /back

(make sure it's seperate from all scripts (in a new file(in ur script editor in remotes, click on file, new, and paste the script in there)))

on *:load:{
Â*Â*set %nick.pass $$?="What is your nickserv password?"
}
alias gone {
Â*Â*set %away.script on
Â*Â*set %away.nick $me
Â*Â*away $1-
Â*Â*amsg I am now away - Reason: [ $1- ] - Time left: [ $time(h:nn $+ TT) ]
Â*Â*nick $me $+ |Away
}
alias back {
Â*Â*away
Â*Â*nick %away.nick
Â*Â*.msg nickserv identify %nick.pass
Â*Â*amsg I have returned from [ $awaymsg ] - I have been away for: [ $duration($awaytime) ]
Â*Â*unset %away.nick %away.script
}
on ^*:OPEN:?:*: {
Â*Â*if ( %away.script == on ) {
Â*Â*Â*Â*if ( !$window(@AwayLog) ) {
Â*Â*Â*Â*Â*Â*window -n @AwayLog
Â*Â*Â*Â*Â*Â*echo @Awaylog $str(-=-,5) Away Log $str(-=-,5)
Â*Â*Â*Â*}
Â*Â*Â*Â*.msg $nick 11[(AUTOMATED AWAY MESSAGE)]11 4I am away!4
Â*Â*Â*Â*.msg $nick Reason: $awaymsg  - Away Time: $duration($awaytime) 
Â*Â*Â*Â*echo -t @AwayLog » 11 $nick has pm'd you at $fulldate $+ .11
Â*Â*Â*Â*echo -t @AwayLog » 4Message: $1-4
Â*Â*}
}
on *:TEXT:$( %away.nick ):#:{
Â*Â*if ( %away.script ) {
Â*Â*Â*Â*.notice $nick Sorry, but I am away - Reason: $awaymsg - I have been away for: $duration($awaytime) 
Â*Â*Â*Â*halt
Â*Â*}
}
on *:NOTICE:*:?: {
Â*Â*if ( %away.script == on ) {
Â*Â*Â*Â*if ( !$window(@AwayLog) ) {
Â*Â*Â*Â*Â*Â*window -n @AwayLog
Â*Â*Â*Â*Â*Â*echo @Awaylog $str(-=-,5) Away Log $str(-=-,5)
Â*Â*Â*Â*}
Â*Â*Â*Â*.notice $nick Sorry, but I am away - Reason: $awaymsg - I have been away for: $duration($awaytime) 
Â*Â*Â*Â*echo -t @AwayLog »11 $nick has noticed you at $fulldate $+ .11
Â*Â*Â*Â*echo -t @AwayLog » 4Message: $1-4
Â*Â*}
}

If the colors on the snippet does not work, copy the code from this link: http://www.hawkee.com/snippet/3688/

please rate! :D

Rustyoid
01-23-2008, 06:27 PM
nice.

Rath
03-07-2008, 05:39 PM
UPDATED SO MUCH TO IT!!!! Changed the title from simple to elite. Please rate and use! :D

Justin
03-07-2008, 09:05 PM
0/10
lol <3

DarkHeath
03-15-2008, 10:11 AM
Making this into a dialog would be more "elite" and user friendly. But nice script, not too complex. 5/10.

Dark Reaper
04-16-2008, 08:58 AM
Thanks helped me alot.