About
Community
Bad Ideas
Drugs
Ego
Erotica
Fringe
Society
Technology
register | bbs | search | rss | faq | about
meet up | add to del.icio.us | digg it
Go Back   Community > Technology > Technophiliacs & Technophiles
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Technophiliacs & Technophiles The Technophiliacs forum is for discussing any and all forms of tech and other types of social backwardness. Including discussions of strange home-brewed hardware technology. Where to get good tools. How to make fiberglass molds. Computer hardware and software technolgy, including operating systems, applications, networking, hardware, CPU's, disk drives, and other geeky things. Viruses and Artificial Life discussions. How to write HTML. End user tools discussions and support issues. Gating the Internet with other nets.

Reply
 
Thread Tools Display Modes
 #1 
Old 2002-12-27, 22:05
Forum Administrator
 
Columbus Ohio
Default More mIRC scripting.

Alright, I've been working on this one for a while now but I can't seem to get it up and running. Anybody wanna take a look at this?

code:

#ban on
on 1:ban:#:{
if ($banmask iswm $address($me,0)) {
if ($nick == $me) {
mode $chan -b $banmask
else {
if ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,2) }
kick $chan $nick
halt
}
}
}
if ($banmask iswm $address($me,3)) {
if ($nick == $me) {
mode $chan -b $banmask
else {
if ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,2) }
kick $chan $nick
halt
}
}
}
if ($banmask iswm $address($me,5)) {
if ($nick == $me) {
mode $chan -b $banmask
else {
if ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,2) }
kick $chan $nick
halt
}
}
}
if ($banmask iswm $me $+ !*@*) {
if ($nick == $me) {
mode $chan -b $banmask
else {
if ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,2) }
kick $chan $nick
halt
}
}
}
}
#ban end
menu menubar,channel {
Ban Protection
.on:/enable #ban | Ban Protection is now On
.off:/disable #ban | Ban Protection is now Off
}

 #2 
Old 2002-12-28, 02:44
Forum Administrator
 
Columbus Ohio
Default Re: More mIRC scripting.

Oh never mind, I made it work, and I made it simpler:

code:

#ban on
on 1:ban:#Zok:{
if ($nick == $me) { mode $chan -b $banmask | halt }
if ($banmask iswm $address($me,0)) {
if ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,3) | kick $chan $nick }
}
if ($banmask iswm $address($me,3)) {
if ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,3) | kick $chan $nick }
}
if ($banmask iswm $address($me,5)) {
if ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,3) | kick $chan $nick }
}
}
#ban end
menu menubar,channel {
Ban Protection
.on:/enable #ban | echo Ban Protection is now On
.off:/disable #ban | echo Ban Protection is now Off
}



[This message has been edited by Zok (edited 12-28-2002).]
 #3 
Old 2002-12-28, 02:50
Moderator
 
directly over the center of th
Default Re: More mIRC scripting.

i maybe dumb .. and well yeah i maybe dumb but what is it spoused to do ? im not that good with mirc script
 #4 
Old 2002-12-28, 03:07
Forum Administrator
 
Columbus Ohio
Default Re: More mIRC scripting.

It's a complex ban protection. When your IP is banned and you have ops, it removes the ban, deops/devoices the banner, bans the banner, and then proceedes to kick the banner.

A simple protection would only remove your ban.
 #5 
Old 2002-12-28, 17:03
Forum Administrator
 
Columbus Ohio
Default Re: More mIRC scripting.

Well now I am entirely bored and need something constructive to script. Any suggestions?
 #6 
Old 2002-12-28, 19:57
Forum Administrator
 
Columbus Ohio
Default Re: More mIRC scripting.

Oh! I made a horrible error! Don't use the above scripts, the following is correct:

code:

#ban on
on 1:ban:#Zok:{
if ($banmask iswm $address($me,0)) {
if ($nick == $me) { mode $chan -b $banmask | halt }
elseif ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,3) | kick $chan $nick }
}
if ($banmask iswm $address($me,3)) {
if ($nick == $me) { mode $chan -b $banmask | halt }
elseif ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,3) | kick $chan $nick }
}
if ($banmask iswm $address($me,5)) {
if ($nick == $me) { mode $chan -b $banmask | halt }
elseif ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,3) | kick $chan $nick }
}
if ($banmask iswm $me $+ !*@*) {
if ($nick == $me) { mode $chan -b $banmask | halt }
elseif ($me isop $chan) { mode $chan -bov+b $banmask $nick $nick $address($nick,3) | kick $chan $nick }
}
}
#ban end
menu menubar,channel {
Ban Protection
.on:/enable #ban | echo Ban Protection is now On
.off:/disable #ban | echo Ban Protection is now Off
}



The error prevented you from banning people.
 #7 
Old 2002-12-31, 04:23
d0m d0m is offline
Regular
 
Default Re: More mIRC scripting.

what language is mirc scripting called?
 #8 
Old 2002-12-31, 04:55
Forum Administrator
 
Columbus Ohio
Default Re: More mIRC scripting.

mIRC script. Too bad they couldn't have been a bit more creative..
 #9 
Old 2002-12-31, 16:53
Regular
 
Monkey Island
Default Re: More mIRC scripting.

yes imagine A program called C++ programming... I wonder what it was programmed in?
 
To the best of our knowledge, the text on this page may be freely reproduced and distributed.
 

totse.com certificate signatures
 
 
About | Community | Bad Ideas | Drugs | Ego | Erotica | Fringe | Society | Technology
Hot Topics