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.

msg all ops

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

msg all ops

Post by R-WaT »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

Post by R-WaT »

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..
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

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*...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

is it better :P
|AmDeAtH @ Undernet
Death is only the *Beginning*...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

iamdeath wrote:is it better :P
Yup! :lol:

And Bonne et Heureuse Année :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply