mIRC Home    About    Download    Register    News    Help

Print Thread
Apply pink color to $!read(random.txt,n) #255338 10/10/15 12:57 PM
Joined: Feb 2015
Posts: 7
joseluupp Offline OP
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!!

Re: Apply pink color to $!read(random.txt,n) [Re: joseluupp] #255339 10/10/15 02:46 PM
Joined: Feb 2015
Posts: 243
O
OrFeAsGr Offline
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

Re: Apply pink color to $!read(random.txt,n) [Re: joseluupp] #255342 10/10/15 03:52 PM
Joined: Jul 2006
Posts: 3,829
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,829
$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.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net