egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

msg all ops

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Sun Dec 23, 2007 12:16 am    Post subject: msg all ops Reply with quote

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
Back to top
View user's profile Send private message AIM Address
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Dec 23, 2007 7:40 am    Post subject: Reply with quote

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).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Sun Dec 23, 2007 9:48 pm    Post subject: Reply with quote

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..
Back to top
View user's profile Send private message AIM Address
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Mon Dec 24, 2007 3:17 am    Post subject: Reply with quote

Code:
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:
.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
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...


Last edited by iamdeath on Tue Dec 25, 2007 11:30 pm; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Dec 25, 2007 9:55 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Tue Dec 25, 2007 11:29 pm    Post subject: Reply with quote

is it better Razz
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Dec 26, 2007 4:43 am    Post subject: Reply with quote

iamdeath wrote:
is it better Razz

Yup! Laughing

And Bonne et Heureuse Année Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber