mIRC Home    About    Download    Register    News    Help

Print Thread
$identifiers as matchtext or event location #129773 09/09/05 09:54 AM
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.
Re: $identifiers as matchtext or event location #129774 09/09/05 11:43 AM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
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?

Re: $identifiers as matchtext or event location #129775 09/09/05 01:58 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
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.
Re: $identifiers as matchtext or event location #129776 09/09/05 02:00 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
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
Re: $identifiers as matchtext or event location #129777 11/09/05 05:20 AM
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...)