This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

scripts!!

Old posts that have not been replied to for several years.
Locked
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

scripts!!

Post by r0t3n »

Code: Select all

bind pub * \$op op:op 
bind pub * \$deop deop:deop 

proc op:op {nick uhost handle chan text} { 
global botnick 
if {![matchattr $handle n|n $chan] && ![matchattr $handle m|m $chan] && ![matchattr $handle |o $chan]} { 
putserv "NOTICE $nick :Error: Either You Have No Access To This Command ( +o needed )" 
} 
} 
{ 
if {[matchattr $handle n|n $chan] || [matchattr $handle m|m $chan] || [matchattr $handle |o $chan]} { 
set onick [lindex [split $text] 0] 
if {![onchan $onick $chan]} { 
putserv "NOTICE $nick :Error: $onick Is Not On $chan" 
} 
} 
{ 
if {[isop $onick $chan]} { 
putserv "NOTICE $nick :Error: $onick Is Already Oped On $chan"  
} 
} 
{ 
if {[isbotnick $onick]} { 
putserv "NOTICE $nick :Nice Try, $onick Is $::botnick, You Can't Outsmart Me!!" 
} 
} 
{ 
if {onchan $onick $chan]} { 
if ![isop $onick $chan]} { 
if ![isbotnick $onick]} { 
putquick "MODE $chan +o $onick" 
putserv "NOTICE $onick :Hello $onick, You Was Oped On $chan By $nick, Please Not Protection Is On By #ShoVe So Dont Do Anything Stupid!!" 
putserv "NOTICE $nick :Successful: $onick Was Oped On $chan" 
} 

proc deop:deop {nick uhost handle chan text} { 
global botnick 
if {![matchattr $handle n|n $chan] && ![matchattr $handle m|m $chan] && ![matchattr $handle |o $chan]} { 
putserv "NOTICE $nick :Error: You Have No Access To This Command ( +o needed )" 
} 
} 
{ 
if {[matchattr $handle n|n $chan] || [matchattr $handle m|m $chan] || [matchattr $handle |o $chan]} { 
set deopnick [lindex [split $text] 0] 
if {![onchan $deopnick $chan]} { 
putserv "NOTICE $nick :Error: $deopnick Is Not On $chan" 
} else { 
if {![isop $deopnick $chan]} { 
putserv "NOTICE $nick :Error: $deopnick Is Already De-oped On $chan"  
} 
} 
{ 
if {[isbotnick $onick]} { 
putserv "NOTICE $nick :Nice Try, $deopnick Is $::botnick, You Can't Outsmart Me!!" 
} 
} 
{ 
if {onchan $deopnick $chan]} { 
if [isop $deopnick $chan]} { 
if ![isbotnick $deopnick]} { 
putquick "MODE $chan +o $deopnick" 
putserv "NOTICE $onick :Hello $deopnick, You Was Oped On $chan By $nick, Please Not Protection Is On By #ShoVe So Dont Do Anything Stupid!!" 
putserv "NOTICE $nick :Successful: $deopnick Was Oped On $chan" 
}
Theres a couple of errors, i cant find the problem ;p

Please help!!
Thanks in advance
r0t3n @ #r0t3n @ Quakenet
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

a error description and/or error msg would be nice
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Hmm, i think it was a bracket error ;p a bracket error or a close brace or something like that.

Thanks in advance!!
r0t3n @ #r0t3n @ Quakenet
Locked