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.

another trigger script! :s

Old posts that have not been replied to for several years.
Locked
s
scorchin
Voice
Posts: 13
Joined: Mon Jun 07, 2004 5:28 am

another trigger script! :s

Post by scorchin »

well, this will probably be my last query on trigger scripting, how would i make a script to ouput into a given channel if the following command is given...
cs anyone?
then the eggy will output......
I like CS! Play with me! My steams not working though :(

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

Post by ]Kami[ »

Don't know exactly what you mean, but you can use something like this:

Code: Select all

set output_chan "#channel"

# Here you put chan on which but will msg your output_text

set output_text "bla"

# Here you set text which will bot msg to output_chan ....

bind pub - !something pub:something

proc pub:something {nick host handle chan arg} {
global output_chan output_text

putquick "PRIVMSG $output_chan :$output_text"

}
When you will type trigger !something (which you can change) in chan, bot will msg channel which you set in set output_chan with text you've set at output_text...
s
scorchin
Voice
Posts: 13
Joined: Mon Jun 07, 2004 5:28 am

Post by scorchin »

cool, but how would i make it so that it didn't matter whether !commands was in capitals or not :-? thanks.
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

huh, you can type !commands or !COMMANDS both should work...
s
scorchin
Voice
Posts: 13
Joined: Mon Jun 07, 2004 5:28 am

Post by scorchin »

kk, just checking, how would i make this script output a notice to a username when it joins, and says...

Hello $nick type !commands for the commands.
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Sorry, didn't understood you good...So you want that, when user joins channel, that he get notice and bot say Hello ... to him?
s
scorchin
Voice
Posts: 13
Joined: Mon Jun 07, 2004 5:28 am

Post by scorchin »

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

Post by ]Kami[ »

Ok, that thats the answer for you:

Code: Select all

bind join - * greet_msg

proc greet_msg {nick mask hand chan} {
putquick "notice $nick :Hello $nick type !commands for channel commands."
}
This script works for every channel bot is on :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can also set the eggdrop +greet command
for specific channels and set the greet message.

Then you can set the greet message to the user.

That would be more effective and would stack the
messages in a proper manner even if your channel
has alot of users, which join/part in quick succession
and your bot wouldn't get Excess Flood.
·­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[ »

I use similar script that is one i posted above, and my bot never fell max sendq exceted or Excess flood...Even when people joined 60+ clones..Only problem was, that bot was in lagg for about 10 mins lol :mrgreen:
t
tonyrayo
Voice
Posts: 20
Joined: Thu Jul 31, 2003 3:29 pm
Location: Waldorf, MD
Contact:

Post by tonyrayo »

Thank you for that trigger script though Kami (the first one you posted). I will use this with my bot to display current list of commands.
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

No Problem :mrgreen:
Locked