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.

!voice script

Old posts that have not been replied to for several years.
Locked
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

!voice script

Post by Pitchat »

hi

one small thing to ask

i`d like to have a script that voice ppl when they do !voice and devoice them when they type !devoice

no more moless ;)

thanks for the help
R
RaDoM
Voice
Posts: 17
Joined: Mon Mar 10, 2003 2:32 pm
Location: uNd3rGr0uNd C1Ty

Post by RaDoM »

very easy :)

Code: Select all

# [BINDS]
bind pub - !voice pub_voice
bind pub - !devoice pub_devoice

# [VOICE]
proc pub_voice {nick host hand chan text} {
putquick "MODE $chan +v $nick"
}

# [DEVOICE]
proc pub_devoice {nick host hand chan text} {
putquick "MODE $chan -v $nick"
}
nice, :)
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

Post by Pitchat »

shame on me !

i was strugglin with the putquick ,

is it possible that putserv do the same action ?
i`m fairly new to tcl and i try to learn by myself .


thanks a lot
m
mortician
Voice
Posts: 37
Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:

Post by mortician »

try reading tcl-commands.doc :P
putquick <text> [options]

Description: sends text to the server, like 'putserv', but it uses a different (and faster) queue.
It is a mistake to think you can solve any major problems just with potatoes.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

An check to see if bot is op (botisop), nick is voiced (isvoice) and/or nick is oped (isop) will be fine.
Once the game is over, the king and the pawn go back in the same box.
Locked