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.

Counter and Notice tcl

Old posts that have not been replied to for several years.
n
neokenzo
Voice
Posts: 14
Joined: Tue Apr 01, 2003 6:46 pm

Post by neokenzo »

I dont understand what you asking caesar? Paste what .bind join? I have listed the codes above. I've made the changes Papillon asked but since it didnt work, I reverted back to the original.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

what he meant was that you should do the ".binds join" command on the partyline of your bot, that will give you a list of all join-binds currently beeing used by the bot
Elen sila lúmenn' omentielvo
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

From the dcc chat/telnet with your eggdrop type that .binds join and paste here the result of that. Understood now?
Once the game is over, the king and the pawn go back in the same box.
n
neokenzo
Voice
Posts: 14
Joined: Tue Apr 01, 2003 6:46 pm

Post by neokenzo »

Sorry, please forgive me for my lack in knowlege. Anyway this is what comes out when I did the '.binds join' :

[16:59] <(Hellf|re> [11:59] #xxxxx# binds join
[16:59] <(Hellf|re> Command bindings:
[16:59] <(Hellf|re> TYPE FLGS COMMAND HITS BINDING (TCL)
[16:59] <(Hellf|re> join -|- * 1 the:counting
[16:59] <(Hellf|re> join -|- * 1 xlogin:join
[16:59] <(Hellf|re> join -|- * 1 saytinfo

That is after I just rehashed and restarted the bot. Strange thing is that before I restart the bot, the:counting had about 58 and when I start back again its back to 1. Does that mean whenever the bot restart, it will start from 1 again?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

That 58 means how many times it's bind was called. Try removing all the tcls you have and leave only this one to see if there is any change or something.. It shows that the bind exists and should be working fine..
Once the game is over, the king and the pawn go back in the same box.
n
neokenzo
Voice
Posts: 14
Joined: Tue Apr 01, 2003 6:46 pm

Post by neokenzo »

Tried that. Removed all the tcls apart from this and still the same. This keep appearing in the partyline:

Tcl error [the:counting]: called "the:counting" with too many arguments

The thing is, its counting because the bind is working. Its not sending it to the channel and that error message keeps appearing.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Can you please paste only the "proc xlogin:join .." from the tcl file that is using it? I would like to see how is the proc.. That join proc is working?
Once the game is over, the king and the pawn go back in the same box.
n
neokenzo
Voice
Posts: 14
Joined: Tue Apr 01, 2003 6:46 pm

Post by neokenzo »

I assumed this is what you're looking for?

Code: Select all

# Join event to op the bot itself
bind join - * xlogin:join

proc xlogin:join {nick uhost handle chan} {
    global x botnick
    if {($nick == $botnick) && ([isaccess $chan] > 99)} {
	puthelp "PRIVMSG $x(nickname) :OP $chan"
Thats the only part that has a proc join. Although I dont really need that code, its just came with with the tcl.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

what texteditor are you using?
make sure it's no spaces/tabs etc behind

bind join - "*" the:counting

might be it's sending some unwanted info along
Elen sila lúmenn' omentielvo
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

This is weird.. Please test to see if this proc is working at you. Don't know what else to say..
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The problem doesn't seem to be with a join bind.

If you see this messages regarding too many arguments, the procedure shouldn't be run at all.

The fact you say it is counting, means it is runnign fine.

It would seem however, there is another bind, that is calling the:counting

My guess is you are have attached a quit or a part bind also.

Are you 100% sure you have no stray binds anywhere, that can be causing this, as it would seem it in not the opne you have shown. Please don't say "no" without tripple checking.
n
neokenzo
Voice
Posts: 14
Joined: Tue Apr 01, 2003 6:46 pm

Post by neokenzo »

I used wordpad to write the script. And I've checked the script twice. Nothing is out of place.

Actually, I want this script to be runned under one of my more stable eggdrop. After trying so many times, I tried the same tcl on my not so stable eggdrop and it works fine. I wonder why that is.

Anyway, I'd like to thank everyone especially caeser for all you help and patience. I really appreciate it.

Thank you again :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Thank you GOD! Was about time to work.. :) Your welcome and my nick is caesar not caeser :P
Once the game is over, the king and the pawn go back in the same box.
Locked