Wednesday, April 05, 2006

Testing some google crap


Tuesday, July 13, 2004

how can i make 1234 to 1000, or 1523 to 2000

//echo -a $calc($round($calc(1234 / $+(1,$str(0,$calc($len(%nr)-1)))),0) * $+(1,$str(0,$calc($len(1234)-1))))

Nasty Words...

I was asked:
need help on a on text multi text trigger
like this
on *:text:*bitch*hoe*fuck*shit*damnit*damn*:*: { /msg $chan don't say that $nick ! }
that don't work though
--------
my respond:
--------
Code

on *:text:*:*:{
set %counter 1
while %counter <= $0 {
set %counter2 1
while %counter2 <= $gettok(%words,0,44) {
if ($($+($,%counter),2) == $gettok(%words,%counter2,44)) {
msg $chan ....
return
}
inc %counter2
}
inc %counter
}
unset %counter
unset %counter2
}

---------

then you only need to set the variable %words with the words you whant...
msg $chan .... is the command to be done
return is to make it stop if find one word, if youre gonna use it for a counter remove this...

use a list within a file...

I was asked the following question:
hey, I got a .txt file of my friends and I wanna make an alias to msg everyone from that file, using the $read i think, can anyone help me

This was my answer:
--------
alias sendtext {
set %counter001 1

while (%counter001 <= $lines(file.txt)) {

msg $read(file.txt,%counter001) Text to send

inc %counter001

}

}

--------