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