mIRC Homepage
Posted By: learn3r flood problem - 05/10/06 01:07 PM
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
Posted By: Riamus2 Re: flood problem - 05/10/06 01:15 PM
After the on text line, just add:

if ($nick isvo $chan || $nick isop $chan) { return }
Posted By: learn3r Re: flood problem - 05/10/06 02:04 PM
Thanks it works now...


how about auto voice when its on level 50?

on join ???
Posted By: Lpfix5 Re: flood problem - 05/10/06 07:13 PM
Quote:
After the on text line, just add:

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


Riamus2 aint it $nick isvoice? not isvo?
Posted By: xDaeMoN Re: flood problem - 05/10/06 07:44 PM
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.
Posted By: Lpfix5 Re: flood problem - 05/10/06 08:12 PM
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
Posted By: Riamus2 Re: flood problem - 05/10/06 08:50 PM
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.
Posted By: Riamus2 Re: flood problem - 05/10/06 08:54 PM
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.
Posted By: learn3r Re: flood problem - 06/10/06 01:09 AM
on @50:join:#: {
if ($nick !isvoice $chan) && ($nick !isop $chan) {
mode $chan +v $nick
}
}

---------------------------
like this?
Posted By: HaleyJ Re: flood problem - 06/10/06 01:17 AM
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
Posted By: deegee Re: flood problem - 06/10/06 03:21 AM
Or use /pvoice smile
Code:
on @50:join:#:pvoice 5 # $nick

/help /pvoice
Posted By: learn3r Re: flood problem - 06/10/06 03:39 AM
works fine tnx
any other suggestions?
Posted By: Riamus2 Re: flood problem - 07/10/06 01:28 AM
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.
Posted By: Riamus2 Re: flood problem - 07/10/06 01:30 AM
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.
Posted By: streep Re: flood problem - 18/10/06 05:22 PM
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.
© mIRC Discussion Forums