| View previous topic :: View next topic |
| Author |
Message |
IRC_MAC Voice
Joined: 13 Dec 2008 Posts: 18
|
Posted: Mon Jan 05, 2009 10:04 pm Post subject: i think im in the right place! need script help |
|
|
| 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!! |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Tue Jan 06, 2009 7:13 pm Post subject: |
|
|
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/1.6.19/tcl-commands.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! |
|
| Back to top |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Wed Jan 07, 2009 7:22 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Wed Jan 07, 2009 9:12 am Post subject: |
|
|
| 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. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
|