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.

i think im in the right place! need script help

Help for those learning Tcl or writing their own scripts.
Post Reply
I
IRC_MAC
Voice
Posts: 18
Joined: Sat Dec 13, 2008 7:52 pm

i think im in the right place! need script help

Post by IRC_MAC »

I am requested by my group to write a tcl script for our eggdrop bot. i was wondering? where do i start and what do i start reading? I need this bot to either do alot of things or make lots of bots, I dont know. i never wrote anything like this before. so what you say guys? can you help me? should i tel you what kind of tcl sripts i need. so you know what i have to read? or are all commands pretty basic and straight forward? where do i get a list of all the commands for tcl scripting? am i even asking the right questions? i told you i need help!!
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

I agree with incith. Much research using the likes of Google will be better in getting you started than a minimalistic answer we could provide here. Nonetheless, you will need the following things :-

1. A reference page for core Tcl, as follows assuming tcl8.4 :-

http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm

2. A reference page for Eggdrop Tcl, as follows assuming eggdrop1.6.19 :-

http://www.eggheads.org/support/egghtml ... mands.html

3. A competent text editor (I advise avoiding notepad or wordpad if you are working in windows) :-

http://www.editpadpro.com/editpadlite.html
http://www.activestate.com/komodo_edit/

Both are free. The former would be a good place to start but is only a text editor which offers no help with syntax. The latter (Komodo Edit) is much more functional in that it will show errors in core Tcl syntax. The latest versions of Komodo Edit are tricky to install because the Tcl Linter (the bit that does the syntax checking) needs to be installed seperately. Hence stick to a basic text editor to get you started.

4. A basic Eggdrop Tcl tutorial such as :-

http://suninet.the-demon.de/index.htm


Good Luck!
N
Nimos
Halfop
Posts: 80
Joined: Sun Apr 20, 2008 9:58 am

Post by Nimos »

I started scripting by reading other scripts, and using them as kind of template when writing my first own scripts...

Whenever I needed something I didnt know how to do, I looked in scripts I had, and tried to understand it...it is imho the best way of learning TCL, but it takes long ;D
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Nimos wrote:I started scripting by reading other scripts, and using them as kind of template when writing my first own scripts...

Whenever I needed something I didnt know how to do, I looked in scripts I had, and tried to understand it...it is imho the best way of learning TCL, but it takes long ;D
This is a really good approach. If I can add to this, when you are copying commands and code and etc, make sure you go look at the command in the Tcl commands. Learn what that command can do and what its arguments are etc, once you start remembering the commands and re-using them, learning a basic format, it will start to flow.
Post Reply