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.

Search found 3737 matches

by caesar
Tue Sep 24, 2024 2:45 am
Forum: Scripting Help
Topic: can i ask a question ?
Replies: 6
Views: 1727

Re: can i ask a question ?

If, for whatever reason, you want to generate a list containing elements from 1 to 50 don't use the stuff you've used in set number { ... }, use something like: proc BuildRange {start end} { set result {} for {set i $start} {$i <= $end} {incr i} { lappend result $i } return $result } instead to gene...
by caesar
Sun Sep 08, 2024 1:01 am
Forum: Scripting Help
Topic: bind time script
Replies: 3
Views: 1278

Re: bind time script

And use buit-in isbotnick instead of that prone to fail if:

Code: Select all

if {$botnick == "$videoland"} {
to:

Code: Select all

if {[isbotnick $videoland]} {
by caesar
Sun Oct 01, 2023 9:59 am
Forum: Script Support & Releases
Topic: Weather Script + extras
Replies: 6
Views: 12551

Move this line:

Code: Select all

putserv "PRIVMSG $chan :\00314Three day forecast for \00307$raddress ($address)\003" 
above this line:

Code: Select all

set three_list [lreplace $three_list 0 0]
and under }.
by caesar
Fri Sep 22, 2023 11:31 am
Forum: Scripting Help
Topic: Disregard - removing the script. Can't delete this post!
Replies: 3
Views: 5849

Try with:

Code: Select all

timer $bantime [list putserv "MODE $channel -b $nick!*@$nickhost"]
by caesar
Mon Sep 18, 2023 1:56 pm
Forum: Scripting Help
Topic: Ircop eggdrop bot with SACommands
Replies: 26
Views: 22233

You might want to check your last if statements cos something doesn't feel right in there.
by caesar
Mon Sep 18, 2023 11:45 am
Forum: Scripting Help
Topic: Ircop eggdrop bot with SACommands
Replies: 26
Views: 22233

I think it's safe to remove the [onchan $nick $enforcechan] && [onchan $::botnick $enforcechan] part as the previous two checks validate them as well, meaning botisop can't return true unless bot is on the channel and the isop can't return true if nick isn't on the channel. You set the chan ...
by caesar
Sun Sep 03, 2023 11:55 pm
Forum: Script Requests
Topic: Counter help
Replies: 6
Views: 8225

Look at the bind statement and take it from there. If i where to guess, he asked ChatGTP to make this piece of code. :lol:
by caesar
Tue Jun 27, 2023 12:31 am
Forum: Script Requests
Topic: needs an upgrade :oops:
Replies: 14
Views: 16354

Open a shell on the Debian server and then type tclsh , and then package require ip and reply back with what it says. I have Debian 11: cezar@ax41:~$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" and works: cezar@ax41:~$ tclsh % package require ip 1.4 If this fails, you ...
by caesar
Mon Jun 26, 2023 12:36 pm
Forum: Script Requests
Topic: needs an upgrade :oops:
Replies: 14
Views: 16354

I mentioned the IP package (comes with TCLlib) before (link), that offers some tools to validate IP v4 or v6.
by caesar
Mon Jun 05, 2023 3:12 am
Forum: Script Support & Releases
Topic: negative number not allowed in script
Replies: 5
Views: 9637

Fixed typos above as I did a copy/paste and forgot to replace some variables.
by caesar
Sun Jun 04, 2023 11:19 am
Forum: Script Support & Releases
Topic: negative number not allowed in script
Replies: 5
Views: 9637

Here's two options: scan and string is integer . bind pub - [cmdchar]c2f pub_c2f proc pub_c2f {nick uhost hand chan rest} { set data [lindex $rest 0] if {![isnum $data]} {putserv "PRIVMSG $nick :Calling syntax is ${cmdchar_}c2f <tempeture in celsius>" return 1} set cdata [expr $data * 1.8 ...
by caesar
Mon May 29, 2023 11:38 am
Forum: Script Requests
Topic: [SOLVED] Bartender script (PHP)
Replies: 14
Views: 17901

I copied the restoday as it was and didn't pay much attention to it. Today Fire asked me to have a look at an error he was getting and noticed that the time function had 4 arguments, while it expects 5 space separated integers of the form of "minute hour day month year". To fix this replac...
by caesar
Tue May 23, 2023 12:18 pm
Forum: Eggdrop Help
Topic: Crash!
Replies: 3
Views: 7600

And why don't you add the bug report as instructed by the message?
by caesar
Mon May 22, 2023 1:43 pm
Forum: Script Requests
Topic: [SOLVED] Bartender script (PHP)
Replies: 14
Views: 17901

Saw your code and added the 'nick change' he asked, made a few changes here and there. To name a few.. 1. Replaced [list ... ] with { .. }. From the point of view of the compiler it makes no difference, but for user it's easier to see a difference between: set replies(cola) [list "Serves icecol...
by caesar
Tue May 16, 2023 11:17 am
Forum: Script Requests
Topic: random colors per character
Replies: 9
Views: 11685

After a bit of consideration, I decided to put things to a test. The rand command (that comes with eggdrop) outputs a random value from the given LIMIT, of 0 up to LIMIT-1, thus, giving it a limit of 5, it can output the values 0, 1, 2, 3, 4. % set fg_colors "01 02 05 06 10 12" 01 02 05 06...