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.

Butler tcl

Help for those learning Tcl or writing their own scripts.
Post Reply
D
Diamond85
Voice
Posts: 27
Joined: Sat Oct 25, 2008 5:12 pm

Butler tcl

Post by Diamond85 »

Butler.tcl v. 0.0.2

mann kann jetzt nicht nur in der Partyline/DCC das script aktivieren sondern auch im channel mit: .Butler / .butler an / .butler aus
Man can now activate not only the party line / DCC the script but also in the channel with: .Butler / .butler an / .butler aus


Code erweitert, verbessert und Fehler behoben
Code developed, improved and bugs fixed

.chaninfo #chan:
[31/05/10] (21:30:06) <Butler> User defined channel flags:
[31/05/10] (21:30:06) <Butler> +BU


fuer code verbesserung und erweiterung wird sich auch bedanke :D
for code improvement and expansion is also thanks :D


wenn es geht bitte in deutch weil mein englisch sehr sehr schlecht ist ....
please when it comes in German because my English is very very bad


okay thanks.
worked
Last edited by Diamond85 on Thu Jun 03, 2010 9:41 pm, edited 5 times in total.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

bu(menuechar) is accessed as a local variable within the proc "help", though it's most likely supposed to access the previously defined globalspace variable with the same name.

Change $bu(menuechar) with $::bu(menuechar) within the help proc, and the error should go away.

That said, this script is riddled with improper use of the lindex- and llength-commands.
NML_375
D
Diamond85
Voice
Posts: 27
Joined: Sat Oct 25, 2008 5:12 pm

Post by Diamond85 »

wie kann ich einen text aus einer text datei der verschiedene zeilen hat in einen channel posten lassen?
how can a text from a text file of several lines is raising up a channel to post?

text Beispiel:
text example:

[[putserv commands]]
putserv <text> [options]
Description: sends text to the server, like '.dump' (intended for direct server commands); output is queued so that the bot won't flood itself off the server.

Options:

-next: push messages to the front of the queue
-normal: no effect

Returns: nothing

Module: server

also wenn jemand ?putserv commands im channel schreibt soll der bot [[putserv commands]] in der text datei finden und jeweils die ganzen zeilen die unter [[putserv commands]] stehen in sein privat schreiben aber wiederum wenn ein botop ?putserv commands schreibt dann soll der bot es nicht in sein privat sondern in den channel schreiben und wenn der botop ?putserv commands <nick> schreibt soll der bot den text in <nicks> privat schreiben ist sowas machbar und wenn ja wie? könnt ihr mir bitte helfen.. weil wenn ich die ganzen texte im .tcl adde werden es über 10.000 zeilen das will ich vermeiden. ich danke euch jetzt schon mal

So if anyone? putserv commands in the channel is to write the bot [[putserv commands]] in the text file and find each of the whole line under the [[putserv commands]] will be write in private but again if one writes botop? putserv commands should then be offered to the private but not in his review in the channel and if the botop? putserv <nick> commands writes the text offered in private is something like writing <nicks> feasible and if so how? can you help me please .. because if I have the entire text in. tcl adde there are over 10,000 lines to avoid that I want. I thank you already once
Post Reply