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

	<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-10-04T15:32:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Atomic]]></name></author>
		<updated>2006-10-04T15:32:38-04:00</updated>

		<published>2006-10-04T15:32:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66928#p66928</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66928#p66928"/>
		<title type="html"><![CDATA[wow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66928#p66928"><![CDATA[
hey rosc2112, <br><br>Thank you very much for your help.. <br>it indeed does work perfectly.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>i would have never got it working.. <br>its way beyond my tcl abilities <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>just need some flood protection in it now.. <br>again thank you very much for your time spent doing it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>.....<br><br>so can anyone add some flood protection to it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5117">Atomic</a> — Wed Oct 04, 2006 3:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-04T12:56:13-04:00</updated>

		<published>2006-10-04T12:56:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66924#p66924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66924#p66924"/>
		<title type="html"><![CDATA[request (tcl script) please :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66924#p66924"><![CDATA[
Sure it's possible. Just make a bind and a proc and use <br><br>puthelp "PRIVMSG $target :\001SOUND filename\001"<br><div class="codebox"><p>Code: </p><pre><code># available sounds:set mysounds "filename1.wav filename2.mp3 filename3 etc"# channels we want to annoy with noise:set mychannels "#mychannel1 #chan2 #etc"# how many minutes to set the noise timerset noisetime 5bind pub - !noise noiseprocproc noiseproc {nick uhost hand chan text} {       global mysounds mychannels       if {[lsearch -exact $mychannels $chan] == -1} {return}       set text [string trim $text];set text [split $text]       if {[lsearch -exact $mysounds $text] != -1} {                 puthelp "PRIVMSG $chan :\001SOUND $text\001"       } else {                 puthelp "PRIVMSG $chan :I don't have that sound.."       }}proc randomnoisetimer {} {       global mysounds mychannels noisetime       set randsounds [lindex $mysounds [rand [llength $mysounds]]]       foreach channel $mychannels {                puthelp "PRIVMSG $channel :\001SOUND $randsounds\001"       }       if {![string match "*randomnoisetimer*" [timers]]} {timer $noisetime randomnoisetimer}}# start the randomnoisetimer when the script is rehashed/reloadedif {![string match "*randomnoisetimer*" [timers]]} {timer $noisetime randomnoisetimer}###############################################################################################</code></pre></div>I didn't do the anti-flood control, someone else might be able to contribute a decent/simple method of flood control for this (the ones I have for reference are probably too complicated for such a simple script.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Oct 04, 2006 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Atomic]]></name></author>
		<updated>2006-10-04T10:36:41-04:00</updated>

		<published>2006-10-04T10:36:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66922#p66922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66922#p66922"/>
		<title type="html"><![CDATA[request (tcl script) please :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66922#p66922"><![CDATA[
ok i am requesting this tcl script as its proving to difficult for me.. <br><br>its kinda lame i know... but.. i guess it could be funny.. <br><br>i have a funbot in my channel called R2-D2 he does various things.. <br><br>what i want him to do is send a fake sound event to the channel<br>like when you do /sound filename.wav.mp3 in mirc.. if the person <br>has this sound file they hear it.. <br><br>so the trigger would be !sound filename.wav or .mp3 then the bot<br>would send this fake signal to the channel.. i think its a ctcp channel sound filename.. <br><br>after a person does a !sound.. they are ignored for 30 seconds to stop spamming of sounds.. <br><br>i have collected a few sound files for R2-D2 his silly noises ect.. <br>i want the bot to also trigger a random sound from a list i can modify<br>and output this to the channel as a /sound event.... at random intervals<br><br>i have tried doing this script myself doing it a few different ways... <br>but i cant seem to get this working.. is this even possible on eggdrops?<br><br>ty for anyone that will help me with this tcl <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=5117">Atomic</a> — Wed Oct 04, 2006 10:36 am</p><hr />
]]></content>
	</entry>
	</feed>
