mIRC Home    About    Download    Register    News    Help

Print Thread
ignore alias #151607 19/06/06 04:14 PM
Joined: Feb 2006
Posts: 307
N
nataliad Offline OP
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
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!

Re: ignore alias #151608 19/06/06 05:35 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
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* }
Re: ignore alias #151609 19/06/06 05:47 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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

Re: ignore alias #151610 19/06/06 05:48 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
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* }
Re: ignore alias #151611 19/06/06 07:01 PM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
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>

Re: ignore alias #151612 20/06/06 01:01 AM
Joined: Feb 2006
Posts: 307
N
nataliad Offline OP
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
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

Last edited by nataliad; 20/06/06 01:21 AM.