| View previous topic :: View next topic |
| Author |
Message |
Evil Voice
Joined: 10 May 2007 Posts: 17
|
Posted: Thu May 10, 2007 5:10 am Post subject: highlight help |
|
|
Hello
I am looking for a script for an support chan.
- with higliht function to all @ when a User join. the best way was with a Message like ( a new User has joined the Support chan )
I am not sure does that is working or not
it is easy to hear a sound does we sit 24/7 on a conputer
thx for help or a tip |
|
| Back to top |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Thu May 10, 2007 8:08 am Post subject: |
|
|
You are not clear enough, you want to count users coming in the channel? _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*... |
|
| Back to top |
|
 |
Evil Voice
Joined: 10 May 2007 Posts: 17
|
Posted: Thu May 10, 2007 8:40 am Post subject: |
|
|
no not count.
we have a supoort channel and we work with next tcl.
What I need a script was give the supporter a highlight like a slap or what ever... when a user joins the channel....
since must be an easy script but I have not realy an idea
BR/Evil |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu May 10, 2007 9:18 am Post subject: |
|
|
This would send a notice to all registered ops in the channel. As for beeping, some clients support the "Bel" code, but not all, while other (such as mIRC) implement functions to remotely trigger the playing of sounds. None of these are standardized however. I would believe it would be easier to implement this scriptwize on the clients themselves, either triggering on the notice from the eggdrop, or by simply detecting the join themselves..
| Code: | bind join - "#channel %" alert_ops
proc alert_ops {nick host hand chan} {
foreach op [chanlist $chan +o|+o] {
puthelp "NOTICE $op :Alert! $nick joined $chan"
}
} |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Evil Voice
Joined: 10 May 2007 Posts: 17
|
Posted: Thu May 10, 2007 11:12 am Post subject: |
|
|
| works great thanks for help.... |
|
| Back to top |
|
 |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Thu May 10, 2007 10:36 pm Post subject: |
|
|
| Code: | ## you can activate/deactive the script
## usage: .chanset #channel +\-help.notify
## bot's will not be notified & channel op will also be notified. Ops/friends will not be triggered on onjoin.
bind join - * alert_ops
setudef flag help.notify
proc alert_ops {nick host hand chan} {
if {[matchattr $hand of|of $chan]} {return 0}
if {![channel get $chan help.notify]} {return 0}
foreach users [chanlist $chan] {
if {([matchattr [nick2hand $users $chan] o|o $chan]) && (![matchattr [nick2hand $users $chan] b])} {
puthelp "NOTICE $users :Alert! $nick joined $chan"
}
} |
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri May 11, 2007 8:02 am Post subject: |
|
|
Updated version including the channel flag setting suggested by honeybee.
Also will not notice ops when ops, friends, and bots join.
| Code: | bind join -ofb&-of * alert_ops
setudef flag help.notify
proc alert_ops {nick host hand chan} {
if {![channel get $chan help.notify]} {
return 0
}
foreach op [chanlist $chan +o-b|+o] {
puthelp "NOTICE $op :Alert! $nick joined $chan"
}
} |
Edit: Fixed issue with the flag-credential in the join-binding. _________________ NML_375, idling at #eggdrop@IrcNET
Last edited by nml375 on Fri May 11, 2007 1:22 pm; edited 1 time in total |
|
| Back to top |
|
 |
Evil Voice
Joined: 10 May 2007 Posts: 17
|
Posted: Fri May 11, 2007 11:37 am Post subject: |
|
|
@ honeybee
I have have a fault on line 9 ....
thanks ofr help.... is it working to write it again in one script ?
and it is working does the bot only give an alert when no @ join , so at this time he give a message for all joins
thanks again
BR/Evil |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri May 11, 2007 1:24 pm Post subject: |
|
|
Seems honeybee just missed a } in the end, add it and the script should work as described. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Evil Voice
Joined: 10 May 2007 Posts: 17
|
Posted: Sat May 12, 2007 8:46 am Post subject: |
|
|
| who exactly ? |
|
| Back to top |
|
 |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Sat May 12, 2007 10:29 am Post subject: |
|
|
| honeybee wrote: | | Code: | ## you can activate/deactive the script
## usage: .chanset #channel +\-help.notify
## bot's will not be notified & channel op will also be notified. Ops/friends will not be triggered on onjoin.
bind join - * alert_ops
setudef flag help.notify
proc alert_ops {nick host hand chan} {
if {[matchattr $hand of|of $chan]} {return 0}
if {![channel get $chan help.notify]} {return 0}
foreach users [chanlist $chan] {
if {([matchattr [nick2hand $users $chan] o|o $chan]) && (![matchattr [nick2hand $users $chan] b])} {
puthelp "NOTICE $users :Alert! $nick joined $chan"
}
}
} |
|
sorry for the missing braces its fixed. |
|
| Back to top |
|
 |
|