<?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/9642" />

	<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>2005-05-19T07:36:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-05-19T07:36:50-04:00</updated>

		<published>2005-05-19T07:36:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49602#p49602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49602#p49602"/>
		<title type="html"><![CDATA[colourful output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49602#p49602"><![CDATA[
Hmm.. try:<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $channel :[lindex \0034$infos\017 \035$x]"</code></pre></div>\017 resets to the default output.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu May 19, 2005 7:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fajja]]></name></author>
		<updated>2005-05-19T07:23:29-04:00</updated>

		<published>2005-05-19T07:23:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49601#p49601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49601#p49601"/>
		<title type="html"><![CDATA[colourful output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49601#p49601"><![CDATA[
i tried what sir_fz said, but it still wont output the colours.. it works for simple things. but when i try and get it to output variable in a msg, they are still in black and white no matter where i put the code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>any suggestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6205">fajja</a> — Thu May 19, 2005 7:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-05-16T10:22:41-04:00</updated>

		<published>2005-05-16T10:22:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49548#p49548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49548#p49548"/>
		<title type="html"><![CDATA[colourful output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49548#p49548"><![CDATA[
For detailed information on TCL colour codes see this <a href="http://forum.egghelp.org/viewtopic.php?p=40548" class="postlink">post</a> by ppslim.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon May 16, 2005 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-16T08:52:24-04:00</updated>

		<published>2005-05-16T08:52:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49541#p49541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49541#p49541"/>
		<title type="html"><![CDATA[colourful output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49541#p49541"><![CDATA[
it should be:<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $channel :\colourbitinheere[lindex $infos $x]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon May 16, 2005 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fajja]]></name></author>
		<updated>2005-05-16T06:34:00-04:00</updated>

		<published>2005-05-16T06:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49532#p49532</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49532#p49532"/>
		<title type="html"><![CDATA[colourful output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49532#p49532"><![CDATA[
ok i tried that, i get more part with colour in it now, but it still doesnt affect the output for the tabled variable, if an argument is in [ ] do i have to put the colour code in the brackets or outside?<br><blockquote class="uncited"><div> for {set x 0} {$x&lt;[llength $infos]} {incr x} {<br>putserv "PRIVMSG $channel :[lindex $infos $x]"<br>} </div></blockquote>i tried <blockquote class="uncited"><div> for {set x 0} {$x&lt;[llength $infos]} {incr x} {<br>putserv "PRIVMSG $channel :[\colourbitinheere lindex $infos $x]"<br>} <br>but this blocked the output <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>cheers for your help!</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6205">fajja</a> — Mon May 16, 2005 6:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-16T05:39:14-04:00</updated>

		<published>2005-05-16T05:39:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49526#p49526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49526#p49526"/>
		<title type="html"><![CDATA[colourful output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49526#p49526"><![CDATA[
you can add "\002\0030,2" before the variable. Something like:<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $channel :\002\0030,2$arg"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon May 16, 2005 5:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fajja]]></name></author>
		<updated>2005-05-16T04:58:33-04:00</updated>

		<published>2005-05-16T04:58:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49518#p49518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49518#p49518"/>
		<title type="html"><![CDATA[colourful output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49518#p49518"><![CDATA[
Hi, i got this script working , its from the warmanager.tcl. however i want to brighten things up a bit. I have it so that it says most of the stuff and white writing on a blue background. but if the information its displaying is from a stored variable (such as a n upcoming match then these lines are plain black and white. here is part of the code <br><blockquote class="uncited"><div>proc war_upcoming {nick uhost handle channel arg} {<br>  global war_list war_privchan war_shownumber war_nicksize war_trigger<br>  set channel [string tolower $channel]<br>  if {[llength $arg]==0} {<br>    set arg $war_shownumber<br>  } elseif {([llength $arg]&gt;1)||($arg&gt;10)} {<br>    putserv "NOTICE $nick :\002\0030,2Invalid args ( [string trim $war_trigger]upcoming &lt;number&gt; ) and &lt;number have to be 10 or lower."<br>    return 0<br>  }<br>  if {$channel==$war_privchan} {<br>    set war_upcoming <ul>    <li>foreach war $war_list {<br>      if {([lrange $war 3 4]=="n/a n/a")&amp;&amp;([lindex $war 1]&gt;[unixtime])} {<br>        set war_upcoming [linsert $war_upcoming end [lindex $war 0]]<br>      }<br>    }<br>    if {[llength $war_upcoming]&gt;0} {<br>      putserv "PRIVMSG $channel : \002\0030,2Upcoming Matches :"<br>      set warid ""<br>      for {set x 0} {$x&lt;$arg} {incr x} {<br>        if {$x&gt;[expr [llength $war_upcoming]-1]} { <br>          break<br>        }<br>        set warid [linsert $warid end [lindex $war_upcoming $x]]<br>      }<br>      set infos ""<br>      for {set x 0} {$x&lt;[llength $warid]} {incr x} {<br>        set tempinfos [war_getinfos [lindex $warid $x] $war_nicksize]<br>        set hour [lindex $tempinfos 1]<br>        set date [lindex $tempinfos 2]<br>        set players [lindex $tempinfos 7]<br>        set number [lindex $tempinfos 9]<br>        set actualplayers [lindex $tempinfos 10]<br>        set tempinfos [lreplace $tempinfos 9 10]<br>        set tempinfos [lreplace $tempinfos 4 5]<br>        if {[string first "- Substitute:" $players]&gt;-1} {<br>          set stringindex [string first "- Substitute:" $players]<br>          set players "[string range $players 0 [expr $stringindex-1]][string range $players [expr $stringindex+1] [expr $stringindex+13]][string range $players [expr $stringindex+15] end]"<br>          set tempinfos [lreplace $tempinfos 5 5 $players]<br>        }<br>        set tempinfos [lreplace $tempinfos 5 5 "[lindex $tempinfos 5] ($actualplayers/$number)"]<br>        set tempinfos [lreplace $tempinfos 1 2 "$date - $hour"]<br>        set tempinfos [linsert $tempinfos 1 [lindex $tempinfos 2]]<br>        set tempinfos [lreplace $tempinfos 3 3]<br>        set infos [linsert $infos end $tempinfos]<br>      }<br>      set infos [linsert  $infos 0 "ID: Opponent: Date: Maps: Players: Infos:"]<br>      for {set x 0} {$x&lt;6} {incr x} {<br>        set length 0<br>        for {set y 0} {$y&lt;[llength $infos]} {incr y} {<br>          if {[string length [lindex [lindex $infos $y] $x]]&gt;$length} {<br>            set length [string length [lindex [lindex $infos $y] $x]]<br>          }<br>        }<br>        incr length 3<br>        for {set y 0} {$y&lt;[llength $infos]} {incr y} {<br>          for {set z [string length [lindex [lindex $infos $y] $x]]} {$z&lt;$length} {incr z} {<br>            set newelement "[lindex [lindex $infos $y] $x] "<br>            set newinfos [lreplace [lindex $infos $y] $x $x $newelement]<br>            set infos [lreplace $infos $y $y $newinfos]<br>          }<br>        }<br>      }<br>      set length 0<br>      for {set y 1} {$y&lt;[llength $infos]} {incr y} {<br>        if {[string length [lindex [lindex [lindex $infos $y] 2] 0]]&gt;$length} {<br>          set length [string length [lindex [lindex [lindex $infos $y] 2] 0]]<br>        }<br>      }<br>      incr length<br>      for {set y 1} {$y&lt;[llength $infos]} {incr y} {<br>        for {set z [string length [lindex [lindex [lindex $infos $y] 2] 0]]} {$z&lt;$length} {incr z} {<br>          set newelement "[lindex [lindex [lindex $infos $y] 2] 0] "<br>          set newdate [lreplace [lindex [lindex $infos $y] 2] 0 0 $newelement]<br>          set newdate [string range $newdate 0 [expr [string length $newdate]-2]]<br>          set newinfos [lreplace [lindex $infos $y] 2 2 $newdate]<br>          set infos [lreplace $infos $y $y $newinfos]<br>        }<br>        set newdate "[lindex [lindex $infos $y] 2] "<br>        set newinfos [lreplace [lindex $infos $y] 2 2 [join $newdate]]<br>        set infos [lreplace $infos $y $y $newinfos]<br>      }<br>      for {set x 0} {$x&lt;6} {incr x} {<br>        set newelement "\002\0030,2[lindex [lindex $infos 0] $x]"<br>        set newinfos [lreplace [lindex $infos 0] $x $x $newelement]<br>        set infos [lreplace $infos 0 0 $newinfos]<br>      }<br>      for {set x 0} {$x&lt;[llength $infos]} {incr x} {<br>        set infos [lreplace $infos $x $x [join [lindex $infos $x]]]<br>      }<br>      for {set x 0} {$x&lt;[llength $infos]} {incr x} {<br>        putserv "PRIVMSG $channel :[lindex $infos $x]"<br>      }<br>      if {$arg&gt;[llength $warid]} { <br>        putserv "PRIVMSG $channel :\002\0030,2You have seen all match"<br>        return 0<br>      }<br>    } else {<br>      putserv "NOTICE $nick :\002\0030,2No match found"<br>      return 0<br>    }<br>  }<br>}</li></ul></div></blockquote>\002\0030,2 is the colours i want to use but i dont know where to put the code that the the output from match variable will be the same colours...<br>thank you for any help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6205">fajja</a> — Mon May 16, 2005 4:58 am</p><hr />
]]></content>
	</entry>
	</feed>
