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.

can't get scripts to work (SOLVED)

Help for those learning Tcl or writing their own scripts.
Post Reply
K
Kman1
Voice
Posts: 7
Joined: Wed Jun 26, 2013 1:32 pm
Location: on earth in a random location in space

can't get scripts to work (SOLVED)

Post by Kman1 »

i am having trouble getting scripts to work. i changed the settings to make sure it works. it loads fine. i enable the bot and the script does nothing. what am i doing wrong??
Last edited by Kman1 on Fri Jul 05, 2013 5:02 pm, edited 1 time in total.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

have you placed file in the scripts folder, edited eggdrop.conf (or whatever name you gave to the configuration file) and at the end added source scripts/<your_file.tcl> then rehashed (.rehash on DCC Chat/Telnet with the bot)?

How do you know the scripts are loaded? Do they require any special flags that you may not have?
Once the game is over, the king and the pawn go back in the same box.
K
Kman1
Voice
Posts: 7
Joined: Wed Jun 26, 2013 1:32 pm
Location: on earth in a random location in space

Post by Kman1 »

i know it loads because i use command prompt to load it.. cd "C:/program files (x86)/eggdrop" then i type eggdrop.exe with then leaves all the messages up and i see that the script succesfuly loads.

i have no idea what you mean "and at the end added source scripts/<your_file.tcl>" treat me like i am stupid please

also i just shoved the script into the config


[15:59:39] <Kman1> .rehash
[15:59:39] <Baconator> [15:59:39] #Kman1# rehash
[15:59:40] <Baconator> Rehashing.
[15:59:40] <Baconator> [15:59:39] Writing user file...
[15:59:40] <Baconator> [15:59:39] Writing channel file...
[15:59:40] <Baconator> [15:59:39] Rehashing ...
[15:59:40] <Baconator> [15:59:39] Identd Already Disabled. (Tried to Close)
[15:59:40] <Baconator> [15:59:39] Writing channel file...
[15:59:40] <Baconator> [15:59:39] Listening at telnet port 3864 (all).
[15:59:40] <Baconator> [15:59:39] Loading dccwhois.tcl...
[15:59:40] <Baconator> [15:59:39] Loaded dccwhois.tcl
[15:59:40] <Baconator> [15:59:39] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[15:59:40] <Baconator> [15:59:39] use '.help userinfo' for commands.
[15:59:40] <Baconator> [15:59:39] Identd: I don't know why you're using winident.tcl on your system, but it probably won't work on anything but Windows.
[15:59:40] <Baconator> [15:59:39] winident.tcl v1.2 - by FireEgl@EFNet <FireEgl@Windrop.cjb.net> - Loaded.
[15:59:40] <Baconator> [15:59:39] *Auto Welcome Script* by *Rana Usman* (www.ranausman.tk) has been successfully LOADED
[15:59:40] <Baconator> [15:59:39] Writing channel file...
[15:59:40] <Baconator> [15:59:39] Userfile loaded, unpacking...
[16:00:00] <Baconator> [16:00:00] Writing user file...
[16:00:00] <Baconator> [16:00:00] Writing channel file...

it does nothing when someone joins the channel. i even set up what should be said when people join and it does nothing
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Kman1 wrote: ...
i have no idea what you mean "and at the end added source scripts/<your_file.tcl>" treat me like i am stupid please

also i just shoved the script into the config
I suspect that you are saying just what caesar said, when you "just shoved the script into the config". caesar just stated it better. :)

Here is something to read, that explains it:
http://www.egghelp.org/enhance.htm#tclscripts


Further, caesar said:
Do they require any special flags that you may not have?
Expanding on that:
Most scripts have comments, usually at the beginning.
Some are extensive.
Some are instructions on how to set up and use the script.

Read them - all - carefully.

What you could be encountering is something so simple as lacking a flag, as previously mentioned, or perhaps the script has an "On/Off" (setudef) switch that you must use via a .chanset command.

These things will be explained in the directions.

If you name the script here, and where you got it, you might get very, very lucky, and somebody might actually look at it with you.

I hope this helps.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

I think you edited your post at the same time as I was replying. There is more info there now.


Ok - I think I found the script you are using, in the TCL Archive here.

Is that it listed here? :
http://www.egghelp.org/tclhtml/3478-4-0 ... -Usman.htm
as Version 2 , dated 15/12/2007 ?

I haven't examined the whole thing, but the configuring of it is not very involved.

If you wish, copy-n-paste the whole thing - as-is , just as you are trying to use it now, here:
http://paste.tclhelp.net/
then post the link back here. Perhaps somebody will be able to spot the problem, and comment for you.
K
Kman1
Voice
Posts: 7
Joined: Wed Jun 26, 2013 1:32 pm
Location: on earth in a random location in space

Post by Kman1 »

willyw wrote:I think you edited your post at the same time as I was replying. There is more info there now.


Ok - I think I found the script you are using, in the TCL Archive here.

Is that it listed here? :
http://www.egghelp.org/tclhtml/3478-4-0 ... -Usman.htm
as Version 2 , dated 15/12/2007 ?

I haven't examined the whole thing, but the configuring of it is not very involved.

If you wish, copy-n-paste the whole thing - as-is , just as you are trying to use it now, here:
http://paste.tclhelp.net/
then post the link back here. Perhaps somebody will be able to spot the problem, and comment for you.
yes it is listed
Auto Welcome
Greet Scripts 2 15/12/2007
K
Kman1
Voice
Posts: 7
Joined: Wed Jun 26, 2013 1:32 pm
Location: on earth in a random location in space

Post by Kman1 »

just got it working
set urchan "#channel" was not set correctly. maybe i should look in the config more closely next time
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Kman1 wrote:just got it working
Great!

... maybe i should look in the config more closely next time
;)
Post Reply