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.

Protection Bot Request Script With Clonescanner

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

Post by r0t3n »

Found another script on another forum, i may use this one, seems better than bind pub - $botnick commands

http://selftcl.de/forum/viewtopic.php?t=114

oh well, Thanks!!
r0t3n @ #r0t3n @ Quakenet
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

:evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil:

Living upto his name again I see.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

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"
}
I just made that script, i was going to post something else, but made this, please check that it works, Thanks!!
r0t3n @ #r0t3n @ Quakenet
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Can anyone help me make a whois script in this format:

bind pub - \$whois pub_whois <-- that will be the bind, i dont know what the whois script will be.

the format i want it to be is:

Whois For [nick] :: Realname: [realname] :: Host: [host] :: Auth: [auth] :: Last Joined Channel: [last joined chan] Country: [country - IF POSSIBLE] :: Global Status: [global status/flags - i think i could make this bit] :: Channel Status: [channel status/flags - i could maybe make this too]

for the global status, i would just like Global Owner or Global Master or Global Op and same for Channel ecept Global Will Be Channel and Channel Voice aswell. Please help me make this script, or make one. Thanks! btw, i have tried to make one, it didnt work, it crashed the eggdrop :(
r0t3n @ #r0t3n @ Quakenet
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Look at this post for a hint. :wink:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Ok, that post doesnt really help me, its just userhost, i need

:: Whois for [nick] :: realname: [realname] :: Host: [host] :: Auth: [auth] :: Last Joined Chan: [chan] :: Global Status: [gstatus] :: Channel Status: [chan status] ::

Can you help, also can you check my script in one on my last posts, the $op script, Thanks!!
r0t3n @ #r0t3n @ Quakenet
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

The following RAW's may be of assistance:
301 (rfc1459) RPL_AWAY
307 (rfc1459) RPL_WHOISREGNICK
311 (rfc1459) RPL_WHOISUSER
312 (rfc1459) RPL_WHOISSERVER
313 (rfc1459) RPL_WHOISOPERATOR
315 (rfc1459) RPL_ENDOFWHO
317 (rfc1459) RPL_WHOISIDLE
318 (rfc1459) RPL_ENDOFWHOIS
319 (rfc1459) RPL_WHOISCHANNELS
335 (rfc1459) RPL_WHOISBOT
378 (rfc1459) RPL_WHOISHOST
Eample:

Code: Select all

bind raw - 315 scanc:raw
bind raw - 319 scanc:raw
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Cool, thanks for that, can you check this script, theres some errors, i dont seem to be able to find the problem.

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" 
}
Thanks!!
r0t3n @ #r0t3n @ Quakenet
Locked