mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2015
Posts: 7
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Joined: Feb 2015
Posts: 7
I am using this script:

Code:
on *:connect: {
  /timer1 0 150 msg #mychannel $!read(random.txt,n)
}


I tried using this command but can not get it to work:

Code:
$chr(3) $+ $r(13,0) $+ $read(file.txt)


Pink color is 13

Thanks!!

Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Hi! If you want to use pink you dont need $r
Code:
$+($chr(03),13,!$read(random.txt))

This should work smile

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
$r is a shortcut for $rand, which return a random number so it's going to be a random color, just replace that with the number of the color you want

Edit: this is what happens when you start writting a reply and finish it hours later

Last edited by Wims; 10/10/15 03:53 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard