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!
Huko
Voice
Posts: 18 Joined: Tue Jun 08, 2010 2:46 am
Post
by Huko » Tue Jun 08, 2010 4:25 am
hi I need a script that when I type !english it will write in the room "Please talk English" but when I typoe !english nick1, nick2, nick3
It will message 1 or more nicks and output "Please talk in English on #channel-here"
*Optional to make it a private message or a notice
Thank you
doggo
Halfop
Posts: 97 Joined: Tue Jan 05, 2010 7:53 am
Contact:
Post
by doggo » Wed Jun 09, 2010 9:02 pm
Code: Select all
# Rls: english_only.v1.0
# Date: 10/06/10
# Coded by: doggo
# Contact: a.b.inner.sanctum@gmail.com
# Channels: #alt.binaries.inner-sanctum
################################################
#settings
set the_chan "#bot-central"
set reply "PRIVMSG"
set message "Please talk English on $::the_chan thanks."
set ENtrig "!english"
#end of settings
################################################
bind pub - $::ENtrig lingo
proc lingo {nick uhost hand chan text} {
if { $text == "" } {
putquick "PRIVMSG $::the_chan :$::message"
return 1
}
set users [split $text]
set ppl "$users"
foreach name $ppl {
putquick "$::reply $name :$::message"
}
}
putlog "english_only.v1.0 by doggo"
tested and all seemed ok for me have fun....
Huko
Voice
Posts: 18 Joined: Tue Jun 08, 2010 2:46 am
Post
by Huko » Thu Jun 10, 2010 4:51 pm
That worked perfectly, thank you!
I hope you can help me with my other request too