Done. New theme here. Read the directions if you'd truly like it to look like mine
Actually, if someone would like, I'll post my newest theme, and it's rather different than the past. It's monospaced and more personalized to suit me, however, if anyone would like, I will. Picture here.
I just wish this would actually be a snippet instead of all his scripts. Also, if this is a part of a theme, I wish it actually contained most of the triggers. On the other hand, this guy has been banned from various networks for child porn distribution/malicious scripts, therefore I deem him untrustworthy. But, it seems fine as of july 12th
I'm telling him to try and figure out what my regex means while using that site. It is NOT easy to manage through it, and it is NOT easy for people just learning regex to use. If you're one of the 3% who can honestly learn better from reading than you could from looking at examples and trying them yourself, good for you..But other than that? No, majority of us don't learn that way. Since this is a beginning script, I'm assuming he's beginning mIRC fairly recently. In which case the best method for learning a new language is through looking at other scripts, examples, and trying them out/playing with it. Could I be wrong? Yes. Am I most likely wrong? No. Like I said, it's how a majority of others learn and remember.
He suggested you use regex, not ask him for the finished script with it in -.-
http://www.regular-expressions.info/quickstart.html
Type into mirc:
/help $regex
/help $regml (Youll need it later on)
and example:
if ($regex($1-,/.+ $me .+/i)) {
}
That will make sure that whatever is said only matches your name with spaces around it. You might want to allow for other characters like "s,.!" etc. I HIGHLY recommend you entirely disregard that. mIRC's help function doesn't cover much of regex. regular-expressions.info isn't very user-friendly and basically hard to read/learn from unless you know most of it already. I recommend just looking at other examples and trying things out.
For example,
/(?<!mi)grant(?!ed|ing|o)/Si
Try figuring what that will and will not match using regular-expressions.info ...
on &^*:ACTION:*:#: {
echo $color(Action) -mt $target » $stat($nick,$chan) $nick $1-
haltdef }
Just.. ugly random placement of brackets, not the "clean" way to code it. And you'd need to use $rawmsg in order to check if it's been sent to the channel ops via /msg @#channel Hello! For example, I'll grab part of my own theme...
on ^*:ACTION:*:#:{
haltdef
echo -tm $chan ⁞ 13› 7( $+ $ranick($nick,$chan) $+ 14 $+ $nick $+ $iif($left($gettok($rawmsg,3,32),1) isin @%+,7 $+ $chr(40) $+ $colo($v1) $+ 7 $+ $chr(41)) $+ 7) $1-
}
Your snippet will be deleted if you break any of the following rules:
* Snippet needs to be tested and functional.
* Introduction must describe what the snippet does and how it is used.
* At least 25% of the code must be written by you.
* If you used somebody else's snippet you must include a URL to the original.
* You may not post an updated snippet separately, you need to edit your first post.
o.. dats what you see before posting a snippet
Perhaps you could take a picture instead of pasting lines, as it isn't too easy.
Here's an example of mine...Unless of course, this looks better to you.
4⁞⁻⁻⁻⁻⁻⁻⁻⁻⁻14/Whois15 Grant- 10(Grant10)4⁻⁻⁻⁻⁻⁻⁻⁻⁻
4⁞ 14Address4:15 ~Gr14@15nt.it.cx
4⁞ 14Channels4:15 4@15#tezz 4@15#phil 4@15#Network 4@15#dsp 4@15#dean- 4@15#carrots 4@15#grant 8%15#Stewie-O 12+15#mw 12+15#gaming #rshelp #msl #java #IRC
4⁞ 14Server4:15 *.SwiftIRC.net 10(15SwiftIRC network10)
4⁞ 14Identified
4⁞ 14Idle4:15 15m 27s
4⁞ 14Sign-on4:15 2d 9h 6m 3s 10(15August 27th 4:11am10)
4⁞__
If you're going to use dialog -x in both if statements, why both? and if you have the target as 2,3 - you don't really need a if/if, if/else would be fine.. and you never need to use / in remotes...
on *:DIALOG:PM:SCLICK:2,3:{
dialog -x PM PM
if ($did == 2) {
query %pmnick PM Accepted!
}
else {
msg %pmnick I am sorry %pmnick $+ . I have chosen to deny your PM. If you continue to try to PM me I will /ignore you. Have a nice day!
.close -m %pmnick
}
}
.timer 1 16 /kick $nick 12,1Next time don't be such a dumbass6,1 $nick
.timer 1 16 /kick $chan $nick 12,1Next time don't be such a dumbass6,1 $nick
Ok, troll time. Why such a pointless spammy script?.. I understand maybe three lines every minute or something, but 8 messages in 14 seconds would be rather annoying.. You'd probably want to add spam protection, what would happen if I typed !spinthat four times within a second? That means you'd attempt to send 32 messages in 14 seconds, or 2-3 messages a second..
Note: it's been almost a year since I've commented on this theme. Would anyone like a completely different theme? Also, I use mIRC 7.1
Picture: http://img812.imageshack.us/img812/1456/themec.jpg
If you're going to use regex, at least fucking use it right.. And by the way kid, you can't bash someone if you don't know regex yourself. For one, $me won't evaluate. Two, $strip is unneccessary. Using /Si would do the same. And you didn't even open it, so here's what your failure of a regex should look like, and it wouldn't even work still!
on *:TEXT:*:#: {
if ($regex($1-,/$me|Word|Word2|Word3/Si)) { blah }
}