Colored nick (when not $1, but anywhere in sent..) - 01/03/10 06:44 PM
Hi,
This script (also a talker..) colors the nick I'm saying when it is the first word of my sentence. But I want to have it that whenever I say a nick, so not only when I say "Chloe how are you" but also when I say "how are you Chloe" that the nick (ison $active) also then gets colored with the alias 'randc' (included.)
This is the code, I let the first part out because that's the part of the talker. Which isnt needed here. This part is the part of the colored nick.
Note: %teller is from the other talker. It aint a problem here.
This script (also a talker..) colors the nick I'm saying when it is the first word of my sentence. But I want to have it that whenever I say a nick, so not only when I say "Chloe how are you" but also when I say "how are you Chloe" that the nick (ison $active) also then gets colored with the alias 'randc' (included.)
This is the code, I let the first part out because that's the part of the talker. Which isnt needed here. This part is the part of the colored nick.
Code:
if ($1 ison $active) { if (/* !iswm $1-) && (!$ctrlenter) && (!$inpaste) { if ($len($1) == 1) { halt } else { inc %teller msg $active 13,1«4»13.4.13|4|13¤ $randc($1) $+ 00 $2- 6¤4|13|4.13.4«13» halt } halt } } } alias randc { var %cols = 4 7 8 9 11 12 13 return $regsubex($strip($$1-),/(\S)/g,$+($chr(3),$base($gettok(%cols,$rand(1,$numtok(%cols,32)),32),10,10,2),\t)) }
Note: %teller is from the other talker. It aint a problem here.