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.

Send message on request

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
H
Huko
Voice
Posts: 18
Joined: Tue Jun 08, 2010 2:46 am

Send message on request

Post by Huko »

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
d
doggo
Halfop
Posts: 97
Joined: Tue Jan 05, 2010 7:53 am
Contact:

Post by doggo »

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....
H
Huko
Voice
Posts: 18
Joined: Tue Jun 08, 2010 2:46 am

Post by Huko »

That worked perfectly, thank you!

I hope you can help me with my other request too :)
Post Reply