Aeron Posted November 13, 2004 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 "Never argue with an idiot. They bring you down to their level and beat you with experience." "Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."
Oli Posted November 13, 2004 Posted November 13, 2004 HA.. so simple Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Aeron Posted November 13, 2004 Author Posted November 13, 2004 HA.. so simple i never knew that command & event existed "Never argue with an idiot. They bring you down to their level and beat you with experience." "Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."
Harry Posted November 13, 2004 Posted November 13, 2004 Someone didn't read my msg's I allready pointed you at signalling in 2.00x
DJ GTA Posted November 14, 2004 Posted November 14, 2004 I don't get it...... Sig is Missing...If found call #1-800-Sig-Find Thanks Do You Cahooo?
MeanpantheR Posted November 14, 2004 Posted November 14, 2004 n1 Aeron dj gta wut dont u get? MTA Server Hosting (pm me for details!) VCES / SAES Clan Member - VCES.net
Aeron Posted November 14, 2004 Author 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. "Never argue with an idiot. They bring you down to their level and beat you with experience." "Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."
Disaster Posted November 18, 2004 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 "Be Shapeless like water If You put water in the cup it becomes the cup; you put water in the bottle it becomes the bottle; you put it in the teapot it becomes the teapot. Water can flow, or it can crash. Be water my friend." -Bruce Lee
Aeron Posted November 20, 2004 Author 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) "Never argue with an idiot. They bring you down to their level and beat you with experience." "Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."
MAD_BOY Posted November 20, 2004 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 Official B.L.A.S.T.Addict [VCP] forever
Darkwolf Posted November 24, 2004 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!
MrJax Posted November 24, 2004 Posted November 24, 2004 be a dear and paste the 1st 2 lines of ur script in here
Darkwolf Posted November 24, 2004 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)
Oli Posted November 24, 2004 Posted November 24, 2004 on *:SIGNAL:mta.join:{ mta.msg $1 $2 $readini(bjack.ini,server,welcome) try that Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Oli Posted November 24, 2004 Posted November 24, 2004 ok i sorted the poor guy out Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Recommended Posts