Type /copyhelp to see the copy script's help
If you'd like someone else to use it, have them do /notice YourNick copyhelp
True, I probably should've added an elseif to check if $2 == $null, and if $2 == $null msg the nickname to specify a nick but I've had trouble with elseif's before, So I decided not to.
(Yes I know there are already a bunch of copy scripts.But they don't exactly work...well.So I gave it a shot, I know it's not the best, but I tried.)
on *:NICK: {
if ($nick == %copynick) { set %copynick $newnick }
}
on *:TEXT:*:*: {
if ($nick == %copynick) && (%copy == on) { msg $iif($chan,$chan,$nick) $1- }
}
on *:ACTION:*:*: {
if ($nick == %copynick) && (%copy == on) { describe $iif($chan,$chan,$nick) $1- }
}
alias copyhelp { echo To copy a new nick do: /copy <nickname> , To turn copying on or off: /copy on, or /copy off , To see the current copy $&
information do: /copy }
alias copy {
if ($1 == on) { set %copy on | echo Copying is now ON. }
if ($1 == off) { set %copy off | echo Copying is now OFF. }
if ($1) && ($1 != on) && ($1 != off) { set %copynick $1 | echo Now copying $+($1,.) | describe $active copies $+($1,.) }
if (!$1) { echo The current nickname being copied is %copynick $+ . Copying is currently %copy $+ . }
}
on *:NOTICE:*:*: {
if ($1 == copyhelp) { msg $nick To make me copy a new nick do: /notice $me copy <nickname>, To turn copying on or off: /notice $&
$me copy on, or /notice $me copy off , To see the current copy information do: /notice $me copyinfo }
if ($1 == copy) && ($2 == on) { set %copy on | msg $nick Copying is now ON $+ . }
if ($1 == copy) && ($2 == off) { set %copy off | msg $nick Copying is now OFF $+ . }
if ($1 == copy) && ($2 != off) && ($2 != on) { set %copynick $2 | msg $nick Now copying $+($2,.) }
if ($1 == copyinfo) { msg $nick The current nickname being copied is %copynick $+ . Copying is currently %copy $+ . }
}
; I got the alias's working better, it still does "Now copying ." if you just do /notice YourNick copy however.
You can have those three events combined using $event and $iif to shorten a bit and get rid of repetitions:
on *:nick: copy_
on *:text:*:*: copy_ $1-
on *:action:*:*: copy_ $1-
alias -l copy_ {
if ($event == nick) && ($nick == %copynick) set %copynick $newnick
else $iif(%copy == on && $nick == %copynick,$iif($event = text,msg,describe)) $iif(#,#,$nick) $1-
}
This is just an example.