ChatScape
ChatScape's Official Chat Forum.
HomePortalGalleryCalendarFAQSearchRegisterLog in
Post new topic   Reply to topic
 

Simple Auto-Devoicer (A.K.A. Annoy the Heck Out of People)

View previous topic View next topic Go down 
AuthorMessage
Shaimus




Joined : 12 Jul 2008
Posts : 10

PostSubject: Simple Auto-Devoicer (A.K.A. Annoy the Heck Out of People)   Sat Jul 12, 2008 4:09 pm

This is good for grudges, too.

Code:

on *:voice:#:{
  if ($vnick == nick) mode $chan -v $vnick
  else { halt }
  msg $chan NO VOICE FOR YOU
}



Replace "nick" with the nick of the person you're trying to annoy. This of course only works if you have op on the channel. If you want to deop them just replace $vnick with $opnick.
Back to top Go down
Nemesis
Admin



Age : 25
Joined : 02 Mar 2008
Posts : 69

PostSubject: Re: Simple Auto-Devoicer (A.K.A. Annoy the Heck Out of People)   Sat Jul 12, 2008 4:37 pm

Hmm not to bad.Im here to suggest an help and im in no way pickin on anyone or anything like that so try not to think im bein harsh im just her to help you learn if you want,or you can disregard all my comments ;x

Code:

on @*:voice:#:{
  if ($vnick == %NoVoice)  {
  mode $chan -v $vnick
  msg $chan NO VOICE FOR YOU
}
}
;;Just like you had before but see the @ symbol means OP and the event wont run unless your OP
;;Also liek you had before the if statement is the same exept its lookin to see if the voiced nick is the var
;;If it is the are devoiced and the message is sent and theres no need for a ELSE statement here

on *:nick: {
  if ($nick == %NoVoice) {
    set %NoVoice $newnick
    echo -a %NoVoice will now be auto devoiced
  }
}

;;On nick is just lookin for if the nickname that changed nicks is the nickname that you entered for %NoVoice
;;It will set the %NoVoice var as that persons new nick so they cannot nickchange to get around your auto devoice

alias novoice {
  set %NoVoice $input(Type a nickname here!,e)
  echo -a %NoVoice will now be auto devoiced
}
;;Alias above will let you set the %var to any text you type in the input box
;;Then it will echo who you put and you can change it if you want.


A few things that i didnt add are flood protection cause i code a bot differently and i want to help you understandwhats there an not see alien code.This is also UNTESTED but should work just fine.`-.-´
Back to top Go down
Shaimus




Joined : 12 Jul 2008
Posts : 10

PostSubject: Re: Simple Auto-Devoicer (A.K.A. Annoy the Heck Out of People)   Sat Jul 12, 2008 4:52 pm

Alright, after looking at it for 10 minutes, I think I follow you. Hehe. Thanks for the input, that's how I've learned so far, from other people and their scripts.
Back to top Go down

Simple Auto-Devoicer (A.K.A. Annoy the Heck Out of People)

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You can reply to topics in this forum
ChatScape :: Everything mIRC! :: mIRC Snippets Section.-
Post new topic   Reply to topic