egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Whats wrong? -set...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Spoilt
Voice


Joined: 10 Aug 2005
Posts: 5

PostPosted: Wed Aug 10, 2005 9:58 pm    Post subject: Whats wrong? -set... Reply with quote

Code:

set drache_cmd "!drache"

set drachestats_cmd "!drachestats"

set drachen {
{Drache ist doof!
}
{Drache ist dumm!
}
{Ich mag keine Drachen!
}
{Ich bin Drachentoeter!
}
{Drache stinkt!
}
{Drache sind feiglinge
}
{Drachen stinken, Drachen miefen, darum lasst uns ihre hintern stiefeln
}
{Drache sind nicht gut!
}
{Drache sind flamer!
}
{Drache sind sharer!
}
{Drache sind warmduscher!
}
{Drache sind unnuetz!
}
{Drache sind cheater!
}
{Drache sind schlecht bestueckt!
}
{Drache sind schlecht!
}
{Drache sind nicht gut!
}
{Drache sind nicht schoen!
}
{Drache sind nicht haesslich!
}
{Drache sind Wunderkerzen-Feuerwerker!
}
{Drache sind Nicht-das-Messer-Ablecker!
}
{Drache sind Sich-vor-Aufregung-in-die-Hosen-Macher!
}
{Drache sind Koks-von-den-Geldscheinen-Abkratzer!
}
{Drache sind Nicht-neben-der-Freundin-Furzer!
}
{Drache sind T-Shirt-Luefter!
}
{Drache sind Flaeschchen-Trinker!
}
{Drache sind Warteschleifen-Musik-Mitsummer!
}
{Drache sind Jede-Woche-die-Unterhosen-Wechsler!
}
{Drache sind Schlips-mit-zwei-Knoten-Binder!
}
{Drache sind Haehnchen-nur-durcherhitzt-Esser!
}
{Drache sind Jeep-Safari-Pfuetzen-Umfahrer!
}
{Drache sind Dreimal-taeglich-Zaehneputzer!
}
{Drache sind Faszinierend-Finder!
}
{Drache sind der-Frau-keinen-Orgasmus-Bereiter!
}
{Drache sind Grundgesetz-Besitzer!
}
{Drache sind Mutter-Soehnchen!
}
{Drache sind Beifalls-Applaudierer!
}
{Drache sind Titanic-Mitheuler!
}
{Drache sind Frohes-Fest-Wuenscher!
}
{Drache sind Scheinbart-Rasierer!
}
{Drache sind Sofort-zum-Arzt-Renner!
}
{Drache sind Schutzglas-Schweisser!
}
{Drache sind Bauspar-Sparer!
}
{Drache sind Gewinnspiel-Teilnehmer!
}
{Drache sind Duschhauben-Traeger!
}
{Drache sind Gleichberechtigungs-Schwafler!
}
{Drache sind Praktikanten-Schoner!
}
{Drache sind Am-Feierabend-an-Arbeit-Denker!
}
{Drache sind Verwendungszweck-Ausfueller!
}
{Drache sind Im-Winter-Scheibenwischer-Wegklapper!
}
{Drache sind In-Unterwaesche-Solarium-Lieger!
}
{Drache sind Gymnastik-Mitmacher!
}
{Drache sind Leergut-Spueler!
}
{Drache sind Unterm-Schrank-Staubsauger!
}
{Drache sind Hemd-in-den-Schluepfer-Stecker!
}
{Drache sind Alufolien-Wiederverwender!
}
{Drache sind Tuetenwein-Trinker!
}
{Drache sind Saucen-Entfetter!
}
{Drache sind Gluecksrad-Mitrater!
}
{Drache sind Schluckauf-Unterdruecker!
}
{Drache sind Disketten-Beschrifter!
}
{Drache sind Handschuh-Eiskratzer!
}
{Drache sind Luft-Gittarist!
}
{Drache sind Am-Gelaender-Festhalter!
}
{Drache sind Duftkerzen-Benutzer!
}
{Drache sind Neuwagen-Kilometer-Schoner!
}
{Drache sind Rechtsschutz-Versicherer!
}
{Drache sind Diesel-Handschuh-Tanker!
}
{Drache sind Gluehbirnenwechsel-Sicherungs-Herausschrauber!
}
{Drache sind Regen-Kombi-Radler!
}
{Drache sind Entziehungskur-Teilnehmer!
}
{Drache sind Im-Reformhaus-Kaeufer!
}
{Drache sind Club-Med-Animations-Mitmacher!
}
{Drache sind Decke-bis-zum-Kinn-Zieher!
}
{Drache sind Haklefeucht-Benutzer!
}
{Drache sind Pass-am-Zoll-Bereithalter!
}
{Drache sind Lehrer-Kind!
}
{Drache sind Betroffenheits-Schwaller!
}
{Drache sind Mittags-Zaehneputzer!
}
{Drache sind Auf-dem-Schiessplatz-Ohrstoepsel-Traeger!
}
{Drache sind Email-Archivierer!
}
{Drache sind Hustensaft-Schmuggler!
}
{Drache sind Badeschuh-Laeufer!
}
{Drache sind Bei-Glatteis-Fahrrad-Absteiger!
}
{Drache sind Brief-mit-Briefoeffner-oeffner!
}
{Drache sind Eincremer!
}
{Drache sind Eine-Stunde-am-Cola-Rumnippler!
}
{Drache sind Entlaufene-Katzen-Fahnder!
}
{Drache sind Fair-Play-Spieler!
}
{Drache sind Fettfrei-Kaese-Esser!
}
{Drache sind Feuerloescher-Besitzer!
}
{Drache sind Gefriergut-maschinell-Einschweisser!
}
{Drache sind Hand-in-Schritt-Halter!
}
{Drache sind Hand-vor-dem-Mund-Gaehner!
}
{Drache sind Hartei-Verleumder!
}
{Drache sind Hast-mal'n-Kaugummi-Frager!
}
{Drache sind Heimlich-Peep-Gucker!
}
{Drache sind Kalte-Fuesse-Bekommer!
}
{Drache sind Keine-Raubkopien-Benutzer!
}
{Drache sind Kirchensteuer-Zahler!
}
{Drache sind Klarsicht-Huellen-Verwender!
}
{Drache sind Kondom-gegen-das-Licht-Halter!
}
{Drache sind Kopfnetz-Traeger!
}
{Drache sind Leichtkugel-Bowler!
}
{Drache sind Kurzhaar-Foener!
}
{Drache sind Minenfeld-Ausweicher!
}
{Drache sind Pincode-auf-EC-Karte-Schreiber!
}
{Drache sind Nicht-Warmduscher-ABC-Schauer!
}
{Drache sind Nieselregen-Schirm-Aufspanner!
}
{Drache sind Nicht-zufrieden-sein-und-trotzdem-Trinkgeld-Geber!
}
{Drache sind Platzkarten-rechtzeitig-Besorger!
}
{Drache sind Raus-ins-Gruene-Fahrer!
}
{Drache sind Readme-Leser!
}
{Drache sind Reformhaus-Einkaeufer!
}
{Drache sind Riesenrad-Fahrer!
}
{Drache sind Rueckhaltlos-Aufklaerer!
}
{Drache sind Schlimm?-Frager!
}
{Drache sind Microsoft-Aktienbesitzer!
}
{Drache sind Milchreis-Bubi!
}
{Drache sind Schnitten-fuer-Arbeit-Schmierer!
}
{Drache sind Sofort-Abspueler!
}
{Drache sind Spinnen-aengstler!
}
{Drache sind Tankdeckel-Abschliesser!
}
{Drache sind Tourist-Office-Gaenger!
}
{Drache sind Traubenkern-Ausspucker!
}
{Drache sind Viagra-Schlucker!
}
{Drache sind Vor-kalte-Dusche-Angsthaber!
}
{Drache sind Vorstrafen-im-Lebenslauf-nicht-Angeber!
}
{Drache sind Woerter-mit-Bindestrichen-Vebinder!
}
{Drache sind Zauberhaft-Finder!
}
{Drache sind Coffeinloser-Kaffeetrinker!
}
{Drache sind Samstags-zum-Baecker-Geher!
}
{Drache sind Bertelsmann-Buchclub-Mitglied!
}
{Drache sind Ein-Pfennig-zuviel-Tanker!
}
{Drache sind Weiss-und-Buntwaesche-Sortierer!
}
{Drache sind Brusthaar-Rasierer!
}
{Drache sind AGB-Leser!
}
{Drache sind Kalorien-Zaehler!
}
{Drache sind Heizdecken-Lieger!
}
{Drache sind Merkzettel-Schreiber!
}
{Drache sind Feuilleton-Leser!
}
{Drache sind Chef-Tuer-leise-Zumacher!
}
{Drache sind Teletubbie-Zurueck-Winker!
}
{Drache sind Falschrum-in-die-Drehtuer-Reinlaufer!
}
{Drache sind Milchkaffee-Trinker!
}
{Drache sind Hustensirup-Trinker!
}
{Drache sind Gebrauchsanweisungs-Leser!
}
{Drache sind To-Do-Listenschreiber!
}
{Drache sind Grippe-Vorsorgeimpfer!
}
{Drache sind Detlev-Heisser!
}
{Drache sind Zimmerpflanzen-Giesser!
}
{Drache sind Seifen-Buecker!
}
{Drache sind Feldbett-Camper
}
{Drache sind Ein-Pfennig-zuviel-Tanker!
}
{Drache sind Weiss-und-Buntwaesche-Sortierer!
}
{Drache sind Brusthaar-Rasierer!
}
{Drache sind AGB-Leser!
}
{Drache sind Kalorien-Zaehler!
}
{Drache sind Heizdecken-Lieger!
}
{Drache sind Merkzettel-Schreiber!
}
{Drache sind Feuilleton-Leser!
}
{Drache sind Chef-Tuer-leise-Zumacher!
}
{Drache sind Teletubbie-Zurueck-Winker!
}
{Drache sind Falschrum-in-die-Drehtuer-Reinlaufer!
}
{Drache sind Milchkaffee-Trinker!
}
{Drache sind Hustensirup-Trinker!
}
{Drache sind Gebrauchsanweisungs-Leser!
}
{Drache sind To-Do-Listenschreiber!
}
{Drache sind Grippe-Vorsorgeimpfer!
}
{Drache sind Detlev-Heisser!
}
{Drache sind Zimmerpflanzen-Giesser!
}
{Drache sind Seifen-Buecker!
}
{Drache sind Feldbett-Camper
}
{Drache sind Ein-Pfennig-zuviel-Tanker!
}

set drache_usage 0

bind pub - $drache_cmd dummer_drache

proc dummer_drache {nick host handle chan rest} {
     global drachen
     global drache_usage
     putserv "NOTICE $chan :[lindex $drachen [rand [llength $drachen]]]"
     incr drache_usage
     return 0
   }

bind pub - $drachestats_cmd drache_stats

proc drache_stats {nick host handle chan rest} {
     global drachen
     global drache_usage
     global drache_cmd
     putserv "NOTICE $chan :Ich habe [llength $drachen] Anti-Drache-Sprueche in meiner Datenbank ! $drache_cmd wurde seit dem letzten rehash $drache_usage mal benutzt."; return 0
   }


Quote:
[03:48] <sboilt> [03:48] Kann keine Module laden blowfish: Already loaded.


Or it says there is missing close bracket in line 15... but there is nothing missing?

PLS help *gg*
Back to top
View user's profile Send private message AIM Address MSN Messenger
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Wed Aug 10, 2005 10:07 pm    Post subject: Reply with quote

Check your list again carefully you are missing a closing brace somewhere or I think its the one at the end. It should be in the format:

Code:

set mylist {
{reply 1}
{reply 2}
{reply 3}
}

_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Spoilt
Voice


Joined: 10 Aug 2005
Posts: 5

PostPosted: Wed Aug 10, 2005 10:24 pm    Post subject: Reply with quote

[04:21] <sboilt> [04:21] Tcl error in file 'eggdrop.conf':
[04:21] <sboilt> [04:21] missing close-brace
[04:21] <sboilt> while executing
[04:21] <sboilt> "set drachen {
[04:21] <sboilt> {Drache ist doof!
[04:21] <sboilt> }
[04:21] <sboilt> {Drache ist dumm!
[04:21] <sboilt> }
[04:21] <sboilt> {Ich mag keine Drachen!
[04:21] <sboilt> }
[04:21] <sboilt> {Ich bin Drachentoeter!
[04:21] <sboilt> }
[04:21] <sboilt> {Drache stinkt!
[04:21] <sboilt> }
[04:21] <sboilt> {Drache sind feiglinge
[04:21] <sboilt> }
[04:21] <sboilt> {..."
[04:21] <sboilt> (file "scripts/drache.tcl" line 5)
[04:21] <sboilt> invoked from within
[04:21] <sboilt> "source scripts/drache.tcl"
[04:21] <sboilt> (file "eggdrop.conf" line 1348)

no there isnt a bracket missing Sad
Back to top
View user's profile Send private message AIM Address MSN Messenger
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Aug 10, 2005 10:31 pm    Post subject: Reply with quote

Spoilt wrote:
[04:21] <sboilt> [04:21] missing close-brace
[04:21] <sboilt> while executing
[04:21] <sboilt> "set drachen {

Oh yes there is! Razz
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Spoilt
Voice


Joined: 10 Aug 2005
Posts: 5

PostPosted: Wed Aug 10, 2005 10:33 pm    Post subject: Reply with quote

okay.. where? i do not see it -.-
Back to top
View user's profile Send private message AIM Address MSN Messenger
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Aug 10, 2005 10:35 pm    Post subject: Reply with quote

Spoilt wrote:
okay.. where? i do not see it -.-

This:
Code:
{Drache sind Ein-Pfennig-zuviel-Tanker!
}

Should be this:
Code:
{Drache sind Ein-Pfennig-zuviel-Tanker!}
}

If the format was done as above you would have picked it up immediately!
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Wed Aug 10, 2005 10:36 pm    Post subject: Reply with quote

You didn't bother to check what I told you, did you? Use this.

Code:

set drachen {
{Drache ist doof!}
{Drache ist dumm!}
{Ich mag keine Drachen!}
{Ich bin Drachentoeter!}
{Drache stinkt!}
{Drache sind feiglinge }
{Drachen stinken, Drachen miefen, darum lasst uns ihre hintern stiefeln }
{Drache sind nicht gut!}
{Drache sind flamer!}
{Drache sind sharer!}
{Drache sind warmduscher!}
{Drache sind unnuetz!}
{Drache sind cheater!}
{Drache sind schlecht bestueckt!}
{Drache sind schlecht!}
{Drache sind nicht gut!}
{Drache sind nicht schoen!}
{Drache sind nicht haesslich!}
{Drache sind Wunderkerzen-Feuerwerker!}
{Drache sind Nicht-das-Messer-Ablecker!}
{Drache sind Sich-vor-Aufregung-in-die-Hosen-Macher!}
{Drache sind Koks-von-den-Geldscheinen-Abkratzer!}
{Drache sind Nicht-neben-der-Freundin-Furzer!}
{Drache sind T-Shirt-Luefter!}
{Drache sind Flaeschchen-Trinker!}
{Drache sind Warteschleifen-Musik-Mitsummer!}
{Drache sind Jede-Woche-die-Unterhosen-Wechsler!}
{Drache sind Schlips-mit-zwei-Knoten-Binder!}
{Drache sind Haehnchen-nur-durcherhitzt-Esser!}
{Drache sind Jeep-Safari-Pfuetzen-Umfahrer!}
{Drache sind Dreimal-taeglich-Zaehneputzer!}
{Drache sind Faszinierend-Finder!}
{Drache sind der-Frau-keinen-Orgasmus-Bereiter!}
{Drache sind Grundgesetz-Besitzer!}
{Drache sind Mutter-Soehnchen!}
{Drache sind Beifalls-Applaudierer!}
{Drache sind Titanic-Mitheuler!}
{Drache sind Frohes-Fest-Wuenscher!}
{Drache sind Scheinbart-Rasierer!}
{Drache sind Sofort-zum-Arzt-Renner!}
{Drache sind Schutzglas-Schweisser!}
{Drache sind Bauspar-Sparer!}
{Drache sind Gewinnspiel-Teilnehmer!}
{Drache sind Duschhauben-Traeger!}
{Drache sind Gleichberechtigungs-Schwafler!}
{Drache sind Praktikanten-Schoner!}
{Drache sind Am-Feierabend-an-Arbeit-Denker!}
{Drache sind Verwendungszweck-Ausfueller!}
{Drache sind Im-Winter-Scheibenwischer-Wegklapper!}
{Drache sind In-Unterwaesche-Solarium-Lieger!}
{Drache sind Gymnastik-Mitmacher!}
{Drache sind Leergut-Spueler!}
{Drache sind Unterm-Schrank-Staubsauger!}
{Drache sind Hemd-in-den-Schluepfer-Stecker!}
{Drache sind Alufolien-Wiederverwender!}
{Drache sind Tuetenwein-Trinker!}
{Drache sind Saucen-Entfetter!}
{Drache sind Gluecksrad-Mitrater!}
{Drache sind Schluckauf-Unterdruecker!}
{Drache sind Disketten-Beschrifter!}
{Drache sind Handschuh-Eiskratzer!}
{Drache sind Luft-Gittarist!}
{Drache sind Am-Gelaender-Festhalter!}
{Drache sind Duftkerzen-Benutzer!}
{Drache sind Neuwagen-Kilometer-Schoner!}
{Drache sind Rechtsschutz-Versicherer!}
{Drache sind Diesel-Handschuh-Tanker!}
{Drache sind Gluehbirnenwechsel-Sicherungs-Herausschrauber!}
{Drache sind Regen-Kombi-Radler!}
{Drache sind Entziehungskur-Teilnehmer!}
{Drache sind Im-Reformhaus-Kaeufer!}
{Drache sind Club-Med-Animations-Mitmacher!}
{Drache sind Decke-bis-zum-Kinn-Zieher!}
{Drache sind Haklefeucht-Benutzer!}
{Drache sind Pass-am-Zoll-Bereithalter!}
{Drache sind Lehrer-Kind!}
{Drache sind Betroffenheits-Schwaller!}
{Drache sind Mittags-Zaehneputzer!}
{Drache sind Auf-dem-Schiessplatz-Ohrstoepsel-Traeger!}
}


You can also use the format:
Code:

set drachen {
"Drache ist doof!"
"Drache ist dumm!"
"Ich mag keine Drachen!"
"Ich bin Drachentoeter!"
}

_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Aug 10, 2005 10:39 pm    Post subject: Reply with quote

I prefer the 2nd format, it's 100% easier to read and pickup any error(s). Mr. Green
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Spoilt
Voice


Joined: 10 Aug 2005
Posts: 5

PostPosted: Wed Aug 10, 2005 10:47 pm    Post subject: Reply with quote

ahh ic Very Happy sorry....

i lost the brace at the end -.-

big thx Very Happy
Back to top
View user's profile Send private message AIM Address MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 11, 2005 12:58 am    Post subject: Reply with quote

there is also the issue of unnecessary implicit conversion between Tcl_Obj types list and string (see my posting about script performance in the FAQ section), which is worse than bad brace ordering
Back to top
View user's profile Send private message Visit poster's website
Spoilt
Voice


Joined: 10 Aug 2005
Posts: 5

PostPosted: Thu Aug 11, 2005 7:03 am    Post subject: Reply with quote

yeah i saw it.. but i didnt see that there must be 2 closing braces at the end Very Happy
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber