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

	<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>2006-04-25T10:41:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[[Lt]im]]></name></author>
		<updated>2006-04-25T10:41:00-04:00</updated>

		<published>2006-04-25T10:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62317#p62317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62317#p62317"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62317#p62317"><![CDATA[
Can You make that user couldn't write only !zinute without text (bot would notice - Please use !zinute &lt;Your text&gt;), and if user tries to write second message in &lt; 20s bot would notice - You can write only 1 message in 20s. Thanks. It would be great...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7473">[Lt]im</a> — Tue Apr 25, 2006 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[Lt]im]]></name></author>
		<updated>2006-04-21T19:34:22-04:00</updated>

		<published>2006-04-21T19:34:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62194#p62194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62194#p62194"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62194#p62194"><![CDATA[
Thank You.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7473">[Lt]im</a> — Fri Apr 21, 2006 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-21T18:51:34-04:00</updated>

		<published>2006-04-21T18:51:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62193#p62193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62193#p62193"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62193#p62193"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set admin_chan "#chans"set public_chan "#chan"bind pub - !zinute pub:admproc pub:adm {nick uhost hand chan arg} { global admin_chan public_chan didcmd if {![info exists didcmd([set nick [string tolower $nick]])] || [unixtime]-$didcmd($nick) &gt; 20} {  set didcmd($nick) [unixtime] } {return 0} if {[string equal -nocase $public_chan $chan]} {  putquick "privmsg $admin_chan :\002!!\002 Zinute adminams \002!!\002 \002$nick\002: $arg"  putquick "notice $nick :\002Jusu zinute sekmingai nusiusta CS:S Geras administratoriams.\002" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Apr 21, 2006 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[Lt]im]]></name></author>
		<updated>2006-04-21T18:34:36-04:00</updated>

		<published>2006-04-21T18:34:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62192#p62192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62192#p62192"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62192#p62192"><![CDATA[
Anyone?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7473">[Lt]im</a> — Fri Apr 21, 2006 6:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[Lt]im]]></name></author>
		<updated>2006-04-20T07:45:26-04:00</updated>

		<published>2006-04-20T07:45:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62138#p62138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62138#p62138"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62138#p62138"><![CDATA[
Thank You <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I need some more help. I have the code:<div class="codebox"><p>Code: </p><pre><code>set admin_chan "#chans"set public_chan "#chan"bind pub - !zinute pub:adm proc pub:adm {nick uhost hand chan arg} { global admin_chan global public_chanif {[string equal -nocase $public_chan $chan]} {   putquick "privmsg $admin_chan :\002!!\002 Zinute adminams \002!!\002 \002$nick\002: $arg"  putquick "notice $nick :\002Jusu zinute sekmingai nusiusta CS:S Geras administratoriams.\002"  }  }</code></pre></div>I want that user could only use this comand once in 20 seconds. Can You help me?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7473">[Lt]im</a> — Thu Apr 20, 2006 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-19T18:08:53-04:00</updated>

		<published>2006-04-19T18:08:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62119#p62119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62119#p62119"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62119#p62119"><![CDATA[
Changing <strong class="text-strong">utimer</strong> to <strong class="text-strong">timer</strong> wouldn't be a solution. If you want it in minutes, then instead of<div class="codebox"><p>Code: </p><pre><code>set msgtime 5</code></pre></div>use<div class="codebox"><p>Code: </p><pre><code>set msgtime !5</code></pre></div>But the code should be fixed:<div class="codebox"><p>Code: </p><pre><code>set msgchans #channelset msgtime 5set msgtext { "text 1" "text 2" "text 3"}if {[string index $msgtime 0] == "!"} { set msgtime [expr {60*[string trim $msgtime !]}] }if {[lsearch [utimers] "* go *"] == -1} { utimer $msgtime go }proc go {} { global msgchans msgtime msgtext msgindex set length [llength $msgtext] if {![info exists msgindex] || $msgindex == $length} { set msgindex 0 } foreach chan $msgchans {  putserv "privmsg $chan :[lindex $msgtext $msgindex]" } incr msgindex timer $msgtime go}</code></pre></div>the ! should be trimmed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Apr 19, 2006 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[Lt]im]]></name></author>
		<updated>2006-04-19T09:46:19-04:00</updated>

		<published>2006-04-19T09:46:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62095#p62095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62095#p62095"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62095#p62095"><![CDATA[
