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

	<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-02-18T17:12:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2004-02-18T17:12:59-04:00</updated>

		<published>2004-02-18T17:12:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33705#p33705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33705#p33705"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33705#p33705"><![CDATA[
okay there seems to a problem with the bind commands , but how eles wuld i be able to put them..???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Wed Feb 18, 2004 5:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2004-02-16T16:59:23-04:00</updated>

		<published>2004-02-16T16:59:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33658#p33658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33658#p33658"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33658#p33658"><![CDATA[
this is what have now... it's not much different.. cause i'm having trouble finding information on how to have it put the the +v and -v in a list and have it read back an forth accordingly .... also i cant find any info on adding queue lists either...... either i'm not looking in the right places or i'm missing somthing...lol probally both???. <br>but anyways here it is..:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "*Sends:[1/*]*" voice_mebind pubm - "*Sends:«1/*»*" voice_meproc voice_me {nick uhost hand chan text} {  if {[botisop $chan]==1} {    if {![isop $nick $chan] &amp;&amp; ![isvoice $nick $chan]} {      timer 5 [putserv "mode $chan +v $nick"]       #puthelp "PRIVMSG $nick :Thank You for Serving in $chan"    }  }}bind pubm - "*Sends:[0/*]*" de-voice_mebind pubm - "*Sends:«0/*»*" de_voice_meproc de-voice_me (nick uhost hand chan text) {  if {[botisop $chan]==1} {    if {[isop %nick $chan] &amp;&amp; [isvoice $nick $chan]} {      putserv "mode $chan -v $nick"    }  }}</code></pre></div>i appreciate the suggestions <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=4121">grinch157</a> — Mon Feb 16, 2004 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-02-15T15:21:39-04:00</updated>

		<published>2004-02-15T15:21:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33623#p33623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33623#p33623"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33623#p33623"><![CDATA[
Here's a hint for one way to do it. Have two global variables, voice_add and voice_remove. Now, in your bind for adding +v, instead of putserv, you have to do this:<br><br>search through the voice_remove list, if he's there remove him<br><br>add him to the voice_add list<br><br>And instead of -v, do this:<br><br>search through the voice_add list, if he's there remove him<br><br>add him to the voice_remove list<br><br>See how it works? One list keeps track of who to give +v to, the other keeps track of who to take away +v from. One person can't be in both lists, so you have to check the other list before adding to either one.<br><br>Then you need a timer or a bind time to execute every two minutes (or however long you want). In that proc, you simply do putserv -v for each person in the voice_remove list, and +v for each person in the voice_add list. Then clear both lists.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Feb 15, 2004 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2004-02-15T13:33:49-04:00</updated>

		<published>2004-02-15T13:33:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33619#p33619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33619#p33619"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33619#p33619"><![CDATA[
is there anyone that can help me with this?? i've got the base (i gugess) but i like the suggestion of having the the servers put into a delayed queue. but i don't know how to do this.......<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Sun Feb 15, 2004 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2004-02-13T18:44:50-04:00</updated>

		<published>2004-02-13T18:44:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33589#p33589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33589#p33589"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33589#p33589"><![CDATA[
okay, i understand what your saying, but how would i do this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Fri Feb 13, 2004 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-02-13T15:38:35-04:00</updated>

		<published>2004-02-13T15:38:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33582#p33582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33582#p33582"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33582#p33582"><![CDATA[
I would use a queue instead of sending the mode changes right away. That way, the bot isn't doing mode changes every 2 seconds. Make it so that instead of putserv, you just add the person to a queue. Then, once a minute (bind time, or a timer), give +v to everyone in the add queue, -v to everyone in the remove queue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Feb 13, 2004 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2004-02-13T12:47:02-04:00</updated>

		<published>2004-02-13T12:47:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33581#p33581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33581#p33581"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33581#p33581"><![CDATA[
ok so this is what i got now....<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "*Sends:[1/*]*" voice_mebind pubm - "*Sends:«1/*»*" voice_meproc voice_me {nick uhost hand chan text} {  if {[botisop $chan]==1} {    if {[isop $nick $chan]==0 &amp;&amp; [isvoice $nick $chan]==0} {      putserv "mode $chan +v $nick"      #puthelp "PRIVMSG $nick :Thank You for Serving in $chan"    }  }}bind pubm - "*Sends:[0/*]*" de-voice_mebind pubm - "*Sends:«0/*»*" de_voice_meproc de-voice_me (nick uhost hand chan text) {  if {[botisop $chan]==1} {    if {[isop %nick $chan]==0 &amp;&amp; [isvoice $nick $chan]==0} {      putserv "mode $chan -v $nick"      #puthelp "PRIVMSG $nick :Your server is no longer active in $chan"    }  }}</code></pre></div>is there a better way to to this????<br>or is this okay as is?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Fri Feb 13, 2004 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2004-02-13T10:47:47-04:00</updated>

		<published>2004-02-13T10:47:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33577#p33577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33577#p33577"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33577#p33577"><![CDATA[
DOH!!!!!!!!!!!!!!!!<br><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Fri Feb 13, 2004 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-02-12T18:41:18-04:00</updated>

		<published>2004-02-12T18:41:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33533#p33533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33533#p33533"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33533#p33533"><![CDATA[
Well you've already discovered the use of wildcards, why don't you just use those?<br><br>*Sends: &lt;1/*&gt;*<br><br>something like that<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Feb 12, 2004 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2004-02-12T15:37:59-04:00</updated>

		<published>2004-02-12T15:37:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33522#p33522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33522#p33522"/>
		<title type="html"><![CDATA[how would a variable to a voice script??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33522#p33522"><![CDATA[
i need some help. <br><br>how would i be able to ad a variable into this script.<div class="codebox"><p>Code: </p><pre><code>bind pubm - "*Sends:[0/1]*" voice_mebind pubm - "*FTP Online*" voice_mebind pubm - "*Sends:«1/1»*" voice_mebind pubm - "*Sends:«1/2»*" voice_mebind pubm - "*Sends:«1/3»*" voice_meproc voice_me {nick uhost hand chan text} {  if {[botisop $chan]==1} {    if {[isop $nick $chan]==0 &amp;&amp; [isvoice $nick $chan]==0} {      putserv "mode $chan +v $nick"      #puthelp "PRIVMSG $nick :Thank You for Serving in $chan"    }  }}</code></pre></div>this will voice servers that match "*Sends:[0/1]*" in their ad.. what i'm really intrested in is this part Sends:[0 or even Sends:[0/ . the other number would really be ilrelavant.... is ther a way i can have a variable to replace that second number like sends:[1/?] instead of adding all kinds of binds to it??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Thu Feb 12, 2004 3:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
