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.

entertain.tcl

Support & discussion of released scripts, and announcements of new releases.
Post Reply
F
FuE-
Halfop
Posts: 57
Joined: Sat Nov 27, 2004 3:46 pm

entertain.tcl

Post by FuE- »

i found entertain.tcl in egghelp's archive...

when i use bot call function, when i say my bots nick shall he respond with a lame comment...
but when i write Bot, hi
i can se in the party line

Code: Select all

(01:17:25) (F) Tcl error [pub_izamu]: invalid command name "pub_izamu"
This is the code
after all the lame comments

Code: Select all

proc pub_call {nick uhost handle chan args} {
  global phrases botnick channel
   set outputiz [lindex $phrases [rand [llength $phrases]]]
   putserv "PRIVMSG $chan : $outputiz"
   putlog "<<$nick>> !$handle! $botnick..."
}

bind pubm - "% $botnick*" pub_izamu
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Is there a pub_izamu proc in the script ?
F
FuE-
Halfop
Posts: 57
Joined: Sat Nov 27, 2004 3:46 pm

Post by FuE- »

User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Sir_Fz wrote:Is there a pub_izamu proc in the script ?
no there isn't i downloaded that script years ago and it was broken back then. the script works after a fashion but that pub_izamu still haunts me today lol
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
F
FuE-
Halfop
Posts: 57
Joined: Sat Nov 27, 2004 3:46 pm

Post by FuE- »

hehe okej then i leave it (=
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Maybe there is another script that should be used with this script.
F
FuE-
Halfop
Posts: 57
Joined: Sat Nov 27, 2004 3:46 pm

Post by FuE- »

well. if thats the case, what file, you just get entairn.tcl file with the rar file
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

FuE- wrote:well. if thats the case, what file, you just get entairn.tcl file with the rar file
I have never come across pub_izamu proc in any script in my time (not to say there isn't one) if by chance you do know of it please let me know just out of curiosity after all this time :D
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
s
sparta
Voice
Posts: 15
Joined: Sun Feb 27, 2005 10:02 am

Post by sparta »

I used that TCL years ago, and had the same problem with it, i think it's only "miss spelled", and since i wanted to lern a litle about TCL i made my own, much bether and more fun to use home made stuff.. :) :wink: :evil:
F
FuE-
Halfop
Posts: 57
Joined: Sat Nov 27, 2004 3:46 pm

Post by FuE- »

Code: Select all

proc pub_call {nick uhost handle chan args} {
  global phrases botnick channel
   set outputiz [lindex $phrases [rand [llength $phrases]]]
   putserv "PRIVMSG $chan : $outputiz"
   putlog "<<$nick>> !$handle! $botnick..."
}

bind pubm - "% $botnick*" pub_izamu
that is the code ;o
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

This script is really quite all the basics, since it was scripted like 8 years ago now (1997 the zip date) and eggdrop's were also new those days.

I searched your script, there is a bind for "pub_izamu" but no proc for it. It activates when the bot's nick is said, i.e. the botnick is a trigger.

Either develop a proc for it, what ever you may want it to do, or just remove the bind bind pubm - "% $botnick*" pub_izamu, save your .tcl file and restart your bot for the settings to take effect.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
F
FuE-
Halfop
Posts: 57
Joined: Sat Nov 27, 2004 3:46 pm

Post by FuE- »

yeah, but the botcall script will not work?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Not as it stands because it doesnt exist. What awyeah is saying is that you can if you so wish add a proc called pub_izamu to the script that will execute when the bots name is said.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
F
FuE-
Halfop
Posts: 57
Joined: Sat Nov 27, 2004 3:46 pm

Post by FuE- »

ah i see (=
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

A bind is reduntant without its proc. However when the bot's nick is triggered on a channel the bind will also trigger, but since it has no proc it will give you a tcl error. Now either you can remove it or make it a proc for it to work with.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Post Reply