Mimic Script

By Wizjany on Aug 30, 2008

I recently saw a script here that would simply mimic anything said, so I made my own where you could choose who you want it to mimic. This script is meant for a bot. It will copy their words and actions.

Updates:
Fixed a really stupid mistake where the timer was 0 1 instead of 1 0
Made it so that it will continue to mimic someone if they switch nicknames
Fixed a small bug saying it was already off when you say ~mimic off

Commands:
~mimic on - turns it on
~mimic (nick) - makes it mimic a nick
~mimic off - turns the entire script off, it will stop mimicking people
~mimicoff (nick) - will make it stop mimicking only that person

On *:LOAD: {
  set %mimic.on false
}

On *:TEXT:~mimic *:#: {
  if (%mimic.on = true) {
    if ($2 != on) && ($2 != off) {
      set %mimic. [ $+ [ $2 ] ] on
      msg $chan $2 has been added to the mimic list
    }
    if ($2 == off) {
      unset %mimic.*
      set %mimic.on false
      halt
    }
    if ($2 == on) {
      msg $chan Mimic is already on.
    }
  }
  if (%mimic.on = false) {
    if ($2 == on) {
      set %mimic.on true
      msg $chan Mimic has been turned on.
    }
    if ($2 == off) {
      msg $chan Mimic is already off.
    } 
    if ($2 != on) && ($2 != off) {
      msg $chan Mimic is off. Type ~mimic on to turn it on.
    }
  }
}
ON *:TEXT:~mimicoff *:#: {
  if (%mimic. [ $+ [ $2 ] ] == on) {
    unset %mimic. [ $+ [ $2 ] ]
    msg $chan I will no longer mimic $2 $+ .
    halt
  }
  if (!%mimic. [ $+ [ $2 ] ]) { 
    msg $chan I wasn't even mimicking them!
  }
}
On *:TEXT:*:#: {
  if (%mimic. [ $+ [ $nick ] ] == on) && ($left($1,1) != ~) {
    timerMimic 1 0 msg $chan $replace($1-,$me,$nick)
  }
}
On *:Action:*:#: {
  if (%mimic. [ $+ [ $nick ] ] == on) && ($left($1,1) != ~) {
    timerMimic 1 0 describe $chan $replace($1-,$me,$nick)
  }
}
On *:NICK: {
  if (%mimic. [ $+ [ $nick ] ] == on) {
    set %mimic. [ $+ [ $newnick ] ] on
    unset %mimic. [ $+ [ $nick ] ]
  }
}

Comments

Sign in to comment.
Wizjany   -  Aug 31, 2008

fixed, forgot a halt, so after it turned it off, it skipped to the part where it's already off

 Respond  
Choco   -  Aug 31, 2008

1 problem. I do ~mimic on alright then I do ~mimic (nick) then I do ~mimicoff (nick) then I go ~mimic off but it keeps saying its already off >:

 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.