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 retake

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 retake

Post by Pitchat »

Hi everybody !

I wonder if it is possible to force user to voice themselves only by the eggdrop i.e. if a user enter a chan where my egg is sitting and ask the channel service ( X undernet) to voice him the egg respond by taking back is voice and notify the user to ident himself to the egg and use the voice system provided by the egg

thanks

Pitchat
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

its like u want the bot to be the services in your channel, but only for voice... try finding a similar script in the tcl archive of this webbi or do a forum search.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind mode - "* +v" channel:voice

proc channel:voice {nick uhost hand chan mc vict} {
  if {![botisop $chan] || $nick != "X"} {
    return
  }
  pushmode $chan -v $vict
  putserv "NOTICE $vict :Identify yourself and use the voice system provided by me."
}
Once the game is over, the king and the pawn go back in the same box.
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

Post by Pitchat »

it works great thanks a lot

btw Sir_Fz i did search the tcl archives and the forum bit no voice tcl or anything like that offers that fonction :)

thanks again :)

Pitchat
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

Post by Pitchat »

forget one thing .........

when the voice is retaken from a user i`d like the bot to simpley show it in the partyline to all +m users like " i take back the voice on $chan from $nick


thanks
Pitchat
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

add this code:

Code: Select all

putlog "retook voice from $vict in $chan"
under the putserv "NOTICE...."
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

Post by Pitchat »

yes this method works but it isnt visible for +m users only it is visible for anybody in the party line .

is it possible tu add a flag condition on a putlog ? or something like putdcc m ..... will do fine ?

Pitchat
Locked