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

	<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>2003-12-16T13:34:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-16T13:34:52-04:00</updated>

		<published>2003-12-16T13:34:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31511#p31511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31511#p31511"/>
		<title type="html"><![CDATA[sponsor advert tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31511#p31511"><![CDATA[
<blockquote class="uncited"><div>set currentad "[lindex $::ads [rand [llength $::ads]]]"</div></blockquote>this returns a random message from $ads, so probably each time it'll be a different message.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 16, 2003 1:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[collett9]]></name></author>
		<updated>2003-12-16T10:38:46-04:00</updated>

		<published>2003-12-16T10:38:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31500#p31500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31500#p31500"/>
		<title type="html"><![CDATA[sponsor advert tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31500#p31500"><![CDATA[
so.. if I understand you correctly<br><br>for example below<div class="codebox"><p>Code: </p><pre><code>set adchan "#teamefn"set ads { "WiredLabs"               "WiredServers"               "Olternit"               "iDesigns"            } bind time - "25 *" time:ad proc time:ad { mi h d m y } {   set currentad "[lindex $::ads [rand [llength $::ads]]]"   foreach adchan [channels] {     puthelp "PRIVMSG $adchan :$currentad"   }   return } </code></pre></div>^ That will advertise the 4 in the list at random (or in order, doesn't matter, as long as it's a new one every time) at :25 past the hour, every hour, in all channels<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4267">collett9</a> — Tue Dec 16, 2003 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-12-16T10:22:38-04:00</updated>

		<published>2003-12-16T10:22:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31499#p31499</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31499#p31499"/>
		<title type="html"><![CDATA[sponsor advert tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31499#p31499"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set ads { "ad 1"               "ad 2"               "so forth"               "so on"            } bind time - "25 *" time:ad proc time:ad { mi h d m y } {  foreach adchan [channels] {    puthelp "PRIVMSG $adchan :[lindex $::ads [rand [llength $::ads]]]"  }   return } </code></pre></div>if you want the same ad msg'd to all channels;<div class="codebox"><p>Code: </p><pre><code>proc time:ad { mi h d m y } {  set currentad "[lindex $::ads [rand [llength $::ads]]]"  foreach adchan [channels] {    puthelp "PRIVMSG $adchan :$currentad"  }   return } </code></pre></div>edit: fixed broken [censored]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Tue Dec 16, 2003 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[collett9]]></name></author>
		<updated>2003-12-16T09:59:53-04:00</updated>

		<published>2003-12-16T09:59:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31497#p31497</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31497#p31497"/>
		<title type="html"><![CDATA[sponsor advert tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31497#p31497"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set adchan "#shells" </code></pre></div>I want it to /amsg it, so just seperate the channel with ","'s ?<br><br>also, did your script include the time? (I am really new to this), if it didn't, I'd like it to spam every hour at like :25 after<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4267">collett9</a> — Tue Dec 16, 2003 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-12-16T08:10:03-04:00</updated>

		<published>2003-12-16T08:10:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31491#p31491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31491#p31491"/>
		<title type="html"><![CDATA[sponsor advert tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31491#p31491"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set adchan "#shells"set ads { "ad 1"              "ad 2"              "so forth"              "so on"           }bind time - "00 *" time:adproc time:ad { mi h d m y } {  global adchan ads  puthelp "PRIVMSG $adchan :[lindex $ads [rand [llength $ads]]]"  return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Tue Dec 16, 2003 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[collett9]]></name></author>
		<updated>2003-12-15T23:40:14-04:00</updated>

		<published>2003-12-15T23:40:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31484#p31484</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31484#p31484"/>
		<title type="html"><![CDATA[sponsor advert tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31484#p31484"><![CDATA[
I want to make a script for advertising our sponsors's "messages" every hour or so, but a different message each time (random), how do I do this?<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4267">collett9</a> — Mon Dec 15, 2003 11:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
