Copy Script

By ITSOVER9000 on Aug 26, 2011

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.

Comments

Sign in to comment.
Jethro   -  Aug 28, 2011

It's all right. It was an example only. :P

 Respond  
ITSOVER9000   -  Aug 28, 2011

@Jethro_ Honestly, I don't understand it. :D

 Respond  
Jethro   -  Aug 28, 2011

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.

 Respond  
computerguy99   -  Aug 28, 2011

Hey ITSOVER9000 awesome script! I haven't noticed any differences in the one that you sent me in a query on Rizon, but then again I just skimmed it. Want to vote but I have to be registered for 3 days :( I'll vote in comment: 10/10

 Respond  
FelicianoX   -  Aug 26, 2011

@ITSOVER9000, You might be missing a bracket on another script you have, try placing this in a new file.

 Respond  
ITSOVER9000   -  Aug 26, 2011

I've noticed

ON Unknown command

happens, But with the exception of that it seems to work...Ok...

 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.