mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
if i have an on text, on notice and on action part in a script that just do the same thing is there a way to do it all together rather than have 3 on *'s ?

hope you get what i mean

Joined: Jul 2006
Posts: 4,144
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
Use an alias to do your job, and just call it in your event, here is an exemple :

Code:
on *:text:*:#:dojob $nick $chan $1-
on *:action:*:#:dojob $nick $chan $1-
on *:notice:*:#:dojob $nick $chan $1-

alias dojob {
;$1 is the nick
;$2 is the channel
;$3 is the text
...
} 

Last edited by Wims; 09/11/08 06:26 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
thanks wims


Link Copied to Clipboard