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 

AMSG Script

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


Joined: 02 Nov 2007
Posts: 4

PostPosted: Fri Nov 09, 2007 12:46 am    Post subject: AMSG Script Reply with quote

Can someone code me an AMSG script?

the bind being .amsg

Thanks Smile <3
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Nov 09, 2007 3:42 am    Post subject: Reply with quote

Whats it supposed to do?
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Fri Nov 09, 2007 4:33 am    Post subject: Reply with quote

rosc2112 wrote:
Whats it supposed to do?

Something like this, I guess:
Code:
# If your network supports multiple targets for PRIVMSG, use this one:
set amsg_max_targets 6
proc amsg msg {
   set m $::amsg_max_targets
   set t {}
   foreach c [channels] {
      if {[botonchan $c]&&[llength [lappend t $c]]==$m} {
         puthelp "PRIVMSG [join $t ","] :$msg"
         set t {}
      }
   }
   if {[llength $t]} {
      puthelp "PRIVMSG [join $t ","] :$msg"
   }
}

# if it doesn't, use this (slower):
proc amsg msg {
   foreach c [channels] {
      if {[botonchan $c]} {
         puthelp "PRIVMSG $c :$msg"
      }
   }
}

# dcc interface to the amsg proc
bind dcc n|- amsg dccamsg
proc dccamsg {h i a} {amsg $a}

(not tested)
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
elite23q
Voice


Joined: 02 Nov 2007
Posts: 4

PostPosted: Fri Nov 09, 2007 6:01 am    Post subject: Reply with quote

It's supposed to spam in every channel the Bot is idling.

And not .amsg via DCCCHAT .amsg while in #channel
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Fri Nov 09, 2007 6:04 am    Post subject: Reply with quote

Code:
bind pub n|- .amsg pubamsg
proc pubamsg {n u h c a} {amsg $a}

_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
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