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 3735 matches

by caesar
Sat Mar 13, 2021 7:10 am
Forum: Scripting Help
Topic: Best way to test Proc speed
Replies: 9
Views: 4690

The clock clicks should yield the same results.
by caesar
Fri Mar 12, 2021 5:18 am
Forum: Script Requests
Topic: Warn Action
Replies: 30
Views: 14272

With this code in mind if {[info exists warn($host)]} { unset warn($host) } consider the following scenario: user dose a /me and triggers the action:avoid function. user is given 1 warning and has his warn(host) set to 1. in a short time frame, before the utimer (with whatever value you got set at w...
by caesar
Thu Mar 11, 2021 6:34 am
Forum: Script Support & Releases
Topic: FZcommands
Replies: 13
Views: 7527

From where did you download the .tcl file as in the archive, nor on the GitHub page there's no such file?

Edit: Nvm, he linked to wrong archive or he didn't put the file in as well. Anyway, I got this file and it doesn't have the line in your error.
by caesar
Wed Mar 10, 2021 8:00 am
Forum: Script Requests
Topic: Warn Action
Replies: 30
Views: 14272

What TCL version do you have? Anyway, replacing: incr warn($host) 1 with: if {[info exists warn]} { set warn($host) 1 } else { incr warn($host) 1 } should take care of the issue. Next I would also replace this: utimer $warn(reset) {incr warn($host) -1 } with: utimer $warn(reset) [list action:reset $...
by caesar
Tue Mar 09, 2021 1:47 am
Forum: Script Requests
Topic: Warn Action
Replies: 30
Views: 14272

if {$nick == $::botnick} {return 0 } elseif {[isop $nick $chan]} {return 0 } elseif {[matchattr [nick2hand $nick] ofmn|ofmm ]} {return 0} could be made nicer like this: if {[isbotnick $nick]} return if {[matchattr $hand "ofmn|ofmm"]} return if {[isop $nick $chan]} return Notice the use of...
by caesar
Wed Mar 03, 2021 9:03 am
Forum: Script Requests
Topic: I just want to understand these 5 lines
Replies: 11
Views: 5065

Should make that in JSON format for easier parsing.
by caesar
Sat Feb 27, 2021 7:09 am
Forum: Scripting Help
Topic: finishing script
Replies: 1
Views: 2166

Here's my approach: we create a global variable to store the the function's state (locked/unlocked) and based on that the function can continue it's execution or halt it so you have only one instance running at any given time even if function is called multiple times within a small time frame. proc ...
by caesar
Wed Feb 10, 2021 1:59 am
Forum: Scripting Help
Topic: Setting $chan when not a arg
Replies: 18
Views: 9048

Since there's no code to clear the array it will pile up and eat his RAM at some point. Apart this, he needs to add a piece of code to track nickname changes, parts, quits and maybe some flood control mechanism just to be on the safe side.
by caesar
Tue Feb 09, 2021 1:58 am
Forum: Scripting Help
Topic: Setting $chan when not a arg
Replies: 18
Views: 9048

The function that is triggered by the bind pub expects 5 arguments and you provided just 4 in your second function.

Code: Select all

proc test:two {nick host hand chan text} { 
	# your code
}
by caesar
Wed Jan 13, 2021 5:50 am
Forum: Scripting Help
Topic: inotify directory
Replies: 2
Views: 2804

I guess the listen with script as argument would be your best bet. listen <port> script <proc> [flag] Description: accepts connections which are immediately routed to a proc. The proc is called with one parameter: the idx of the new connection. Flag may currently only be 'pub', which makes the bot a...
by caesar
Wed Jan 13, 2021 1:49 am
Forum: Script Requests
Topic: Mrc to TCL !!! Plissssssssss !!!!
Replies: 7
Views: 3767

Ah, i missed the #chan1 part in the initial post (to be honest didnd't even look at it). Yeah, you are right, my bad.
by caesar
Mon Jan 11, 2021 12:38 pm
Forum: Script Requests
Topic: Mrc to TCL !!! Plissssssssss !!!!
Replies: 7
Views: 3767

Actually I didn't. For argument sake let's say the following variables hold some values: $nick = John (bot's nick is Bot) $chan = #something We break this code: if {[isbotnick $nick] || ![string equal -nocase $chan "#chan2"] || ![botisop $chan]} return into 3 separate if statements so it's...
by caesar
Mon Jan 11, 2021 7:15 am
Forum: Script Requests
Topic: Mrc to TCL !!! Plissssssssss !!!!
Replies: 7
Views: 3767

bind join - * voice proc voice {nick uhost hand chan} { if {[isbotnick $nick] || ![string equal -nocase $chan "#chan2"] || ![botisop $chan]} return pushmode $chan +v $nick } isbotnick - returns 0 or 1 if the nick is the bot itself string equal with the -nocase arg ument compares the chann...
by caesar
Thu Jan 07, 2021 2:13 am
Forum: Scripting Help
Topic: Join Module
Replies: 9
Views: 5255

You don't need to do if {statement} and then do the same if but negate it like here: if {[validchan $chan} { puthelp "NOTICE $nick :$::fzcom(logo): I'm already on $chan" return 0 } if {![validchan $chan]} { channel add $chan puthelp "NOTICE $nick :$fzcom(logo):$chan added in my chanli...
by caesar
Wed Jan 06, 2021 2:06 am
Forum: Scripting Help
Topic: Join Module
Replies: 9
Views: 5255

if {![matchattr $hand n|n $chan]} { puthelp "NOTICE $nick :$::fzcom(logo): You do not have access to use this command." return 0 } this part won't ever be triggered because the bind is already tied to n|n: bind pub n|n !join makejoin Instead of: if {[llength [split $text]]!=1} { puthelp &...