autovoice tcl script with special tag ?!

Any other programming language that is not covered in the Web Scripting category.

autovoice tcl script with special tag ?!

Postby d0ppel-D on Sat Jul 22, 2006 11:55 am

hey guys,

i'm in need of an script for my eggdrop that autovoices everyone with a special tag in the name ... eg [phoenix-clan]nickname ...

is it possible to use e.g. " [phoenix-clan]$nick " as variable in a tcl script?
YOU ARE THE SHOGUN CUT THEM INTO PIECES
d0ppel-D
Contributer
Contributer
 
Posts: 31
Joined: Sat Jul 15, 2006 1:51 pm
Location: Germany

Postby De Kus on Sun Jul 23, 2006 10:46 am

search on egghelp.org, I have seen a few on the forums there.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby Heikanu on Sun Jul 23, 2006 11:12 am

Code: Select all
set chan "#CHANNEL"
bind JOIN - * on_join

proc on_join { nick host hand chan } {
global chan
putquick "MODE $chan +v $nick"
}


This autovoices everyone, but I don't have time to edit it atm Smile
Heikanu
Regular
Regular
 
Posts: 88
Joined: Fri May 19, 2006 11:17 pm
Location: Netherlands

Postby d0ppel-D on Sun Jul 23, 2006 2:28 pm

would this:



Heikanu wrote:
Code: Select all
set chan "#CHANNEL"
bind JOIN - * on_join

proc on_join { nick host hand chan } {
global chan
putquick "MODE $chan +v [TAG]$nick"
}



voice everyone with a [TAG] in front of his/her nick?
YOU ARE THE SHOGUN CUT THEM INTO PIECES
d0ppel-D
Contributer
Contributer
 
Posts: 31
Joined: Sat Jul 15, 2006 1:51 pm
Location: Germany

Postby Heikanu on Sun Jul 23, 2006 4:50 pm

Nope, this would probably voice everyone that are called [TAG]Nick. If someones nickname would be TAGnick, it would only voice TAGTAGnick Razz
Heikanu
Regular
Regular
 
Posts: 88
Joined: Fri May 19, 2006 11:17 pm
Location: Netherlands

Postby d0ppel-D on Mon Jul 24, 2006 11:32 am

what would be the right command to voice everyone with the tag?
YOU ARE THE SHOGUN CUT THEM INTO PIECES
d0ppel-D
Contributer
Contributer
 
Posts: 31
Joined: Sat Jul 15, 2006 1:51 pm
Location: Germany


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron