@Jethro
Why would you use $regml in this case? It is just an extra ~20 ticks every time. All you need is to add ?:'s to the matches (to make them not be held in $regml(); you could just remove the ()s completely) and use $1- instead of your $+($regml(1),$regml(2)) $2.
@Jethro_
jaytea can confirm that Wiz126 is a msl wiz :). You can talk to him about it #msl@irc.swiftirc.net.
Wiz126 has a msl code editor in the making. If i find the link i will post.
Sorry for being off topic.
Matcou
commented on an Image, VampIRC - Aug 15, 2011
You also need to keep in mind that this will serve no purpose if the user has private or secret or whatever on. Nothing you can do though, so good little snippet. I recommend having an on load event that will let the user select which version they want and then have one raw event that outputs depending on the decision on load.
@SReject
I believe the channel message should go before the goto; as you have it now the first message will never trigger because the goto skips that line.
@blackvenom666
You left periods in the if statements.
Also, do not use on *:TEXT:*:#:{ because it will always trigger and check the if statement, overhead which is not needed.
I believe you are missing a closing bracket.
I also do not think the "%random == N." should have the period.
The way your on text is set up right now will trigger the script if "!rand" is anywhere in the message. If you want it to trigger on the message "!rand" only then remove the asterisks (they are wildcards)
You can optimize your code in many different ways, one being the use of text files (.txt) and the $read() function. Even if you do not use it for this specific snippet, it is good to know (/help $read).
Off topic: you mispelled appearance in your code.
Edit: just realized your case 15 will message #kirby. I believe you meant to put $chan