mIRC Home    About    Download    Register    News    Help

Print Thread
#112197 22/02/05 12:34 AM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
Is there a shorter way to do this?

Code:
on *:text:name1:#:notice $me $nick te je omenil na $chan
on *:text:name2:#:notice $me $nick te je omenil na $chan
on *:text:nick:#:notice $me $nick te je omenil na $chan
on *:text: ... :#:notice $me $nick te je omenil na $chan  

#112198 22/02/05 12:40 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 1:text:*:#: {
  if ($1 == blah) { notice $nick blah }
  if ($1 == blah2) { notice $nick blah2! }
}


/help if then else
That needs to be the only on text event in the file for it to work correctly, (to make a new file go to File > New. on the remote editor)

Last edited by LostServ; 22/02/05 12:42 AM.
#112199 22/02/05 12:45 AM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
tnx!!
only one more thing:
the message that i want to notice is always the same, so is it posible to make that even shorter ( so that i could write { notice $nick blah } only once) ?

#112200 22/02/05 12:46 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Ive never seen anything like it, so I doubt it.

#112201 22/02/05 12:49 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
/set %names john jake joe jamie jason joanne

on *:TEXT:*:#: if $istok(%names,$1,32) { .notice $nick blah }


Gone.
#112202 22/02/05 12:53 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
or you could do it that way, wasen't thinking about that one smile

#112203 22/02/05 12:55 AM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
that is exatcly what i was looking for! tnx! laugh

one more question:
is it posible to hide [ Notice] [ nick- noticetext] (so that i don't see that i have noticed somebody)

#112204 22/02/05 12:57 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
put a period in front of the notice

.notice

#112205 22/02/05 12:57 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
It already does that because I've silenced the notice command by prefixing it with a dot "."

If you still see a message, it might be because your script comes with a scripted /notice alias, if so, then you should specify !.notice $nick blah


Gone.
#112206 22/02/05 12:59 AM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
it works now when i added !
tnx again laugh

#112207 22/02/05 01:00 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Most welcome.


Gone.

Link Copied to Clipboard