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

	<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-11-26T10:46:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-11-26T10:46:31-04:00</updated>

		<published>2006-11-26T10:46:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68481#p68481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68481#p68481"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68481#p68481"><![CDATA[
And that's exactly what you have <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=3085">Sir_Fz</a> — Sun Nov 26, 2006 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jerry]]></name></author>
		<updated>2006-11-25T23:35:50-04:00</updated>

		<published>2006-11-25T23:35:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68469#p68469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68469#p68469"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68469#p68469"><![CDATA[
Ok so that displays the seconds. I want it to display like this: 1hr 2min 37secs<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8418">Jerry</a> — Sat Nov 25, 2006 11:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-11-25T21:15:04-04:00</updated>

		<published>2006-11-25T21:15:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68461#p68461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68461#p68461"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68461#p68461"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !pcw pcw:worldbind pub - !world pcw:worldbind pub - !change change:worldproc pcw:world {nick host handle chan text} { global world pcwnick pcwtime puthelp "NOTICE $nick :\00303\[\00312The current PCW World is $world.\00303\] \00312- \00303\[\00312The PCW was set by $pcwnick [expr {[unixtime]-[clock scan $pcwtime]}] ago.\00303\]"}proc change:world {nick host handle chan text} { global world pcwnick pcwtime if {[isop $nick $chan] || [ishalfop $nick $chan] == 1} {  set world $text  set pcwnick $nick  set pcwtime [ctime [unixtime]]  puthelp "PRIVMSG $chan :\00303\[\00312PC World Update\00303\]\00312 The PCW World has been updated!" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Nov 25, 2006 9:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jerry]]></name></author>
		<updated>2006-11-25T16:14:27-04:00</updated>

		<published>2006-11-25T16:14:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68453#p68453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68453#p68453"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68453#p68453"><![CDATA[
On the minutes part, I was looking for something like this:<br><br>The PCW world was set by $pcwnick 32secs ago.<br><br>In mIRC Form: $duration($ctime - %ctime) where %ctime = $ctime when the world was set.<br><br>EDIT: Also, Apparently, After I change the world, it doesnt Notice the person when I type !pcw. Even after I rehash the bot and set the world, it doesnt work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8418">Jerry</a> — Sat Nov 25, 2006 4:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-11-25T08:34:33-04:00</updated>

		<published>2006-11-25T08:34:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68449#p68449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68449#p68449"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68449#p68449"><![CDATA[
the world and pcwnick should be global variables and the brackets in the msgs should be skipped. (+ the quotes are not closed in the puthelp argument)<div class="codebox"><p>Code: </p><pre><code>bind pub - !pcw pcw:worldbind pub - !world pcw:worldbind pub - !change change:worldproc pcw:world {nick host handle chan text} { global world pcwnick pcwtime puthelp "NOTICE $nick :\00303\[\00312The current PCW World is $world.\00303\] \00312- \00303\[\00312The PCW was set by $pcwnick at $pcwtime.\00303\]"}proc change:world {nick host handle chan text} { global world pcwnick pcwtime if {[isop $nick $chan] || [ishalfop $nick $chan] == 1} {  set world $text  set pcwnick $nick  set pcwtime [ctime [unixtime]]  puthelp "PRIVMSG $chan :\00303\[\00312PC World Update\00303\]\00312 The PCW World has been updated!" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Nov 25, 2006 8:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jerry]]></name></author>
		<updated>2006-11-25T01:14:50-04:00</updated>

		<published>2006-11-25T01:14:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68439#p68439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68439#p68439"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68439#p68439"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !pcw pcw:worldbind pub - !world pcw:worldbind pub - !change change:worldproc pcw:world {nick host handle chan text} {  puthelp "NOTICE $nick :\00303[\00312The current PCW World is $world.\00303] \00312- \00303[\00312The PCW was set by $pcwnick.\00303]}proc change:world {nick host handle chan text} {  if {[isop $nick $chan] || [ishalfop $nick $chan] == 1} {  set world $text  set pcwnick $nick  puthelp "PRIVMSG $chan :\00303[\00312PC World Update\00303]\00312 The PCW World has been updated!} }</code></pre></div>I tried it, and it doesnt seem to work. I also would like to know, how do I make it so that when an op/halfop changes the world, it will set the time since that world has been changed.<br><br>EX: !change 89<br>!pcw: The PCW World is (World). The PCW World was set (number of minutes ago) by $nick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8418">Jerry</a> — Sat Nov 25, 2006 1:14 am</p><hr />
]]></content>
	</entry>
	</feed>
