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

	<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-01-01T21:33:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-01-01T21:33:51-04:00</updated>

		<published>2003-01-01T21:33:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14773#p14773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14773#p14773"/>
		<title type="html"><![CDATA[Creating a Script for moving networks and informing users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14773#p14773"><![CDATA[
hello <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Well, my irc channel is moving networks on friday, so i need to quickly code a script to announce this to people. I made the script below, but since this is using two bits of code i never used before, i am not sure if they will work. Since i cant test on my bot, without proving to be a pain in the ass to channel users, i would ask if any of you can check this for me?<br><div class="codebox"><p>Code: </p><pre><code>#Cometanime Network move scriptset chanl(main) "#weirdo"set network "irc.faereal.net"set notice(onjoin) "Welcome to the Old Cometanime IRC Channel. The channel is in a process of moving to $network . All channel services being moved to there. Do !info in channel and I will send you information on how to set your client up, and how to connect to the new network"set notice(public) "The #cometanime Membership have moved to the new #cometanime channel on $network .Hope to see you there. For help on accessing the new channel, do !info in the public channel."bind join - "$chanl(main) *" join:onchanjoinproc join:onchanjoin {nick uhost hand chan} {global chanl network noticeputserv "Notice $nick :$notice(onjoin)"putlog "$nick just joined $chanl(main)"}proc pubnotice {} {global chanl network noticefor {set number 1} {} {} {timer 15 [putserv "Notice $chanl(main) :$notice(public)}putlog "Notice Applied to $chanl(main)"}</code></pre></div>The For loop is quite confusing to me. Have never got the hang of loops before, and this:<br><blockquote class="uncited"><div>*The syntax of a [for] command is [for { &lt;start&gt; } { &lt;check&gt; } { &lt;loop&gt; } { &lt;body&gt; }].*<br><br>The &lt;start&gt; is the command you want to be executed before the loop starts.<br>This can be setting a string to 0 for instance.<br><br>The &lt;check&gt; is the check that is made while the loop is running and works in the same way as the<br>check in the [while] loop.<br><br>The &lt;loop&gt; is the command you want to be executed every time a loop has ended.<br>This can be increasing a string with 1 for instance.</div></blockquote>... just confused me more. As i not sure if this is the right one i need. Want it to keep running, but wait for 15 mins between displaying the messages. Would a while loop work better?<br><br>I have chanserv doing the on join msg, but since that is why we moving, chanserv is buggy, well i making an onjoin thing anyway. <br><br>Thank you in advance<br><br>Seb [/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Jan 01, 2003 9:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
