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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
R-WaT
Halfop
Posts: 79 Joined: Fri Jan 06, 2006 7:45 pm
Post
by R-WaT » Sun Dec 23, 2007 12:16 am
can anyone make me a script where when i type ".msgops" it will message all the "@" or people with over 200 access in channel #mouseskills. the network is on gamesurge and service is ChanServ. I would also like it post in dcc if it gets "nick Target change too fast. Please wait xx seconds."
plz let me know if im not making sense
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sun Dec 23, 2007 7:40 am
You might want to state the services command used to get the op-level and the service's reply message for that command (also the raw-numeric of the message-target).
R-WaT
Halfop
Posts: 79 Joined: Fri Jan 06, 2006 7:45 pm
Post
by R-WaT » Sun Dec 23, 2007 9:48 pm
i dont get what your saying... all i need the bot to do is reply to a command with text after it so it pms all "@"s with the text after the command..
iamdeath
Master
Posts: 323 Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:
Post
by iamdeath » Mon Dec 24, 2007 3:17 am
Code: Select all
bind msg o|o .msg msg:proc
proc msg:proc {nick host handle text} {
global botnick
if {$text == ""} { putserv "NOTICE $nick :Syntax\: .msg #chan text comes here"; return }
set thechan [lindex $text 0]
set thetext [lrange $text 1 end]
foreach i [chanlist $thechan] {
if {([isop $i $thechan]) && ($i != $botnick)} {
putserv "NOTICE $i :$thetext"
}
}
}
putlog "loaded opnotice tcl..."
The msg (in private) your bot like this:
Code: Select all
.msg #chan Hello, this is just a test msg for all of you ops.
This will send OPNOTICE to every op of your channel.
Let me know if there is any issue.
Thanks
iamdeath
Last edited by
iamdeath on Tue Dec 25, 2007 11:30 pm, edited 3 times in total.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Tue Dec 25, 2007 9:55 pm
iamdeath: Bad coding practices you have there. What happened to proper indentation for readability?
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
iamdeath
Master
Posts: 323 Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:
Post
by iamdeath » Tue Dec 25, 2007 11:29 pm
is it better
|AmDeAtH @ Undernet
Death is only the *Beginning*...
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Wed Dec 26, 2007 4:43 am
iamdeath wrote: is it better
Yup!
And Bonne et Heureuse Année
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM