mIRC Home    About    Download    Register    News    Help

Print Thread
Help needed #183920 23/08/07 07:15 PM
Joined: Aug 2007
Posts: 3
R
ReTr0 Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Aug 2007
Posts: 3
For sometime Iíve been searching for couple of scripts but to this date can not find anything decent or the one will work properly. I have couple of tiny favours; hopefully someone out there will lend me a hand.

1). I have well over 70 bad words nicks for multiple channels, some require wild cards, can I combine notice, text, action and cctp all in one script? I would prefer something easier to add and subtract words in a jiffy. Can I have kick ban with 1 to 3 minutes. I've no problem adding words as follows:
alias bdwd { set %badwords put,words,here,seperated,by,commas

2). Since I am in over 10 channels, and when I get disconnect from server, I canít re-connect, well I can but I excess flood, for hours, till I get back and exit from most of the channels. I use timer to join 90 seconds a part, how can I tell my script to close all the open windows and start fresh upon disconnection?

Hope someone out there has a solution? Many Thanks in Advance



Re: Help needed [Re: ReTr0] #183927 23/08/07 08:56 PM
Joined: Jul 2006
Posts: 107
L
LonDart Offline
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
Quote:
I have well over 70 bad words nicks for multiple channels, some require wild cards

Simplest way to keep track of these nicks is the User List, with a specific level of your choice.
(I prefer numbered levels.) User List can contain any wildcarded mask, or even just nick.
/help levels
study event prefixes on that page too
Quote:
can I combine notice, text, action and cctp all in one script?

events have to be scripted separately, but if the commands are the same for each,
you can put the commands in an alias and just call the alias in each event.
Quote:
I would prefer something easier to add and subtract words in a jiffy.

Easier than what?
Code:
menu channel {
  BadWords
  .Add badword: set %badwords $addtok(%badwords,$?="Word to Add",44)
  .Remove badword: set %badwords $remtok(%badwords,$?="Word to Remove",1,44)
}

re flooding on re-connect...
I doubt whether the channel windows are open or not has anything to do with it.
How are you joining the channels on your original connect?


LonDart
Re: Help needed [Re: ReTr0] #183928 23/08/07 09:07 PM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Originally Posted By: ReTr0
1). I have well over 70 bad words nicks for multiple channels, some require wild cards, can I combine notice, text, action and cctp all in one script? I would prefer something easier to add and subtract words in a jiffy. Can I have kick ban with 1 to 3 minutes. I've no problem adding words as follows:
alias bdwd { set %badwords put,words,here,seperated,by,commas

If you add the words to a file (badnicks.txt)
*put*
*wor?s*
*here*
*like?so*
Code:
on *:notice:*:*:badnick.check
on *:text:*:*:badnick.check
on *:action:*:*:badnick.check
ctcp *:*:badnick.check

on *:start:{
  hmake badnicks 10
  if $file(badnicks.txt) { hload -n badnicks badnicks.txt }
}
alias -l badnick.check {
  if $hget(badnicks,$nick,1,W).data {
    echo -ag do stuff with $nick -- $iif(#,on #,privmsg)
  }
}
alias +badnick { hadd -m badnicks $ticks $replace($+(*,$$?1,*),**,*) | hsave -n badnicks badnicks.txt }

;/+badnick [word]
; Adds a word


Originally Posted By: ReTr0
2). Since I am in over 10 channels, and when I get disconnect from server, I canít re-connect, well I can but I excess flood, for hours, till I get back and exit from most of the channels. I use timer to join 90 seconds a part, how can I tell my script to close all the open windows and start fresh upon disconnection?

Try this
Code:
on *:disconnect:set -e %disconnected $addtok(%disconnected,$cid,32)
on *:connect:{
  if $istok(%disconnected,$cid,32) {
    autojoin -s
    var %i = 1
    while $chan(%i) { .timeraj $+ %i 1 $calc(%i *90) join $v1 | inc %i }
  }
}