egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

highlight help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Evil
Voice


Joined: 10 May 2007
Posts: 17

PostPosted: Thu May 10, 2007 5:10 am    Post subject: highlight help Reply with quote

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
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Thu May 10, 2007 8:08 am    Post subject: Reply with quote

You are not clear enough, you want to count users coming in the channel?
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
Evil
Voice


Joined: 10 May 2007
Posts: 17

PostPosted: Thu May 10, 2007 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu May 10, 2007 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Evil
Voice


Joined: 10 May 2007
Posts: 17

PostPosted: Thu May 10, 2007 11:12 am    Post subject: Reply with quote

works great thanks for help....
Back to top
View user's profile Send private message
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Thu May 10, 2007 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri May 11, 2007 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Evil
Voice


Joined: 10 May 2007
Posts: 17

PostPosted: Fri May 11, 2007 11:37 am    Post subject: Reply with quote

@ 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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri May 11, 2007 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Evil
Voice


Joined: 10 May 2007
Posts: 17

PostPosted: Sat May 12, 2007 8:46 am    Post subject: Reply with quote

who exactly ?
Back to top
View user's profile Send private message
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Sat May 12, 2007 10:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber