mIRC Homepage
Posted By: nataliad ignore alias - 19/06/06 04:14 PM
hello

I would like to make some ignore alias, can you help me please

'/i word' -> permanent ignore in all servers word*!*@*
'/i1 word' -> permanent ignore in all servers *!*@*word
'/i2 word' -> permanent ignore in all servers *!*@word*

thanks!
Posted By: Lpfix5 Re: ignore alias - 19/06/06 05:35 PM
Can you be a little bit more specific on the request please?

like /i /i1 /i2 can all be created by doing this

alias i { commands }
alias i1 { commands }
alias i2 { commands }

should you want to type something after /i or /i1 or /i2 you would trigger it with a $1 in your script for single word or $1- for multi words

alias i { msg # I $1 everyone in this channel }

Use:> /i love

would display I love everyone in this channel

now into more of your question what I think you want to do is multi ignores Im not sure why you want alias's for them because

/ignore whatever works just as fine unless you want to add more commands

either way

Code:
alias i { 
ignore -w $1
}


basically that script allows you to use /i nickhere and it ignores whoever on any network

now again im not sure what you want, if you want to ignore some words do this well the GOTO end is not neccesary, but in speed scripts I used to use it for unccesary script calculations which slowed down in Milliseconds

Code:
on *:TEXT:*:#:{ 
if (%word1 == true && %word1 isin $1-) { halt | goto end }
if (%word2 == true && %word2 isin $1-) { halt | goto end }
if (%word3 == true && %word3 isin $1-) { halt | goto end }
:END
}

alias i {
set %word1 $1
}

alias i1 {
set %word2 $1
}

alias i2 {
set %word3 $1
}


bascially a on Text script was created with Vars and 3 alias scripts to set them so /i badwordhere would halt the text and not be displayed if badwordhere is in the text the whole text would not be displayed I should say.

you can also use $remove commands to just remove the word specifically from the phrase or replace it with something else by using $replace
Posted By: MikeChat Re: ignore alias - 19/06/06 05:47 PM
Quote:
hello

I would like to make some ignore alias, can you help me please

'/i word' -> permanent ignore in all servers word*!*@*
'/i1 word' -> permanent ignore in all servers *!*@*word
'/i2 word' -> permanent ignore in all servers *!*@word*

thanks!


try
/i ignore -w $$1 $+ *!*@*
/i1 ignore -w *!*@* $+ $$1
/i2 ignore -w $+(*!*@*,$$1,*)

add them into your aliases.ini
Posted By: Lpfix5 Re: ignore alias - 19/06/06 05:48 PM
Quote:
Quote:
hello

I would like to make some ignore alias, can you help me please

'/i word' -> permanent ignore in all servers word*!*@*
'/i1 word' -> permanent ignore in all servers *!*@*word
'/i2 word' -> permanent ignore in all servers *!*@word*

thanks!


try
/i ignore -w $$1 $+ *!*@*
/i1 ignore -w *!*@* $+ $$1
/i2 ignore -w $+(*!*@*,$$1,*)

add them into your aliases.ini


LOL i missread what she meant now I see it
Posted By: schaefer31 Re: ignore alias - 19/06/06 07:01 PM
Using your examples...

Code:
alias i {
  if ($2) {
    if ($1 == 1) ignore -w $+($2,*!*@*)
    else if ($1 == 2) ignore -w $+(*!*@*,$2)
    else if ($1 == 3) ignore -w $+(*!*@,$2,*)
  }
}


/i <#> <word>
Posted By: nataliad Re: ignore alias - 20/06/06 01:01 AM
thanks

can you tell me this please:

'/ir word' -> permanent ignore in all servers *word!*@*
'/ic word' -> permanent ignore in all servers *word!*@*

'/is word' -> permanent ignore in all servers *!*word@*
'/iz word' -> permanent ignore in all servers *!word*@*

thanks
© mIRC Discussion Forums