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.
Old posts that have not been replied to for several years.
laidas
Voice
Posts: 18 Joined: Thu Jul 25, 2002 10:07 am
Post
by laidas » Sat Jul 27, 2002 6:40 am
Hi !
I want to ask lame question
what means this line ???:
proc pub_stat {
nick uhost hand chan text } {
help me
GodOfSuicide
Master
Posts: 463 Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria
Post
by GodOfSuicide » Sat Jul 27, 2002 7:37 am
the procedure means that :
proc pub_stat {nick uhost hand chan text} {
This is a proc used in a channel.
The arguments mean :
nick = nickname of the person caused the proc
uhost = his hotmask
hand = handle @ bot (+f n stuff)
chan = channel where he caused the proc
text = the argument he used (the text after the trigger)
[/list]
laidas
Voice
Posts: 18 Joined: Thu Jul 25, 2002 10:07 am
Post
by laidas » Sat Jul 27, 2002 7:53 am
OK,
so I want to write script, that it will do:
In channel I write word "Bye"
Then bot says: "Bye Bye $nick"
Code: Select all
[list]
bind pub - bye bye_bye
proc bye_bye { nick chan text } {
putserv "PRIVMSG $chan Bye Bye $nick"
}
is it OK ?
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sat Jul 27, 2002 7:58 am
No - you must have all the varaible in the first line of the proc command.
Eggdrop will pass more variable than you have stated, thus it will throw an error
laidas
Voice
Posts: 18 Joined: Thu Jul 25, 2002 10:07 am
Post
by laidas » Sat Jul 27, 2002 8:00 am
so can you help me and write how will be alright ??
sorry for bad language
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sat Jul 27, 2002 10:55 am
As in the first reply, you should use
proc pub_stat {nick uhost hand chan text} {