mIRC Homepage

Scripts not responding

Posted By: lassyakjedi

Scripts not responding - 26/07/10 03:38 PM

Hi guys,
I have a funny little problem with my mirc(i think)
When eve i add new scripts to the script editor ,some scripts dont work.
So i was wondering is there any particular way of adding scripts to the script editor?
Example:
on *:TEXT:!calc *:#: msg $chan $nick $+ : The answer is $calc($2-)

Next i add
ON *:TEXT:bye everyone:#: {
msg $chan cya $nick ^^
}

Now when i add the second one the !calc script dosn't respond frown

Posted By: FroggieDaFrog

Re: Scripts not responding - 26/07/10 04:31 PM

open the scripts editor, click file -> click "new" -> paste new code in fresh editbox, click ok

laugh
Posted By: 5618

Re: Scripts not responding - 26/07/10 04:34 PM

Those two on TEXT events should work perfectly fine, since their matchtext sections do not overlap.
If you would do something like:
Code:
on *:TEXT:hello *:#: command
on *:TEXT:hello people:#: command
...then the second one wouldn't trigger since it would already be dealt with by the first.

1) make sure you don't have any scripts loaded that already respond to your new script's matchtext
2) make sure all scripts are aligned properly (all { } and match up for instance)
3) make sure your matchtext is correct (e.g. don't you need wildcards, is the person triggering the script perhaps using colour/bold)
Posted By: lassyakjedi

Re: Scripts not responding - 26/07/10 04:49 PM

Hey thanks smile
i tried loading the scripts in a new script editor window and worked perfectly fine.
Also, can we have have 2 script editing windows loaded at the same time ,so that all the scripts in the first window can carry on running as usual?
Posted By: 5618

Re: Scripts not responding - 26/07/10 05:47 PM

You cannot have two script window open at the same time.
However, "can carry on running as usual" doesn't really apply, I think.
Script changes do not take effect until you press the Ok button or until you switch over to another tab in the editor window.
Posted By: argv0

Re: Scripts not responding - 26/07/10 06:34 PM

It's not necessary to press "Ok" and close the editor to effect changes. You can also hit Ctrl-s (File -> Save) to save the file, which will immediately update mIRC without closing the editor.
Posted By: sparta

Re: Scripts not responding - 27/07/10 02:28 PM

Why not use:
Code:
on *:text:*:#: {
 if ($1 == word1) { do stuff }
 elseif ($1 == word2) { do stuff }
 elseif ($1 == word3) { do stuff }
}

This way you only need 1 on text event for all words you want to add.
Posted By: lassyakjedi

Re: Scripts not responding - 31/07/10 05:25 AM

Originally Posted By: argv0
It's not necessary to press "Ok" and close the editor to effect changes. You can also hit Ctrl-s (File -> Save) to save the file, which will immediately update mIRC without closing the editor.

Hmm i thought only after you press 'ok' your scripts will work?
Posted By: Collective

Re: Scripts not responding - 31/07/10 05:28 AM

There are a number of ways to make mIRC run newly-entered scripts. Ctrl+S, Ctrl+H (Check Brackets) and toggling between tabs/files all work.
© 2020 mIRC Discussion Forums