Another note, if you use this snippet on chat.frostwire.com or outkast.ignorelist.com be sure to change the triggers, so there's no interference with my bot.
As posted above the percentage alias does not work.
I could see problems and obvious ways to shorten it before I ever copy and tested it. As a matter of fact, I never tested the whole snippet. I read it, copied and tested what I saw to fix and improve, and posted back my suggestions. There may still be other issues other that what I saw quickly and replied to. The first post I didn't put the {brackets} because I never bothered to test that simple line. The percentage alias was the only part I actually copy and tested and edited inside the mIRC editor, this is probably a common approach for the dozen or so members that read new postings.
Simple as that. No haha, no lol.
if ($2 == 366) { if (%kabus) && (!%kick) .KickerJef $sock(*,%sockjef) }
if ($2 == 482) { if (!%kick) { %kick = 1 } }
Linux CLI Shell Login script that displays various system and user statistics after sign-in validation. Additionally a call to a thin RSS webpage gives basic two day weather info within the same data stream. This weather can be set to display the weather at the server location as default with option for individual users setting a dot file in $HOME to provide their own personal weather forcast. Also, this user configurable dot file can store several variables to toggle off a few info lines for a more compact view.
NOTE: Requires installation of curl
WorldDMT
Btw, should have been $($+($,%bomb.color),2) but still wont work
because after tokenize $1 will always == red
Would need a local variable to make it work.
The funny thing about the original code is that if you said anything other than one of the five colors then it would turn off the bomb timer. I guess it's like in 'War Games', the only winning move is not to play.
Good job Napa.
I'm just gonna restate that as the total script and make use of .timer -e
and eliminate one of the set variables. Also, need ops to use kick command.
Because the event is * $ulevel will return user level 1 no matter what the user level of $nick. The help file is vague on $ulevel. You must use $level($fulladdress). Also I would not tokenize until after the level match. Also maybe require two words to trigger.
SnoooP & irchainscriptz
Correct, that is the 3rd laptop in my homemade 'server shelf'.
I had the wires together before but I had to make some changes.
I may get some of those velcro tie wraps soon.
mIRC used to (maybe still does) if it is unregistered reset the mirc.ini file some time after the 30 day trial period had ended. It did not delete scripts but it would appear as if it did since they would be unloaded after the reset. Also, after the reset all color settings would return to default settings. Maybe this is what you have experienced.
You may not really need this script. It is best used with custom pop-ups and response type events when you need to make sure the first word is capitalized for instance if you begin a sentence with a nickname (some people don't capitalize their nick).
There may be other occasional uses.
usage: $caps(string of text or $nick or $1 etc)
Example: Friend Pop-up:say $caps($1) is my friend!
(This would insure that any nick you selected would appear capitalized
regardless if that persons nick began with a capital letter.)
To easily add the alias to your alias section you can simply
enter in mIRC editbox => /alias caps return $regsubex($1-,/^(.)/S,$upper(\t))
To test you could
enter in editbox => //echo $caps(test first letter of first word is capitalized.)
In actual practice it would not be necessary to send the whole line to $caps just whatever word needed to be capitalized. Also, there would be no reason to use it for 'static' words as you could simply type those in with the caps already in place.
On these small, stand alone aliases it's best to NOT use the alias word
and add it into the alias section of your mirc client. Typically we tend
to post it with the alias word simply to make it obvious to the most
casual observer that it is in fact an alias. On more elaborate scripts
with on events that require a few aliases just for its use, by preceeding
the alias with the word alias it can be kept with its parents/dependents
in one script file and loaded into the remote section of the script editor
for easier reading, modifications, and troubleshooting.
Please consult your mirc help files under alias section and after that if
you still have questions feel free to return here for more help.
The @ replaces the test for if you have ops.
No need to test if $nick is in channel because
he triggered the script in channel. No need to
check if $nick isop # if anyone can change topic.
Your dynamic %topic variable needs work.
Does not really change the channel topic just sorta
parrots what someone else just posted to channel
as an action.
Global/set variables being set and unset for every channel message is a bad idea. Too many disk writes, really bad news on an SSD. This would be better done using hash.
@loves.enough I sent you the script with brackets fixed.
Look up at top for your inbox.
You can private message me through here (top right in user info under contacts). Your best bet for help is in forums under script request.
Quote
User levels would prevent this from happening.