Mute Script V1

By a careful warchild on Aug 11, 2008

a simple mute script, this is version one so there are a couple of bugs that im working on fixing, this does not globaly mute a user it only mutes them in the active channel you typed the command, if they leave the channel and join another one your in the mute script will activate, and mute them again and mute them.

on *:load:{ echo -a 4Thank you for using Jordy's mute script. The commands are 7/mute nick reason & /unmute nick & /delmute to delete the whole list if you fuck up ;)
}
  alias mute {
    .writeini mute.ini Muted $1 $2-
    mode $chan -qaohv+b $1 $1 $1 $1 $1 ~q: $+ $address($1,2)
    msg $chan 4U7ser $1 is now muted $iif($2- != $null, 4M7uters message4: $2-,$+ )
    set %muted. [ $+ [ $nick ] ] $ctime
  }
  alias unmute { 
    if ($readini(mute.ini,Muted,$1) != $null) {
      .remini mute.ini Muted $1
      var %x 1, %y $comchan($1,0), %mutetime $duration($calc($ctime - %muted. [ $+ [ $nick ] ]))
      while (%x <= %y) {
        mode $comchan($1,%x) -b+v ~q: $+ $address($1,2) $1
        msg $comchan($1,%x) 4U7ser $1 is now 4U7nmuted. They were muted for:4 %mutetime $+ .
        inc %x
      }
      unset %muted. [ $+ [ $nick ] ]
      echo -a * Notice: %Rem.User has been deleted from your Mute list.
    }
    else { .echo -a * Error: User not found in Mute list! }
  }
  alias delmute { 
    .remove mute.ini
    echo -a * Notice: The Mute List has been emptied.
  }
  on *:JOIN:#:{
    if ($readini(mute.ini,Muted,$nick) != $null) {
      mode $chan +b ~q: $+ $address($nick,2)
      mode $chan -qaohv $nick $nick $nick $nick $nick
      msg $chan 4U7ser $nick is still 4M7uted by: $me , Because : $readini(mute.ini,Muted,$nick)
    }
  }

Comments

Sign in to comment.
a careful warchild   -  Aug 22, 2008

lol eugenio :D

 Respond  
Eugenio   -  Aug 20, 2008

surely you have to be Oper for that =P
thats the bad thing ;(...anyhow Im oper on the servers I go to so no worries lawlz

 Respond  
Cheiron   -  Aug 20, 2008

i have just noticed something and am confused.. where did this "/shun" reference come from in the submitted snippet. the alias used is /mute and /unmute which has nothing to do with OPER command /shun.

the reference was a comment by another scripter who does use OPER as a joke for an even easier method lol

 Respond  
a careful warchild   -  Aug 20, 2008

i know but you need to be an Oper to use the command /shun

 Respond  
Cheiron   -  Aug 19, 2008

to set ~q:* .... no

i have been using modes ~q: , ~c: , ~n: for ages and i dont have OPER status :)

 Respond  
a careful warchild   -  Aug 19, 2008

/shun ;p

surely you have to be Oper for that =P

 Respond  
a careful warchild   -  Aug 19, 2008

lol thanks guys, it wasn't my best script i agree =P

 Respond  
EL   -  Aug 17, 2008

/me slaps

 Respond  
Eugenio   -  Aug 17, 2008

and i cant seem to get it to mute in all $chan's >.>
/shun ;p

 Respond  
napa182   -  Aug 17, 2008

@ Abtehi why dont you use the Search function uptop then if you cant find what you are looking for go ask in the forum.

 Respond  
Abtehi   -  Aug 17, 2008

could someone please make one without changing modes, and just make it notice to $user muted and not in the channel.. and just ban & kick with "REASON dialogs" with selections like "Shut Up", "Annoying", "Be Quiet", "Shut Your Face", Etc....

Thank you..

 Respond  
a careful warchild   -  Aug 12, 2008

lol, well thanks for all your comments guys, ill try and fix them, and i cant seem to get it to mute in all $chan\'s >.>

 Respond  
napa182   -  Aug 12, 2008

another thing whats up with ur tag\'s for this??

Tags: away bot calculator channel counter editor email form game google hash mute mysql popups protection regex script scripts slaps
most have nothing to do with this snippet
=/

 Respond  
F*U*R*B*Y*   -  Aug 12, 2008

This isn\'t a JSP Code. Please change it to mIRC.....

 Respond  
EL   -  Aug 11, 2008

You have error after error here.Big one is the fact that your muting only in one channel but unmuting in all comchans..Is there a reason behind that?.`-.-´

 Respond  
napa182   -  Aug 11, 2008

instead of doing

 mode $chan -qaohv $nick $nick $nick $nick $nick

and

mode $chan -qaohv+b $1 $1 $1 $1 $1 ~q: $+ $address($1,2)

you can do

mode $chan -qaohv $str($nick $chr(32),5)

and

mode $chan +b-qaohv ~q: $+ $address($1,2) $str($1 $chr(32),5)

why have it +v them in other rooms when you unmute them when they are only muted in one room?

 Respond  
a careful warchild   -  Aug 11, 2008

fixed, and thank you. VERSION 2 COMING VERY SOON!

 Respond  
BlueThen   -  Aug 11, 2008

There\'s a missing \"}\" on the \"on LOAD\" part.

 Respond  
a careful warchild   -  Aug 11, 2008

please give constructive critism.

 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.