<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/20885" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2020-11-29T10:32:43-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/20885</id>

		<entry>
		<author><name><![CDATA[KhashayaR]]></name></author>
		<updated>2020-11-29T10:32:43-04:00</updated>

		<published>2020-11-29T10:32:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109217#p109217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109217#p109217"/>
		<title type="html"><![CDATA[$ch r(3) $+ $r(1,7)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109217#p109217"><![CDATA[
Thanks alot guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9165">KhashayaR</a> — Sun Nov 29, 2020 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-11-27T16:09:18-04:00</updated>

		<published>2020-11-27T16:09:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109216#p109216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109216#p109216"/>
		<title type="html"><![CDATA[$ch r(3) $+ $r(1,7)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109216#p109216"><![CDATA[
was fiddling with it some more seems to be working fine  thanx crazycat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Nov 27, 2020 4:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-11-27T14:17:27-04:00</updated>

		<published>2020-11-27T14:17:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109215#p109215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109215#p109215"/>
		<title type="html"><![CDATA[$ch r(3) $+ $r(1,7)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109215#p109215"><![CDATA[
excellent crazycat that worked i was wondering  if this could  be called by other tcl scripts for example for kick messages<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Nov 27, 2020 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-11-27T13:28:21-04:00</updated>

		<published>2020-11-27T13:28:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109214#p109214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109214#p109214"/>
		<title type="html"><![CDATA[$ch r(3) $+ $r(1,7)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109214#p109214"><![CDATA[
Create a list of bg colors and a list of fg colors and select random in each.<br><div class="codebox"><p>Code: </p><pre><code>set fg {00 08 09 11 15}set bg {01 02 03 04 05 06 07 10 12 14}proc colors {} {   set mfg [lindex $::fg [rand [llength $::fg]]]   set mbg [lindex $::bg [rand [llength $::bg]]]   return "\003${mfg},${mbg}"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Nov 27, 2020 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-11-27T11:34:27-04:00</updated>

		<published>2020-11-27T11:34:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109213#p109213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109213#p109213"/>
		<title type="html"><![CDATA[$ch r(3) $+ $r(1,7)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109213#p109213"><![CDATA[
this seems to work  for me but i was wondering if only certain random colors could be used for foreground and background<br><div class="codebox"><p>Code: </p><pre><code>bind pub n|n  .rcols random:colsproc random:cols {nick host hand chan text} {  putquick "privmsg $chan \00300,[expr {int(6*rand() + 1)}] $text \017"  }</code></pre></div>if possible i was curious how to use the following config:<br><br>for foreground i would like to use: <blockquote class="uncited"><div> 00 08 09 11 15 </div></blockquote>for background i would like to use: <blockquote class="uncited"><div> 01 02 03 04 05 06 07 10 12 14 </div></blockquote>this is the msl version: <br><blockquote class="uncited"><div> $+($chr(3),$base($gettok(00 08 09 11 15,$r(1,5),32),10,10,2),$chr(44),$base($gettok(1 2 3 5 6 7 10 12 14,$r(1,9),32),10,10,2)) </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Nov 27, 2020 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-11-27T08:11:07-04:00</updated>

		<published>2020-11-27T08:11:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109211#p109211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109211#p109211"/>
		<title type="html"><![CDATA[$ch r(3) $+ $r(1,7)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109211#p109211"><![CDATA[
Simplest way:<div class="codebox"><p>Code: </p><pre><code>set col [format "%.02d" [expr {1 + round(rand()*6}]]set ch "\003${col}"</code></pre></div>Note that IRC colors goes from 0 (white= to 15). If you want to use all of them but the white, change the "6" to 14.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Nov 27, 2020 8:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KhashayaR]]></name></author>
		<updated>2020-11-27T06:43:52-04:00</updated>

		<published>2020-11-27T06:43:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109210#p109210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109210#p109210"/>
		<title type="html"><![CDATA[$ch r(3) $+ $r(1,7)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109210#p109210"><![CDATA[
hello <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> is it possible to have translate $ch r(3) $+ $r(1,7) to TCL language? this will give a random color to output text Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9165">KhashayaR</a> — Fri Nov 27, 2020 6:43 am</p><hr />
]]></content>
	</entry>
	</feed>
