mIRC Home    About    Download    Register    News    Help

Print Thread
#123129 20/06/05 02:13 PM
Joined: Apr 2005
Posts: 111
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 111
on 1:join:#: { enable #test }

#test on
echo -a 4test
#test end

its wright?

#123130 20/06/05 03:56 PM
Joined: Jun 2005
Posts: 18
Pikka bird
Offline
Pikka bird
Joined: Jun 2005
Posts: 18
i dunno what u want to do with that script
u better do this way
Code:
on 1:join:#: {
 echo -a 4test
}


just the only iMage
#123131 20/06/05 05:15 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Quote:
on 1:join:#: { enable #test }

#test on
echo -a 4test
#test end

its wright?


Code:
#test on
on 1:join:#: { echo 4 -a test }
#test end

You would use /enable #test to turn it on and /disable #test to turn it off

#123132 20/06/05 09:29 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
on 1:join:#blah: { enable #test }
#test on
alias test echo -a TEST GROUP ON
#test end
alias test echo -a TEST GROUP OFF


you can amagine a GROUP is like a script file, if its OFF (disabled) its unloaded, if its ON (enabled) its loaded.

* example assumes you are in no channels on a server.

/test
TEST GROUP OFF
/join #blah
/test
TEST GROUP ON

Of course you dont just replace alias this way (or maybe at all), but rather you might have code thats only ment to be done for that channel, like ON *:TEXT:*:#blah:{ some would say if has the channel in the on text then you dont need the group statment, others would say, good value! for freeing mirc from even having to do the channel name comparisions.
Of course GROUPS have nothing to do with channels, u used the on join so i related it to usage for a channel.


Link Copied to Clipboard