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

	<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>2005-02-18T12:16:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tuShai]]></name></author>
		<updated>2005-02-18T12:16:40-04:00</updated>

		<published>2005-02-18T12:16:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46723#p46723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46723#p46723"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46723#p46723"><![CDATA[
thx works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5999">tuShai</a> — Fri Feb 18, 2005 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-18T11:30:57-04:00</updated>

		<published>2005-02-18T11:30:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46719#p46719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46719#p46719"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46719#p46719"><![CDATA[
Ermm i am presuming that you want this script to only work in your specified channel?<br><br>if thats the case use this.<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!infouk" pub:infoukset homechan "#xyz"set inuse 0proc pub:infouk {nick host hand chan arg} {    global inuse homechan    if { [string tolower $chan] != [string tolower $homechan] } { return }    if { $inuse == 1 } {    putserv "PRIVMSG $nick :Sorry this function is in use please wait 20 seconds and try again"    return    }    set fname [open voiceuk.txt r]    while {![eof $fname]} {    set infos [gets $fname]    set inuse 1    putserv "PRIVMSG $nick :$infos"    utimer 20 {set inuse 0}    }    close $fname}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Fri Feb 18, 2005 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuShai]]></name></author>
		<updated>2005-02-18T11:02:15-04:00</updated>

		<published>2005-02-18T11:02:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46715#p46715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46715#p46715"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46715#p46715"><![CDATA[
yapp. that was the prob. but still have the channel. i made  now this buts not working<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!infouk" pub:infoukset homechan "#xyz" if {![info exists homechan]} {set homechan "[lindex [channels] 0]"} set inuse 0proc pub:infouk {nick host hand chan arg} {    global inuse    if { $inuse == 1 } {    putserv "PRIVMSG $nick :Sorry this function is in use please wait 20 seconds and try again"    return    }    set fname [open voiceuk.txt r]    while {![eof $fname]} {    set infos [gets $fname]    set inuse 1    putserv "PRIVMSG $nick :$infos"    utimer 20 {set inuse 0}    }    close $fname}</code></pre></div>well bad TCler <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5999">tuShai</a> — Fri Feb 18, 2005 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-18T10:22:08-04:00</updated>

		<published>2005-02-18T10:22:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46713#p46713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46713#p46713"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46713#p46713"><![CDATA[
<blockquote class="uncited"><div>Well, i have right now this. buts not working. i dont know why<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!infouk" pub:infoukset inuse 0proc pub:info {nick host hand chan arg} {    global inuse    if { $inuse == 1 } {    putquick "PRIVMSG $nick :Pls wait 20 Secs. Function is in use"    return    }    set fname [open ts2_eng.txt r]    while {![eof $fname]} {    set infos [gets $fname]    set inuse 1    putquick "PRIVMSG $nick :$infos"    utimer 20 {set inuse 0}    }    close $fname}</code></pre></div></div></blockquote>Change this in your script <div class="codebox"><p>Code: </p><pre><code>proc pub:info {nick host hand chan arg} {</code></pre></div>to this<br><div class="codebox"><p>Code: </p><pre><code>proc pub:infouk {nick host hand chan arg} {</code></pre></div>Your binds have to match your proc names else it will not know which proc to call when that !trigger is called. Theres no point just changing its name and not know what its doing <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=3723">^DooM^</a> — Fri Feb 18, 2005 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuShai]]></name></author>
		<updated>2005-02-18T09:55:48-04:00</updated>

		<published>2005-02-18T09:55:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46712#p46712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46712#p46712"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46712#p46712"><![CDATA[
