mIRC Home    About    Download    Register    News    Help

Topic Options
#151607 - 19/06/06 05:14 PM ignore alias
nataliad Offline
Fjord artisan

Registered: 18/02/06
Posts: 307
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!

Top
#151608 - 19/06/06 06:35 PM Re: ignore alias
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
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
_________________________
Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Top
#151609 - 19/06/06 06:47 PM Re: ignore alias
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
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

Top
#151610 - 19/06/06 06:48 PM Re: ignore alias
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
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
_________________________
Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Top
#151611 - 19/06/06 08:01 PM Re: ignore alias
schaefer31 Offline
Fjord artisan

Registered: 27/08/05
Posts: 525
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>

Top
#151612 - 20/06/06 02:01 AM Re: ignore alias
nataliad Offline
Fjord artisan

Registered: 18/02/06
Posts: 307
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


Edited by nataliad (20/06/06 02:21 AM)

Top