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.

I'm Baffled

Old posts that have not been replied to for several years.
Locked
D
Dustbuster

I'm Baffled

Post by Dustbuster »

Heya guys,

This is what i have so fat, But its refusing to work lol

Code: Select all

bind pub -|- "So, you want to play? Type !idlerpg to find out how ... or go to http://idleRPG.silversnake8.com/" pub:idle

proc pub:idle {nick host handle chan arg} { 
  putquick "PRIVMSG idlerpg :Login Dustbuster 50015" 
} 
Can anyone help out,

What it is ment to do is, well when it joins #idlerpg i want it to login to the idlerpg bot

Cheers

Dustbuster
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The bind pub performs an action upon a public (channel) message. The thing you need is either a bind of a pubm or an msg. Check the doc/tcl-commands.doc file for more instructions.
Once the game is over, the king and the pawn go back in the same box.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

There you go.

Code: Select all

bind pubm -|- "So, you want to play? Type !idlerpg to find out how ... or go to http://idleRPG.silversnake8.com/" pubm:idle 

proc pubm:idle {nick host handle chan arg} { 
  putquick "PRIVMSG idlerpg :Login Dustbuster 50015" 
} 
The bind 'pub' triggers one first word, and all the rest after it are arguments.

The bind 'pubm' triggers all words in a text depending upon your
match sequence.

So, if you want a bind for "!commands" use 'pub'
and if you want a bind for "!help commands" use 'pubm'

Well... erm something like that.
Read the tcl-commands.doc should get you on the right track.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

awyeah wrote:There you go.

Code: Select all

bind pubm -|- "So, you want to play? Type !idlerpg to find out how ... or go to http://idleRPG.silversnake8.com/" pubm:idle 

proc pubm:idle {nick host handle chan arg} { 
  putquick "PRIVMSG idlerpg :Login Dustbuster 50015" 
} 
The bind 'pub' triggers one first word, and all the rest after it are arguments.

The bind 'pubm' triggers all words in a text depending upon your
match sequence.

So, if you want a bind for "!commands" use 'pub'
and if you want a bind for "!help commands" use 'pubm'

Well... erm something like that.
Read the tcl-commands.doc should get you on the right track.
This one is wrong too :wink:

Usage is: bind pubm -|- "% So, you want to play? Type !idlerpg to find out how ... or go to http://idleRPG.silversnake8.com/" pubm:idle "

% - matches any chan...You can aswell use only one channel name it to work only on one chan.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Whoa.. whoa whoa... you cant get me this time...erm.

See his first post which says

Code: Select all

bind pubm -|- "So, you want to play?
Where did the % in the beginning come from??
You added it yourself... sneaky...umm

Withouth the %... as the first character he mentioned
it should be 'pubm' I guess.

So I guess my post was correct, for what he said
as ass kicker first mentioned :lol:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

Oh my god. Awyeah. You're making *EXACTLY* the same mistake over and over again. GO READ THE DAMN DOC ON PUBM, instead of confusing newbies and giving them wrong code. Also, when people point out an error, do something with the information instead of replying with "well I'm right anyway".
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
D
Dustbuster

Post by Dustbuster »

hmmm thanks guys,

But for some reason its not working :(


Matt
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

if you're trying to respond to a onjoin notice, then what you want is 'bind notc'

Code: Select all

bind notc - "* So, you want to play? *"
D
Dustbuster

Post by Dustbuster »

Thanx but what would come after "proc notc"???

rather than doing it from an onjoin message, could you make it trigger, ONJOINing the channel??

Cheers

Matt
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Dustbuster wrote:Thanx but what would come after "proc notc"???

rather than doing it from an onjoin message, could you make it trigger, ONJOINing the channel??

Cheers

Matt
So you want greet then.If you want greet, then this should work:

Code: Select all

bind join - * greet_idle

proc greet_idle {nick mask hand chan} { 
putquick "notice $nick :So, you want to play? Type !idlerpg to find out how ... or go to http://idleRPG.silversnake8.com/" 
}
Then you also need to set !idlerpg pub, something like this should work:

Code: Select all

bind pub -|- "!idlerpg" pub:idlerpg

proc pub:idlerpg {nick host handle chan arg} {
  putquick "PRIVMSG $chan :Your text here"

} 
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

hahaha.. my apologies maybe I wasn't my
100% at 4 in the night... when I replied to
the thread.
·­awyeah·

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