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

	<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>2004-05-27T10:24:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-27T10:24:26-04:00</updated>

		<published>2004-05-27T10:24:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36636#p36636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36636#p36636"/>
		<title type="html"><![CDATA[Away script for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36636#p36636"><![CDATA[
Well, this is quite simple.<br><br>You would need a bind on the command "!away"<br>and a procedure to call it.<br><br>Umm, here try this.<br><div class="codebox"><p>Code: </p><pre><code>### You can define the user flag in the bind yourself#### (n: owner), (m: master), (o: op), (-: public)bind pub n !away display:awayproc display:away {nick uhost hand chan text} {  putserv "PRIVMSG $chan :I am away since [expr [rand 200]] hrs, [expr [rand 59]] mins and [expr [rand 59]] secs."  return 0}</code></pre></div><br>If you want to display it in a /me (ACTION) you can replace:<br><div class="codebox"><p>Code: </p><pre><code>  putserv "PRIVMSG $chan :I am away since [expr [rand 200]] hrs, [expr [rand 59]] mins and [expr [rand 59]] secs."</code></pre></div><br>with this:<br><div class="codebox"><p>Code: </p><pre><code>  putserv "PRIVMSG $chan :\001ACTION I am away since [expr [rand 200]] hrs, [expr [rand 59]] mins and [expr [rand 59]] secs.\001"</code></pre></div><br><br>For the example I set the away time in a format like X hrs, X mins and X secs, where X are random generated numbers by the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu May 27, 2004 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-05-23T06:28:18-04:00</updated>

		<published>2004-05-23T06:28:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36540#p36540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36540#p36540"/>
		<title type="html"><![CDATA[Away script for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36540#p36540"><![CDATA[
hello<br><br>i am looking for a script where users can say that they are away for some time with a cmd like !away.<br> can some1 help me out with this ?<p>Statistics: Posted by Guest — Sun May 23, 2004 6:28 am</p><hr />
]]></content>
	</entry>
	</feed>
