| View previous topic :: View next topic |
| Author |
Message |
elite23q Voice
Joined: 02 Nov 2007 Posts: 4
|
Posted: Fri Nov 09, 2007 12:46 am Post subject: AMSG Script |
|
|
Can someone code me an AMSG script?
the bind being .amsg
Thanks <3 |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Nov 09, 2007 3:42 am Post subject: |
|
|
| Whats it supposed to do? |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Fri Nov 09, 2007 4:33 am Post subject: |
|
|
| 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 |
|
 |
elite23q Voice
Joined: 02 Nov 2007 Posts: 4
|
Posted: Fri Nov 09, 2007 6:01 am Post subject: |
|
|
It's supposed to spam in every channel the Bot is idling.
And not .amsg via DCCCHAT .amsg while in #channel |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Fri Nov 09, 2007 6:04 am Post subject: |
|
|
| Code: | bind pub n|- .amsg pubamsg
proc pubamsg {n u h c a} {amsg $a} |
_________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
|