mIRC Home    About    Download    Register    News    Help

Print Thread
Help Script #212399 22/05/09 12:51 AM
Joined: May 2009
Posts: 8
P
Pheu Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: May 2009
Posts: 8
I want a script, that shows who enters and who leaves the room, and one that
CAPS warns about 2 times and if the person does not stop = kick.

Can you help me?

Thanks!

Brazil

Re: Help Script [Re: Pheu] #212403 22/05/09 01:13 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try searching sites like Hawkee, mIRC Scripts, mIRC.net

You're really looking for 2 scripts, one that tracks who enters and leaves the channel, and one that performs a CAPS kick/ban.

Re: Help Script [Re: RusselB] #212404 22/05/09 01:30 AM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
I made that for u try this:

Code:
on !*:JOIN:%mychan: {
  .echo $color(info) -ta The  $+ $nick $+  user has just joined the channel!
}

on !*:PART:%mychan: {
  .echo $color(info) -ta The  $+ $nick $+  user has just left the channel!
}

on *:TEXT:*:%mychan: {
  if ($len($1-) < 15) { return }
  if ($int($calc($regex($1,/[A-Z&#913;-&#937;&#916;&#934;&#940;]/g)/$len($1)*100)) > 40) {
    if (!$istok(%flood-one,$nick,32)) && (!$istok(%flood-two,$nick,32)) && (!$istok(%flood-three,$nick,32)) { .set %flood-one $addtok(%flood-one,$nick,32) }
    if ($istok(%flood-one,$nick,32)) { 
      .set %flood-one $remtok(%flood-one,$nick,32)
      .set %flood-two $addtok(%flood-two,$nick,32)
      .notice $nick Warning: Take off your CAPS, if you continue then you will be KICKED! (1/2)
    }  
    elseif ($istok(%flood-two,$nick,32)) {
      .set %flood-two $remtok(%flood-two,$nick,32)
      .set %flood-three $addtok(%flood-three,$nick,32)
      .notice $nick Warning: Take off your CAPS, if you continue then you will be KICKED! (2/2)
    }
    elseif ($istok(%flood-three,$nick,32)) {
      .set %flood-three $remtok(%flood-three,$nick,32)
      .kick $chan $nick Please Close Caps Lock..! [Too many caps 2/2]
    }
  }
}


P.S: To add your channel just use /set %mychan #yourchan

Re: Help Script [Re: RusselB] #212405 22/05/09 01:32 AM
Joined: May 2009
Posts: 8
P
Pheu Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: May 2009
Posts: 8
What name i search?

Re: Help Script [Re: westor] #212406 22/05/09 01:36 AM
Joined: May 2009
Posts: 8
P
Pheu Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: May 2009
Posts: 8
how to insert in mirc, this code!

Re: Help Script [Re: Pheu] #212407 22/05/09 01:45 AM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
OMG , just ALT+R and put it in the REMOTES then type this command!
/set %mychan #YOURCHAN

Edit: To copy the code from the board just select the hole code and use right click and select "copy"

Last edited by westor; 22/05/09 01:46 AM.
Re: Help Script [Re: westor] #212409 22/05/09 02:02 AM
Joined: May 2009
Posts: 8
P
Pheu Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: May 2009
Posts: 8
I am trying to use irc.justin.tv but it is not working.

not work.

helpppppppppp

Last edited by Pheu; 22/05/09 02:27 AM.
Re: Help Script [Re: Pheu] #212411 22/05/09 02:39 AM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
OMG man please wake up , do not post here silly things about your mIRC.

Re: Help Script [Re: westor] #212412 22/05/09 02:50 AM
Joined: May 2009
Posts: 8
P
Pheu Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: May 2009
Posts: 8
Ok

Code not working. frown

Re: Help Script [Re: Pheu] #212413 22/05/09 03:10 AM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Coding is working you make somewhere a mistake , type /help to see more informations!

Re: Help Script [Re: westor] #212414 22/05/09 03:11 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Some possibler souces of error:
- $1 (in the regex) will be only the first word, so the script won't take the whole line to calculate caps (if the first word is "I", the script will fire).

- The regex looks weird and does not work, e.g. " $regex(TEST,/[A-Z&#913;-&#937;&#916;&#934;&#940;]/g) " returns 0. Maybe a problem occured in pasting the code.

Edit: Now, here in "normal text", I do see these greek letters - but the code in code tags showed like like &#[i]916 etc and copy-pasting the code kept it that way.
Anyway, [A-Z] should be sufficient as the char class if the OP wants a caps check for english smile[/i]

Another possible problem:
You'll hit the variable length limit after a while because the variables (list of nicks) are set permanently (not for example via "set -e"). A hash table with nick (or some mask) as item and the No. of caps abuses as data could make up a good alternaitve. It would as well allow some automatic unset (e.g. after several hours)