03-22-2017, 23:12 +0100
CyBex  05-24-2005, 01:52   | [msl/TCL] Basic introduction Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da


Member since 01/2004
260 Posts
Location: Berlin
Quote by "thommey":
bind pub - !hello pub_hello
proc pub_hello {nick host hand chan text} { putmsg $chan "Hello, $nick" }

mIRC Scripting:
on *:TEXT:!hello:#:pub_hello $nick $chan
alias pub_hello { msg $2 Hello, $1 }

  • pub: The event which triggers that bind. pub= channel message; msg= private message to the bot; notc = notice .... (See: http://tclhelp.net/eggdrop Chapter 11/A)
  • -: Necessary access level on the bot for a user to use it. n = owner, m = master, |m = channel master, o|o = global op or channel op, - = everyone (but ignored users <- defined by config)
  • !hello: The command. Does not support wildcards when using type "pub".
  • pub_hello: The procedure name to trigger. Be careful not to overwrite tcl's defaults (join, ...)
  • putmsg $chan "Hello, $nick": The code for it. putmsg sends a message to a channel/nickname. You need quotes around the text!
  • {nick host hand chan text}: The variable names for arguments... in mIRC Scripting those are static $nick $chan $1- ... you cannot change them. In TCL you have to define them. first one contains the nickname, second one the host... you can look that up for all different bind types on http://tclhelp.net/eggdrop (Chapter 11/A) - try to find out for "bind msg" and check, if you could change that procedure for /msg bot !hello

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
This post was edited 3 times, last on 12-23-2009, 23:30 by thommey
BouBBIN  05-24-2005, 13:00   MSN  Homepage


Member since 06/2004
3 Posts
Location: Finland, Espoo

ON *:TEXT:!hello:#: { pub_hello }
alias pub_hello { msg $chan Hello, $nick }

Wherever you go, there you are.
thommey  05-24-2005, 22:49   Jabber
Member since 03/2004
62 Posts
correct, I've corrected it
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen