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.

help for lame

Old posts that have not been replied to for several years.
Locked
l
laidas
Voice
Posts: 18
Joined: Thu Jul 25, 2002 10:07 am

help for lame

Post by laidas »

Hi !
I want to ask lame question :)

what means this line ???:

proc pub_stat {nick uhost hand chan text} {

help me :)
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

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]
l
laidas
Voice
Posts: 18
Joined: Thu Jul 25, 2002 10:07 am

Post by laidas »

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 ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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
l
laidas
Voice
Posts: 18
Joined: Thu Jul 25, 2002 10:07 am

Post by laidas »

so can you help me and write how will be alright ??

sorry for bad language
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As in the first reply, you should use

proc pub_stat {nick uhost hand chan text} {
Locked