mIRC Home    About    Download    Register    News    Help

Print Thread
#141215 06/02/06 07:38 PM
Joined: Feb 2006
Posts: 2
T
tmx Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Feb 2006
Posts: 2
I haven't scripted in a long time with mirc and looks like it's changed up some. What i want to do, is there is one channel i'm in, that if i use a cuss word, i would like the script to blank it out before it actually posts to the chat. I'm attempting to get something workin, but wanted to post just in case someone could write me one up real quick! Thanks

I only want it to work in that specific chan, not all channels..

#141216 06/02/06 08:31 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Code:

menu menubar {
Word Changer $group(#wordchanger) :{
 $iif($group(#wordchanger).status == on,.disable #wordchanger,enable #wordchanger) 
 echo -a Word Changer is now $group(#wordchanger).status
  }
}
#wordchanger off
on *:input:#channel:{
  unset %newword 
  if (($left($1,1) isin / $readini($mircini,text,commandchar)) || ($left($$1,1) == !) || ($left($$1,1) == @) || ($ctrlenter == $true)) { return }
  var %i = 1
  var %words = $$1-
  var %wordcount = $gettok(%words,0,32)
  while (%i <= %wordcount) {
    var %newstring = $read(textreplace.txt,s,$gettok(%words,%i,32))
    if (%newstring == $null) { %newword = %newword  $gettok(%words,%i,32) }
    if (%newstring != $null) { %newword = %newword %newstring }
    inc %i
  }
  say %newword 
  halt
}
#wordchanger end

; and you have to make a simple text file "textreplace.txt"
; on each line you have the word and its replacement

hell heck
bastard ------

#141217 06/02/06 10:06 PM
Joined: Feb 2006
Posts: 2
T
tmx Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Feb 2006
Posts: 2
aww nice, thank you much works great! Just one other dumb question, is there way to change the defualt font? I can't not find it anywhere? Let me know if you don't mind, Thanks

#141218 06/02/06 10:22 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
/help /font

Scroll down a bit and locate the section for /font.


Link Copied to Clipboard