mIRC Home    About    Download    Register    News    Help

Print Thread
#161274 05/10/06 01:07 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
on @*:TEXT:*:#: {
if (%flood2. [ $+ [ $wildsite ] ] == $null) {
set -u5 %flood2. [ $+ [ $wildsite ] ] 1
}
elseif (%flood2. [ $+ [ $wildsite ] ] >= 5) {
kick # $nick 14Do not flood in here!
unset %flood2. [ $+ [ $wildsite ] ]
}
else { inc -u5 %flood2. [ $+ [ $wildsite ] ] }
}


--------------------------------------------------------------


Can you guys make a code that won't kick voice and op's on the channel?

and repeat kick also thank you

#161275 05/10/06 01:15 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
After the on text line, just add:

if ($nick isvo $chan || $nick isop $chan) { return }


Invision Support
#Invision on irc.irchighway.net
#161276 05/10/06 02:04 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Thanks it works now...


how about auto voice when its on level 50?

on join ???


learn learn learn
#161277 05/10/06 07:13 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
After the on text line, just add:

if ($nick isvo $chan || $nick isop $chan) { return }


Riamus2 aint it $nick isvoice? not isvo?


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#161278 05/10/06 07:44 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
I think 'isvo' was used on older versions of mIRC & still works on the current version. I would prefer using the 'isvoice' since it's the one listed in the help file.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#161279 05/10/06 08:12 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
You know what during my scripting age with these new mirc versions I really thought that isvoice was odd too see but it worked i thought was different but this maybe the reason because it used to be isvo


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#161280 05/10/06 08:50 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yeah, use isvoice instead of isvo. I didn't have mIRC handy and was going from memory. isvo really makes more sense to me, but use the one that is documented because isvo could, someday, be removed.


Invision Support
#Invision on irc.irchighway.net
#161281 05/10/06 08:54 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Quote:
Thanks it works now...


how about auto voice when its on level 50?

on join ???


Code:
on @50:join:#: {
  mode $chan +v $nick
}


@ makes it only work when you are opped so you won't get an error.
50 makes it trigger only on levels 50 and higher.

Feel free to set a specific channel, or channels, or just leave it as-is, so it works on all channels. Because it requires you to be opped to do anything, it won't affect any channels that you aren't an op in, so it should be fine not to specify a channel or channels if you don't want to.


Invision Support
#Invision on irc.irchighway.net
#161282 06/10/06 01:09 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
on @50:join:#: {
if ($nick !isvoice $chan) && ($nick !isop $chan) {
mode $chan +v $nick
}
}

---------------------------
like this?

#161283 06/10/06 01:17 AM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Noone has any status on an join event so you cant use those conditions. its only after a join that a user gets his status, see the replies to my earlier post called timers where i had a similar problem.

but i guess it may work like this

on @50:JOIN:#yourchannel: /.timer 1 2 /modecheck $nick $chan
alias modecheck {
if ($1 isreg $2) {
mode $2 +v $1
}
}

cant test it as am about to fall asleep but it should work


Newbie
#161284 06/10/06 03:21 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Or use /pvoice smile
Code:
on @50:join:#:pvoice 5 # $nick

/help /pvoice

#161285 06/10/06 03:39 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
works fine tnx
any other suggestions?

#161286 07/10/06 01:28 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Quote:
on @50:join:#: {
if ($nick !isvoice $chan) && ($nick !isop $chan) {
mode $chan +v $nick
}
}


No need for the !isvoice or !isop check. When they join, they are not going to be voiced or opped yet, so it's not necessary to check.


Invision Support
#Invision on irc.irchighway.net
#161287 07/10/06 01:30 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Quote:
Noone has any status on an join event so you cant use those conditions. its only after a join that a user gets his status, see the replies to my earlier post called timers where i had a similar problem.

but i guess it may work like this

on @50:JOIN:#yourchannel: /.timer 1 2 /modecheck $nick $chan
alias modecheck {
if ($1 isreg $2) {
mode $2 +v $1
}
}

cant test it as am about to fall asleep but it should work


You could do this, but it isn't necessary. Use /pvoice if you want to avoid multiple people trying to op/voice the person, as was suggested by deegee.

Also, you don't need any /'s in scripts.


Invision Support
#Invision on irc.irchighway.net
#161288 18/10/06 05:22 PM
Joined: Oct 2006
Posts: 1
S
Mostly harmless
Offline
Mostly harmless
S
Joined: Oct 2006
Posts: 1
Hey,

I have an additional question for this script. I want it only to kick if the spammessages are all the same. So 5 of the same message in a short time.

I hope somebody can help me.


Link Copied to Clipboard