mIRC Home    About    Download    Register    News    Help

Print Thread
#123138 20/06/05 04:20 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
hey guys i have this piece of code that was written/posted by tidy_trax and DaveC and i was just wondering how to make it sent the text to my channel instead of to main mirc window...say my channel name is #burlapsac...where would this have to be written in the following script?


alias ran {
var %g = 1, %i, %r, %random, %s, %w
while ($gettok($1-,%g,32)) {
%w = $mid($v1,2,-1)
%random = %w
while ((%w == %random) && ($len(%w) > 1)) {
%i = 1
while (%i <= $len(%random)) {
%r = $rand(%i,$len(%random))
%random = $+($mid(%random,%r,1),$iif(%r >

1,$mid(%random,1,$calc(%r -

1))),$mid(%random,$calc(%r + 1)))
inc %i
}
}
%s = %s

$+($mid($gettok($1-,%g,32),1,1),%random,$right($mid(

$gettok($1-,%g,32),2),1))
inc %g
}
echo -st say %s
}

once again thanks for the help and thanks to tidy_trax and DaveC for the neat little script.

#123139 20/06/05 04:36 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Replace the echo line at the end with:

msg #yourchan %s


Invision Support
#Invision on irc.irchighway.net
#123140 20/06/05 04:50 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
cool...thanks!


Link Copied to Clipboard