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

	<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>2020-06-27T12:36:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-06-27T12:36:16-04:00</updated>

		<published>2020-06-27T12:36:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108652#p108652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108652#p108652"/>
		<title type="html"><![CDATA[Bar Total Amount Tab]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108652#p108652"><![CDATA[
<blockquote class="uncited"><div>...<br>i'll go try it and if it works i'll post my code  </div></blockquote>And if it doesn't work, post your code if you want.   You might get some help and/or ideas.    <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=10420">willyw</a> — Sat Jun 27, 2020 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-27T09:23:26-04:00</updated>

		<published>2020-06-27T09:23:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108651#p108651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108651#p108651"/>
		<title type="html"><![CDATA[Bar Total Amount Tab]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108651#p108651"><![CDATA[
I think i found what i needed to use incr<br><br><a href="http://suninet.the-demon.de/056.htm" class="postlink">http://suninet.the-demon.de/056.htm</a><br><br>seems to add digits to a variable, exactly what i need hehe<br><br>i'll go try it and if it works i'll post my code  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sat Jun 27, 2020 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-26T21:17:50-04:00</updated>

		<published>2020-06-26T21:17:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108649#p108649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108649#p108649"/>
		<title type="html"><![CDATA[Bar Total Amount Tab]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108649#p108649"><![CDATA[
hmm i see but this is for prices i think , would this work in gathering like this<br><br>?beer thats 5<br><br>?beer thats 10<br><br>and so on<br><br>would dict work for that?<br><br>so every time a user types ?beer it will add 5 to the total amount Until the user types <br>?pay<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Jun 26, 2020 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-06-26T13:13:27-04:00</updated>

		<published>2020-06-26T13:13:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108648#p108648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108648#p108648"/>
		<title type="html"><![CDATA[Bar Total Amount Tab]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108648#p108648"><![CDATA[
If you plan to extend this to other drinks as well, I suggest having a look at <a href="https://www.tcl.tk/man/tcl8.6/TclCmd/dict.htm" class="postlink">dict</a> and have all the drinks like:<div class="codebox"><p>Code: </p><pre><code>dict set drinks "beer" 20dict set drinks "vodka" 50dict set drinks "tea" 5</code></pre></div>and can get it's price with something like:<div class="codebox"><p>Code: </p><pre><code>[dict get $drinks $drink]</code></pre></div>for example after you make sure it exist, for example:<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -nocase [dict keys $drinks] $drink] != -1} {puthelp "PRIVMSG $chan :Price for $drink is [dict get $drinks $drink]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jun 26, 2020 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-26T11:00:34-04:00</updated>

		<published>2020-06-26T11:00:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108647#p108647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108647#p108647"/>
		<title type="html"><![CDATA[Bar Total Amount Tab]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108647#p108647"><![CDATA[
Hmm not exactly sure if i can explain what my idea is , but i'll try  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>so this idea is for my bar script and the part i am requesting is,<br>when a user types !beer it will do the usual putserv privmsg stuff <br><br>but the part i need to add is everytime a user types !beer it will add to a amount of say 20 per !beer command so i need a way to make it gather all of those 20's and make a total each time, almost like a bar tab , cheers in advanced all those who help me with this hehe  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>(I'll try and make something like above myself and post my code  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Jun 26, 2020 11:00 am</p><hr />
]]></content>
	</entry>
	</feed>
