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.

My first time :P

Old posts that have not been replied to for several years.
Locked
C
Coolyo

My first time :P

Post by Coolyo »

Hey pro tcl scripters ;)

i would like to know how to notice a user when the user join a channel (i also need to specafied the channel so the bon't won't notice a user who join another channel else but the one i specafied)

MVH Coolto

Sry my bad english
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

please check this forum there is scripts like this on here you can easely find something with search function look for bind join

or check the eggdrop/windrop doc and look for bind join , putserv and NOTICE..
XplaiN but think of me as stupid
C
Coolyo

Post by Coolyo »

Thx i will take a look ;)
User avatar
K
Voice
Posts: 34
Joined: Wed Jan 28, 2004 7:31 pm
Location: Romania @sibiu
Contact:

here

Post by K »

very simple

Code: Select all

#Type the chan

set onjoin_msg {
 {
  "The text you whant to notice"
 }
}
set onjoin_chans "#talmaciu #strand"

bind join - * join_onjoin


proc join_onjoin {nick uhost hand chan} {
 global onjoin_msg onjoin_chans botnick
 if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_$
  set onjoin_temp [lindex $onjoin_msg [rand [llength $onjoin_msg]]]
  foreach msgline $onjoin_temp {
   puthelp "NOTICE $nick :[subst $msgline]"
  }
 }
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

set joinmsg "Your msg!"

setudef flag joinmsg

bind join - * join:msg 

proc join:msg {nick uhost hand chan} { 
  if {[isbotnick $nick] || ![channel get $chan joinmsg]} { 
    return 
  } 
putserv "PRIVMSG $nick :$::joinmsg"
}
To enable use .chanset #channel +joinmsg and to disable it use the .chanset #channel -joinmsg and replace #channel with the actual name of the channel.
Once the game is over, the king and the pawn go back in the same box.
Locked