Thank You. It's working.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7473">[Lt]im</a> — Wed Apr 19, 2006 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-04-19T03:25:36-04:00</updated>

		<published>2006-04-19T03:25:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62090#p62090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62090#p62090"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62090#p62090"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set msgchans #channelset msgtime 5set msgtext { "text 1" "text 2" "text 3"}if {[string index $msgtime 0] == "!"} { set msgtime [expr {60*$msgtime}] }if {[lsearch [utimers] "* go *"] == -1} { utimer $msgtime go }proc go {} { global msgchans msgtime msgtext msgindex set length [llength $msgtext] if {![info exists msgindex] || $msgindex == $length} { set msgindex 0 } foreach chan $msgchans {  putserv "privmsg $chan :[lindex $msgtext $msgindex]" } incr msgindex timer $msgtime go}</code></pre></div>Would probably work as you want it too.<br>Don't forget to replace the text1, text2, text3 with whatever you want.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Apr 19, 2006 3:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[Lt]im]]></name></author>
		<updated>2006-04-18T12:54:13-04:00</updated>

		<published>2006-04-18T12:54:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62074#p62074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62074#p62074"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62074#p62074"><![CDATA[
When i tested your tcl i got error:<br><div class="codebox"><p>Code: </p><pre><code>[19:52:38] * Joins: CssGeras (improx@plieninis.tiltas.lt)[19:52:49] &lt;CssGeras&gt; text 1[19:52:51] * ChanServ sets mode: +o CssGeras[19:52:56] &lt;CssGeras&gt; text 2[19:52:58] &lt;CssGeras&gt; text 3[19:53:11] &lt;CssGeras&gt; text 1[19:53:13] &lt;CssGeras&gt; text 2[19:53:15] &lt;CssGeras&gt; text 3...</code></pre></div>Where is the problem? He is allways writing these 3 lines<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7473">[Lt]im</a> — Tue Apr 18, 2006 12:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-18T12:38:47-04:00</updated>

		<published>2006-04-18T12:38:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62073#p62073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62073#p62073"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62073#p62073"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set msgchans #channelset msgtime 5set msgtext { "text 1" "text 2" "text 3"}if {[string index $msgtime 0] == "!"} { set msgtime [expr {60*$msgtime}] }if {[lsearch [utimers] "* go *"] == -1} { utimer $msgtime go }proc go {} { global msgchans msgtime msgtext msgindex set length [llength $msgtext] if {![info exists msgindex] || $msgindex == $length} { set msgindex 0 } foreach chan $msgchans {  putserv "privmsg $chan :[lindex $msgtext $msgindex]" } incr msgindex utimer $msgtime go}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 18, 2006 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[Lt]im]]></name></author>
		<updated>2006-04-18T11:32:58-04:00</updated>

		<published>2006-04-18T11:32:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62066#p62066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62066#p62066"/>
		<title type="html"><![CDATA[Need script: messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62066#p62066"><![CDATA[
I have a script:<div class="codebox"><p>Code: </p><pre><code>set channel "#chan"set time 5set text {"YOUR TXT""YOUR TXT2""YOUR TXT3"}if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }proc go {} {global channel time text timerforeach chan $channel {foreach line $text { putserv "PRIVMSG $chan :$line" }}if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }}</code></pre></div>Bot writes all 3 messages every 5 mins.<br>But i want taht bot would write only 1 message.<br>For example: first text1, then after 5 mins text2, then text3,... and again text1... Can anyone help me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7473">[Lt]im</a> — Tue Apr 18, 2006 11:32 am</p><hr />
]]></content>
	</entry>
	</feed>
