Originally Posted By: dylaninfd
I was thinking of an 'On input' script, but when i typed /help on input, i got very confused....i had no clue as to what to type, nor did i understand what the scripts were supposed to do....if someone could break the code down and explain it, that would help


Code:
on *:INPUT:#YOURCHANNEL:{
  if ($left($1,1) == /) { return }
  else {
    if (lol isin $1-) { msg # $replace($1-,lol,Laughing Out Loud) | halt }
    if (mIRC isin $1-) { msg # $replace($1-,mIRC,4M0irc) | halt }
  }
}


Here I gave you 2 examples of using an automatic bold and color method.

The first if statement we have to make sure that if you input a / that it lets you excute any commands EX: /server irc.whatever.com etc...

The else statement we have the code in question, here in this code when you type lol in a channel it will automatically fill in the lol with Laughing Out Loud where aughing ut oud will be bold and the LOL will not, I use the replace command $replace($1-,WORD,NEWWORD) method then we have to halt the original string to be shown so you do not talk double or see a echo version of your script.

So in order to properly use this script and add your own words to be automatically colored and/or bold/underline you will need to add a new if statement within the else statement like above

the process would be as follows...

if (MYWORD isin $1-) { msg # $replace($1-,MYWORD,THE WAY I WANT IT TO SHOW) | halt }

hope this helps