mimic
Posted by CRIKEY
Friday, September 03, 2004
Description: it mimics

#Mimic off
on 1:text:*:*:{
if ($nick == %mimicnick) { msg $chan $1- } }
on 1:action:*:*:{
($nick == %mimicnick) { describe $chan $1- } }
#Mimic end
#FuNHouSe on
menu nicklist {
  -
  Mimic $snick(#,1):
  .On: /set %mimicnick $$1 | .enable #Mimic |  sclick | echo  Now Mimicing $$1
  .Off: /unset %mimicnick | .disable #Mimic |  sclick | echo Stopped Mimicing $$1
  -
Sloppy
Posted by KilledInAction
Friday, September 03, 2004 09:07am PDT
Well... first things first.  It does what you want it to do.  There are a couple problems in here however.

First, you have the trigger location set to "*", meaning that it will trigger any time you see that person say something, whether its in a channel or query.  If this is what you want, fine... however, in script itself, you /msg $chan and /describe $chan.  If this was done in a query, $chan would be null and it would not function at all.  

Second, you start a #FuNHouSe group, and it appears that you have other funhouse popups since you never end it.  

Third, going along with the last part, you don't have a final "}" on the menu, causing all sorts of bad stuff to happen >.<  

I'm not quite sure what the sclick is in the middle of the menu.  I know that sclick in a menu triggers when you single click inside of a picwin... but i am unaware of what it's purpose is here.  Sclick isn't a default command brings up a "SCLICK unknown command".

One little nit-picky thing.  Mimicing != Mimicking.

A second little nit-picky thing.  If you click Mimic off on a person you are not mimicking, you should echo "Stopped micmicking <person>" first and include the person's name who you were actually mimicking.  Likewise, you can also turn off the "off" button if you are not micmicking anybody, or just echo that you weren't mimicking anybody when you try to turn it off.

P.S. Nice job... just mimic scripts are annoying as heck =)
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world