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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Kemikals
Voice
Posts: 4 Joined: Thu Mar 12, 2009 9:51 am
Post
by Kemikals » Thu Mar 12, 2009 9:54 am
I have no clue how to write this
i know it's a very simple script though.
All i need it to do is if i type a command like !release (text here) it will make the eggdrop take whatever text after !release and display it in another channel of my choosing.
tomekk
Master
Posts: 255 Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:
Post
by tomekk » Thu Mar 12, 2009 11:17 am
Code: Select all
# !release cmd channels
set bcast_cmd_chans {#channel1 #channel2}
# target channel
set bcast_chan "#channel"
#############################################
bind pub -|- !release do_bcast
proc do_bcast { nick uhost hand chan arg } {
global bcast_chan bcast_cmd_chans
if {[lsearch $bcast_cmd_chans $chan] == -1} {
return
}
if {[botonchan $bcast_chan]} {
putserv "PRIVMSG $bcast_chan :$arg"
}
}
putlog "release.tcl loaded"
test it
Kemikals
Voice
Posts: 4 Joined: Thu Mar 12, 2009 9:51 am
Post
by Kemikals » Thu Mar 12, 2009 2:25 pm
you my sir
are my hero works like a charm!!!
Kemikals
Voice
Posts: 4 Joined: Thu Mar 12, 2009 9:51 am
Post
by Kemikals » Thu Mar 12, 2009 5:05 pm
thanks
Last edited by
Kemikals on Thu Mar 12, 2009 5:33 pm, edited 1 time in total.
tomekk
Master
Posts: 255 Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:
Post
by tomekk » Thu Mar 12, 2009 5:26 pm
try:
Code: Select all
namespace eval newp {
variable bcast_cmd_chans
variable bcast_chan
# !new cmd channels
set bcast_cmd_chans {#chan #chan2}
# target channel
set bcast_chan "#chan"
#############################################
bind pub -|- !new [namespace current]::do_bcast
proc ::newp::do_bcast { nick uhost hand chan arg } {
variable bcast_cmd_chans
variable bcast_chan
if {[lsearch $bcast_cmd_chans $chan] == -1} {
return
}
if {[botonchan $bcast_chan]} {
putserv "PRIVMSG $bcast_chan :$arg"
}
}
putlog "release.tcl loaded"
}
2nd:
Code: Select all
namespace eval upp {
variable bcast_cmd_chans
variable bcast_chan
# !up cmd channels
set bcast_cmd_chans {#chan #chan2}
# target channel
set bcast_chan "#chan"
#############################################
bind pub -|- !up [namespace current]::do_bcast
proc ::upp::do_bcast { nick uhost hand chan arg } {
variable bcast_cmd_chans
variable bcast_chan
if {[lsearch $bcast_cmd_chans $chan] == -1} {
return
}
if {[botonchan $bcast_chan]} {
putserv "PRIVMSG $bcast_chan :$arg"
}
}
putlog "release.tcl loaded"
}
anyway, this should be all in one script
and btw. don't tell me that script is for some warez?
Last edited by
tomekk on Thu Mar 12, 2009 5:58 pm, edited 3 times in total.
Kemikals
Voice
Posts: 4 Joined: Thu Mar 12, 2009 9:51 am
Post
by Kemikals » Thu Mar 12, 2009 5:33 pm
Thanks
and no