Aeron Posted November 13, 2004 Share Posted November 13, 2004 I found a way to do multiple scripts: SignalsSignals are simple way of triggering signal events in multiple scripts at the same time. /signal [-n] [parameters] The signal command allows you to trigger signal events in all scripts that listen for signals. By default the signal is triggered after all current scripts have finished executing. You can however use -n to make the script trigger immediately. on *:SIGNAL:name:command The on signal event triggers if a script has used the /signal command to send a signal to all scripts. The signal name can contain wildcards. The $signal identifier returns the signal name that caused the signal event to trigger. The $1- identifier returns the parameters that were specified in the /signal command. Note: The script that called /signal is triggered first, and then all other scripts are triggered. I found it in the mIRC help file after i read a bug report about it on http://www.mirc.com . I gonna apply it on MTA:mA This means you can have the same event in 2 scripts Example: Script1.mrc: on *:SIGNAL:mta.command: { echo This event gets triggerd on the previous 'alias mta.command' } Script2.mrc: on *:SIGNAL:mta.command: { echo This event also } on *:SIGNAL:mta.command: { echo However this one NOT because it only triggers the FIRST one. } Things to do to get scripts working in 3.17: 1. Change all the 'alias mta.* {' into 'on *:SIGNAL:mta.*:{' 2. Wait 3. Done ! Tell me what ya think Link to comment
Aeron Posted November 13, 2004 Author Share Posted November 13, 2004 HA.. so simple i never knew that command & event existed Link to comment
andeh Posted November 13, 2004 Share Posted November 13, 2004 cool, looking forward to next MTAMA Link to comment
Harry Posted November 13, 2004 Share Posted November 13, 2004 Someone didn't read my msg's I allready pointed you at signalling in 2.00x Link to comment
MeanpantheR Posted November 14, 2004 Share Posted November 14, 2004 n1 Aeron dj gta wut dont u get? Link to comment
Aeron Posted November 14, 2004 Author Share Posted November 14, 2004 Someone didn't read my msg's I allready pointed you at signalling in 2.00x You did ? :-\ must have missed that. Link to comment
Disaster Posted November 18, 2004 Share Posted November 18, 2004 (edited) I already knew that! been doing that since september! Anyways if you want to have the "on *:signal:mta.* {" support on 3.16 without waiting for 3.17 add this into your script: alias mta.action .signal mta.action $1-alias mta.admin .signal mta.admin $1- alias mta.admin.action .signal mta.admin.action $1- alias mta.admin.pm .signal mta.admin.pm $1- alias mta.command .signal mta.command $1- alias mta.connect .signal mta.connect $1- alias mta.disconnect .signal mta.disconnect $1- alias mta.enter .signal mta.enter $1- alias mta.event .signal mta.event $1- alias mta.exit .signal mta.exit $1- alias mta.fire .signal mta.fire $1- alias mta.join .signal mta.join $1- alias mta.kill .signal mta.kill $1- alias mta.part .signal mta.part $1- alias mta.pm .signal mta.pm $1- alias mta.spawn .signal mta.spawn $1- alias mta.start .signal mta.start $1- alias mta.text .signal mta.text $1- alias mta.quit .signal mta.quit $1- There! Instant Signal support Edited November 20, 2004 by Guest Link to comment
Aeron Posted November 20, 2004 Author Share Posted November 20, 2004 CONVERSION FOR SCRIPTS TO WORK WITH MTA:mA 3.17: http://home.deds.nl/~aeron/?conversion.html http://home.deds.nl/~aeron/?conversion.html http://home.deds.nl/~aeron/?conversion.html http://home.deds.nl/~aeron/?conversion.html http://home.deds.nl/~aeron/?conversion.html http://home.deds.nl/~aeron/?conversion.html (Let's hope I save alot n00b Q's with that) Link to comment
MAD_BOY Posted November 20, 2004 Share Posted November 20, 2004 so eh... how to convert the scripts? /me runs anyway, good to see that, too bad i don't use more than 1 script ;P Link to comment
Darkwolf Posted November 24, 2004 Share Posted November 24, 2004 I am having serious problems with 3.17 unfortunately! * /1: not connected to server (line 2, bjack2.mrc) it says this but however my $1 is in all commands that it is neccessary for. Sometimes the script works sometimes it shows an error I think MIRC thinks that it is not connected because it is not physically connected to a chatroom perhaps if sumone cud code a MTA:MA that allows MIRC to connect to a server via the connect button used for accessing chatrooms! Link to comment
MrJax Posted November 24, 2004 Share Posted November 24, 2004 be a dear and paste the 1st 2 lines of ur script in here Link to comment
Darkwolf Posted November 24, 2004 Share Posted November 24, 2004 These are the 1st two lines of my script on *:SIGNAL:mta.join: { mta.msg $1 $2 $readini(bjack.ini,server,welcome) Link to comment
Oli Posted November 24, 2004 Share Posted November 24, 2004 on *:SIGNAL:mta.join:{ mta.msg $1 $2 $readini(bjack.ini,server,welcome) try that Link to comment
Darkwolf Posted November 24, 2004 Share Posted November 24, 2004 I still have same error! Link to comment
Oli Posted November 24, 2004 Share Posted November 24, 2004 ok i sorted the poor guy out Link to comment
Recommended Posts