Well, i have right now this. buts not working. i dont know why<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!infouk" pub:infoukset inuse 0proc pub:info {nick host hand chan arg} {    global inuse    if { $inuse == 1 } {    putquick "PRIVMSG $nick :Pls wait 20 Secs. Function is in use"    return    }    set fname [open ts2_eng.txt r]    while {![eof $fname]} {    set infos [gets $fname]    set inuse 1    putquick "PRIVMSG $nick :$infos"    utimer 20 {set inuse 0}    }    close $fname}</code></pre></div>Hmm works now. needed to change here<br><div class="codebox"><p>Code: </p><pre><code>proc pub:[b]info[/b] {nick host hand chan arg} { </code></pre></div>Didnt knew that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> But one more question. Ho can i  make it that this works just for one channel ???? e.g. #xyz ???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5999">tuShai</a> — Fri Feb 18, 2005 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-18T08:18:48-04:00</updated>

		<published>2005-02-18T08:18:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46708#p46708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46708#p46708"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46708#p46708"><![CDATA[
The easiest way would be to create 2 proc's.<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!infouk" pub:infouk</code></pre></div>set the text file for the english version on this bind and use the german text file on the second proc with<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!infode" pub:infode</code></pre></div>and to slow it down try using <em class="text-italics">'putserv'</em> rather than <em class="text-italics">'putquick'</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Fri Feb 18, 2005 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuShai]]></name></author>
		<updated>2005-02-18T06:41:54-04:00</updated>

		<published>2005-02-18T06:41:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46706#p46706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46706#p46706"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46706#p46706"><![CDATA[
Thats what i am looking For.<br>Thanx m8<br><br>Still a question. Ho can i put 2 triggers in <br><br>one for .de (german Text output)<br>one for .eng (english Text output)<br><br>and how can i make the message output a lil bit slowlier<br><br>and how to change this part that  it reads the german txt file and an english one. atm it works not so well when i code it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">. Thx for ya help<br><div class="codebox"><p>Code: </p><pre><code>if { $inuse == 1 } {    putquick "PRIVMSG $chan :Sorry this function is in use please wait 20 seconds and try again"    return    }    set fname [open ts2.txt r]    while {![eof $fname]} {    set infos [gets $fname]    set inuse 1    putquick "PRIVMSG $chan :$infos"    utimer 20 {set inuse 0}    }    close $fname </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5999">tuShai</a> — Fri Feb 18, 2005 6:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-18T06:05:42-04:00</updated>

		<published>2005-02-18T06:05:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46704#p46704</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46704#p46704"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46704#p46704"><![CDATA[
try this<div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!info" pub:infoset inuse 0 proc pub:info {nick host hand chan arg} {    global inuse    if { $inuse == 1 } {     putquick "PRIVMSG $chan :Sorry this function is in use please wait 20 seconds and try again"    return    }    set fname [open ts2.txt r]    while {![eof $fname]} {    set infos [gets $fname]    set inuse 1    putquick "PRIVMSG $chan :$infos"    utimer 20 {set inuse 0}    }    close $fname}</code></pre></div>This isn't tested but should work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Fri Feb 18, 2005 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuShai]]></name></author>
		<updated>2005-02-18T05:08:54-04:00</updated>

		<published>2005-02-18T05:08:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46703#p46703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46703#p46703"/>
		<title type="html"><![CDATA[!info script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46703#p46703"><![CDATA[
Hi everybody. I found that script in the Database. It works well but i have a few probs with it. Hope that somebody can help me.<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!info" pub:infoproc pub:info {nick host hand chan arg} {set fname [open ts2.txt r]while {![eof $fname]} {set infos [gets $fname]putquick "PRIVMSG $chan :$infos"}close $fname}</code></pre></div>Well, the prob is, when more then 1 person types !info the bot get crased. is it possible to create a spammprotection that tells, if sombody entered !info and gets the text, the other will get a notice like " Pls be Patient, trigger !info is in use. Try again in a few mins"<br>And is it also possible that the text comes out timed. well I only know it from msl. there u can make it with <div class="codebox"><p>Code: </p><pre><code> timer 1 0 notice $nick  timer 1 1 notice $nick  timer 1 2 notice $nick and so on</code></pre></div>Thx for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5999">tuShai</a> — Fri Feb 18, 2005 5:08 am</p><hr />
]]></content>
	</entry>
	</feed>
