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.

Request A delay voice script

Old posts that have not been replied to for several years.
Locked
T
TakaShi^^
Voice
Posts: 36
Joined: Sat Apr 30, 2005 4:20 am
Location: Singapoe

Request A delay voice script

Post by TakaShi^^ »

First it look like tis when a user join a channels...

User sets mode: +v-v User1 User1

After a while..about 30seconds...

User sets mode: +v User1

do anyone have tis script =\
Im learning!!!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind join - * voice:delay

proc voice:delay {nick uhost hand chan} {
 puthelp "MODE $chan +v-v $nick $nick"
 utimer 30 [list pushmode $chan +v $nick]
}
T
TakaShi^^
Voice
Posts: 36
Joined: Sat Apr 30, 2005 4:20 am
Location: Singapoe

Post by TakaShi^^ »

w0w thank for ur delayed-voice script ^_^

hmm ... one qns...if i wan tis script to work on one channel...how?
Im learning!!!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

you can use

Code: Select all

bind join - "#channel *" voice:delay
T
TakaShi^^
Voice
Posts: 36
Joined: Sat Apr 30, 2005 4:20 am
Location: Singapoe

Post by TakaShi^^ »

i sense tis script is noisy....when netsplit time ....

* USER sets mode: -v user1
* USER sets mode: -v user2
* USER sets mode: -v user3
* USER sets mode: -v user4
* USER sets mode: -v user5

How to improve tis script so tat even if any user have the modes +v did not have to be devoice by USER
Im learning!!!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Code: Select all

bind join - "*" voice:delay

proc voice:delay {nick uhost hand chan} {
 utimer 30 [list do:voice $nick $chan]
}

proc do:voice {nick chan} {
 if {![isvoice $nick $chan] && [botisop $chan]} {
  pushmode $chan +v $nick
  }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

TakaShi^^ wrote:i sense tis script is noisy....when netsplit time ....

* USER sets mode: -v user1
* USER sets mode: -v user2
* USER sets mode: -v user3
* USER sets mode: -v user4
* USER sets mode: -v user5

How to improve tis script so tat even if any user have the modes +v did not have to be devoice by USER
if you want to check if nick is already voiced then add

Code: Select all

if {![isvoice $nick $chan]} {
before the puthelp line (and don't forget to close the brace)

Edit: Forgot to specify $chan in the isvoice command (good eye awyeah), otherwise it would check if nick isvoice on all channels (returns 1 if voiced on atleast 1 channel)
Last edited by Sir_Fz on Thu May 26, 2005 5:11 pm, edited 1 time in total.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Sir_Fz wrote: if you want to check if nick is already voiced then add

Code: Select all

if {![isvoice $nick]} {
before the puthelp line (and don't forget to close the brace)
This is wrong, use:

Code: Select all

if {![isvoice $nick $chan]} {
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked