1.)For an on input event, where I $replace words.
var %a = $1-
while ($findtokcs(%a,i,32)) %a = $puttok(%a,I,$ifmatch,32) | while ($findtokcs(%a,id,32)) %a = $puttok(%a,I'd,$ifmatch,32) | while ($findtokcs(%a,im,32)) %a = $puttok(%a,I'm,$ifmatch,32)
This replaces 'i' with 'I', 'id' with "I'd" and etc.
How can I format it into one code without using the | while | while etc. Just basically combine the whole thing.
2.)I have a cussword scriptl which looks like this.
if ($istok($1-,cussword1,32) == $true) {
/ban 30 secs
if ($istok($1-,cussword2,32) == $true) {
/ban 60 secs
Then,
if ($istok($1-,cussword1 cussword2,32) == $true) {
/ban 90 secs
Notice that I had to manually type in the added ban length, 60 + 30 secs = 90 secs.
But, I have 9 cussword with different ban lengths, so how I be able to have mirc add each individual cussword once?
With 9 different cusswords, one can say any of the 9, 2 of the 9, 3 of the 9, and up to 9 of the 9.
So I have like, 9! combinations, or 362,880 different ways. Clearly a shortcut is what I'd like.
Basically what I need is to set a variable of ban secs per word and if all are said in a $1- text mirc will add up the bans secs, but only counting the same cussword once.
3.)I have a seen script. For on text event,
write -w" [ $nick ] $+ :*" seen.txt $nick $+ : $+ [ $ctime ] $+ : $+ [ $chan ] $+ :saying " $+ [ $1- ] $+ "
And the event to trigger,
%temp = $read(seen.txt,w,%seennick $+ :* )
That returns the last line of the user in a !seen nick.
How would i go about finding the second or third last seen text? I have tried $calc($readn +1) and no luck.
4.)Centisecond timestamp, for on start event.
/.timercentisecond -om 0 1 .timestamp -f $!+([mmmm dd yyyy dddd hh:nn:ss:,$mid($ticks,-3,2) TT,])
But using $ticks is a bad idea, for $ticks does not start at 000 centiseconds.
Although this timestamp is good to determine the centisecond from one log to another (for as good as mIRC's timers go), they are not actual centiseconds of time.
What the means is the centisecond timestamp of the same second could decrease, rather than increase.
5.)For the raw event of /mode # b, where it lists the channel bans, it goes like
$banmask1 set by $nick at $time ($duration)
$banmask2 set by $nick at $time ($duration)
$banmask3 set by $nick at $time ($duration)
I would like to add a $ibl(#,0) to return the total number of bans. Is it possible via an /echo -s Channel bans of $2 $ibl($2,0), and then list the bans?
So instead,
Channel bans of #: 3
$banmask1 set by $nick at $time ($duration)
$banmask2 set by $nick at $time ($duration)
$banmask3 set by $nick at $time ($duration)
6.)I have a way to add up the total nicks for all the channels you are in per network, via hash tables. However, does anyone have a method where you script to add up the total users in all the channels you are in, and subtract the users in common channels? That's so you don't add up the same person more than once in common channels.
Thanks in advance.., for anything.