Well its been a while since i posted a script on hawkee..so here it is. any questions im on irc.cyanide-x.net my nick is Kirby. ty rate and hate AND i didnt add color you can add it
just a simple Auto voicer!
on *:TEXT:.av on*:#:{
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
set %Av [ $+ [ $chan ] ] on
msg $chan Autovoice is on for $chan
}
}
on *:TEXT:.av off*:#:{
if (%Av [ $+ [ $chan ] ] == on) {
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
unset %Av [ $+ [ $chan ] ]
msg $chan Autovoice is off for $chan
}
}
}
on *:TEXT:.av*:#:{
if (%av [ $+ [ $chan ] ] == on) {
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
set %Auv [ $+ [ $address($2,2) ] ] $address($2,2)
msg $chan $address($2,2) added to autovoice list.
}
}
}
on *:TEXT:.deav*:#:{
if (%av [ $+ [ $chan ] ] == on) {
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
unset %Auv [ $+ [ $address($2,2) ] ] $address($2,2)
msg $chan $address($2,2) removed from autovoice list
}
}
}
on *:JOIN:#:{
if (%av [ $+ [ $chan ] ] == on) && (%Auv [ $+ [ $address($2,2) ] ] == $address($nick,2)) {
mode $chan +v $nick
}
}
dont worry, i did this while i was tired out of my mind, and i scripted it without testing
alias isq if ($1 isop $2 || $1 ishop $2 || $address($1,2) == $address($me,2)) return $true
on *:JOIN:#:{ if ($($+(%,av,$chan),2)) && ($($+(%,av,$address($,2)),2) == $address($nick,2)) mode $chan +v $nick }
on *:text:/^[!@#^](de)?av/gi:# {
if ($isq($nick,#)) {
if (*deav !iswm $1) {
if ($2 == on || $2 == off) {
$iif($2 == on,set,unset) %Av $+ $chan on
msg $chan Autovoice is $iif($2 == on,on,off) for $chan
halt
}
set $+(%av,$address($,2)) $address($2,2)
msg $chan $address($2,2) added to autovoice list.
}
unset $+(%av,$address($,2))
msg $chan $2 removed from autovoice list
}
}
much cleaner.
jesus.. mine destroys all of yours
lol
Btw, this is wrong:
on *:JOIN:#:{
if (%av [ $+ [ $chan ] ] == on) && (%Auv [ $+ [ $address($2,2) ] ] == $address($nick,2)) {
mode $chan +v $nick
}
}
The ) after the on ends the if statement). You need:
on *:JOIN:#:{
if ((%av [ $+ [ $chan ] ] == on) && (%Auv [ $+ [ $address($2,2) ] ] == $address($nick,2)) {
mode $chan +v $nick
}
}
You could add all your on text's into one:
on *:TEXT:*:#: {
if (.av == $strip($1)) && (on == $strip($2)) {
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
set %Av [ $+ [ $chan ] ] on
msg $chan Autovoice is on for $chan
}
}
if (.av == $strip($1)) && (off == $strip($2)) {
if (%Av [ $+ [ $chan ] ] == on) {
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
unset %Av [ $+ [ $chan ] ]
msg $chan Autovoice is off for $chan
}
}
if (.av == $strip($1)) {
if (%av [ $+ [ $chan ] ] == on) {
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
set %Auv [ $+ [ $address($2,2) ] ] $address($2,2)
msg $chan $address($2,2) added to autovoice list.
}
}
if (.deav == $strip($1)) {
if (%av [ $+ [ $chan ] ] == on) {
if ($nick isop $chan || $nick ishop $chan || $address($nick,2) == $address($me,2)) {
unset %Auv [ $+ [ $address($2,2) ] ] $address($2,2)
msg $chan $address($2,2) removed from autovoice list
}
}
}