mimic

By G13AoUsTiS on Dec 31, 2007

i was bored so i created this mimic script! enjoy!

on *:load: { var %y = $input(Thank You For Loading The MiMic v1 Addon By G13AoUsTiS) }

dialog mimic {
  title "MiMiC v1"
  size -1 -1 125 147
  option dbu
  text "Mimic Nick", 1, 3 13 32 8, center
  edit "", 2, 43 13 71 10
  box "Mimic Options", 3, 9 45 109 59
  radio "Actions", 4, 44 57 50 10
  radio "Texts", 5, 44 69 50 10
  radio "Both", 7, 44 81 50 10
  button "Enable", 6, 24 110 37 12
  button "Disable", 8, 71 110 37 12
  text "MiMiC By G13AoUsTiS", 9, 33 130 66 8, disable center
  text "Mimic Channels", 10, -1 28 46 8, center
  edit "#chan1,#chan2,#chan3", 11, 44 27 71 10, autohs
}

on *:dialog:mimic:sclick:*: { 
  if ($did == 4) { /set %amimic on } 
  if ($did == 5) { /set %tmimic on }
  if ($did == 7) { set %amimic on | set %tmimic on }
  if ($did == 6) { 
    if (%amimic == $null) && (%tmimic == $null) { var %x = $input(Please Select A Mimic Type First. (Text,Actions,Both)) }
  else { /set %mimicnick $did(mimic,2) | //echo -a 2* Now Mimicing $did(mimic,2) } }
  if ($did == 8) { //echo -a 2*Stop Mimicing %mimicnick | /unset %amimic | unset %tmimic | unset %mimicnick  }
}
on *:dialog:mimic:edit:11: { /set %mimichans $did(mimic,11) }

on *:TEXT:*:%mimichans:{
  if ($nick == %mimicnick) && (%tmimic == on) {
    msg # $1- 
  }
}
on *:action:*:%mimichans:{
  if ($nick == %mimicnick) && (%amimic == on) {
    describe # $1- 
  }
}

alias mimic { /dialog -m mimic mimic }

menu channel {
  -
  MiMic v1: /mimic
}

Comments

Sign in to comment.
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.