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.

TCL dummy needs help

Old posts that have not been replied to for several years.
Locked
M
MarlbMan
Voice
Posts: 20
Joined: Tue Apr 15, 2003 9:20 pm

TCL dummy needs help

Post by MarlbMan »

Sorry to ask, I know everyone is just as busy as I am, but could I get someone to script a very simply tcl that responds to commands in channel by notice? I am a decent mirc scripter but tcl is eluding me at the moment, I am reading all I can on it, but need to figure this one out now. Basically, I want something that, when you type a trigger in channel, it would respond via notice like:
!rules would notice to the user <This is the channel rules text line one> <This is the channel rules text line two>
!helo would notice to the user <This is the channel help text line one> <this is the channel rules text line two>

If I could get a bit of a jump start I could expand upon it from there. thanks all.

MM
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

there are at least 3 such scripts in TCL archive
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

Code: Select all

set rules "No touching"
bind pub - !rules pub:rules
proc pub:rules {nick host handle chan text} {
   global rules
   putnotc $nick $rules
}
 
expand it :)
photon?
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

next time ask in the tcl section

:D :) :( :o :-? :lol: 8) :x :evil: :cry: :oops: :P :roll: :wink:
photon?
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

putnotc $nick $rules
note that putnotc is a command taken from the "alltools.tcl" script and as such is not a default eggdrop/tcl command, it's added to all eggdrops at default but some might want to remove it for unknown reasons. If you do not use alltools.tcl then use this line to put notice to the user instead:

Code: Select all

putserv "NOTICE $nick :$rules" 
Elen sila lúmenn' omentielvo
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

/me spanks Papi

MM:

dont use pap's putserv suggestion, use puthelp instead, it has a slower queue and will potentially prevent abuse, and repercussions from strict servers.

yes i wrote this to be an ass
photon?
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

hehehe

naughty :P
Elen sila lúmenn' omentielvo
M
MarlbMan
Voice
Posts: 20
Joined: Tue Apr 15, 2003 9:20 pm

ty

Post by MarlbMan »

Thanks all... working great now... really appreciate the replies...
Locked