mIRC Home    About    Download    Register    News    Help

Topic Options
#183920 - 23/08/07 08:15 PM Help needed
ReTr0 Offline
Self-satisified door

Registered: 15/08/07
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



Top
#183927 - 23/08/07 09:56 PM Re: Help needed [Re: ReTr0]
LonDart Offline
Vogon poet

Registered: 21/07/06
Posts: 107
Loc: Virginia USA
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

Top
#183928 - 23/08/07 10:07 PM Re: Help needed [Re: ReTr0]
deegee Offline
Fjord artisan

Registered: 16/06/06
Posts: 508
Loc: Storage
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 }
  }
}

Top