mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 65
S
sdamon Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2004
Posts: 65
(before i begin, i did do a search of the past 2 years...and didnt find any relivent topics in the first 200 replys)

the suggestion in and of itself is to be able to use identifiers (custom ones most likely) as the match text and event location of an event. Doing so in the scripting engins has GOT to be more efficent than scripting it (as show below) if just marginaly so..

on *:text:matchtext:#:{
if ($chan == $custchanlistidentifier) {
...
}
}

Last edited by sdamon; 09/09/05 09:55 AM.
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
on *:START:set %custchanlist $custchanlist
on *:text:matchtext:%custchanlist:{
...
}

You can ofcourse also change %custchanlist with timers, aliases, inside events, etc. Seems enough already?

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Try this...

on *:JOIN:$($mychanlist):echo -a HERE
on *:TEXT:*:$($mychanlist):echo -a #

alias mychanlist return #chan1,#chan2,#chan3

You can do the same for matchtext

on *:TEXT:$($mymatchtext):$($mychanlist):echo -a # - $1-
alias mymatchtext return *hello*

/help $(...)

Last edited by mIRCManiac; 09/09/05 02:15 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
As mIRCManiac shows, you need to evaluate the identifier for it to work in the event line. Including it in $( ) will allow that. laugh


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2004
Posts: 65
S
sdamon Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2004
Posts: 65
* Smacks forehead

And i KNEW that... so yeah..this would hav ebenn a good suggestion a few dozzen versions ago lol

(working to hard..too late at night...)


Link Copied to Clipboard