Hi there, My name is Fightingspirit.
A friend started teaching me scripting last week and this will be my first contribution. All comments are welcome. If u feel this little script could be done better feel free to change and post. I know there are scripts like this one out there but i wanted to script something that would make running my bot and my network easier.
This is a very basic moderation script. I made this for my bot but can be used on ur mIRC script as well
commands are
!+m
!-m
and thats it.
Thanks go to my teacher Frederik
Thank u Hawkee.com for allowing us to share our scripts and snippits.
on *:TEXT:!+m*:#: {
if ($nick isop $chan) {
/mode # +m #
}
else {
msg $chan $nick $+ : O.o what are u doing
}
}
on *:TEXT:!-m*:#: {
if ($nick isop $chan) {
/mode # -m #
}
else {
msg $chan $nick $+ : O.o what are u doing.
}
}
if you want to use a trigger as " ! " I would rather use " @ " an if you really want to go as far as to use ignore as a flood pro then you could do:
on $@*:TEXT:/^@([+-]m)$/S:#: {
.ignore -cu4 $wildsite
if ($nick(#,$nick,oh)) {
mode # $regml(1)
}
else { .msg # $+($nick,:) O.o what are u doing. }
}
or if you just want to use a regular flood pro as an inc var you could do:
on $@*:TEXT:/^@([+-]m)$/S:#: {
if (!$($+(%,f,#,$wildsite),2)) {
inc -u4 $+(%,f,#,$wildsite)
if ($nick(#,$nick,oh)) {
mode # $regml(1)
}
else { .msg # $+($nick,:) O.o what are u doing. }
}
}
[b]No I am in no way telling you nor anyone else to change their code nor am I saying to do it the way I showed.
All I am doing is showing a different way to go about it that is all.[/b]
Fightingspirit, you should have took a look at iProTopia's +/- m snippet as well as the comments on that link.
Also one little thing that really is my own opinion, is the use of " ! " as a trigger command. I really don't like to use it cause it can conflict with botserv commands " if your server uses Anope " so I try to limit the use of " ! " as the start of a trigger, but to each their own really.....