mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 24
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Apr 2003
Posts: 24
What i need to do but have no clue where to start is this
I want random ammount of letters / numbers at the beggining of a sentence.
eg.
abcd HELLO
abcdef HELLO
abc HELLO

Any and all help appreciated.
Thanks

Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:INPUT:#:{
msg # $replace($1-,$1-,$str($r(a,z),$r(1,10)) $+ $1-)
}

Last edited by pheonix; 28/05/03 10:32 PM.

new username: tidy_trax
Joined: May 2003
Posts: 9
B
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: May 2003
Posts: 9
bit ambiguous but i'll try,

if u want a random number of 1-x random letters then use:
$str($rand(a, z), $rand(1, x)

or if u want it ordered like abcdef... and still x number of letters then the easiest way is to do :
/set %charlist abcdefghijklmnopqrstuvwxz
in a chan or status win, then use:
$left(%charlist, $rand(1, x))

if both they are wrong pls b more specific

laugh

Joined: Apr 2003
Posts: 24
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Apr 2003
Posts: 24
Thanks for the help all
I got there using a text file but it does the job I needed.


Link Copied to Clipboard