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

	<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-06-16T16:40:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-16T16:40:52-04:00</updated>

		<published>2004-06-16T16:40:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37476#p37476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37476#p37476"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37476#p37476"><![CDATA[
could you do sth like that -&gt; \.((\d)+)/((\d)+)/((\d)+). :<br><br>[Hot: 1time HERE ] [Private WE's: IGNORE THIS PART COMPLETELY ] [Cold: 2times HERE ] [.... (ignore whhat follows the cold box imediatly)<br>=&gt; 9 vars (3* .xx/zzz/yyy)<br>set them to anything i can change it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Wed Jun 16, 2004 4:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-16T13:56:13-04:00</updated>

		<published>2004-06-16T13:56:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37468#p37468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37468#p37468"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37468#p37468"><![CDATA[
works but there are more .xx/xxx/xxx and there can be some under hot.... how do i handle that<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Wed Jun 16, 2004 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-16T12:14:18-04:00</updated>

		<published>2004-06-16T12:14:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37460#p37460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37460#p37460"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37460#p37460"><![CDATA[
well server11.xlhost is down so are my bot and my bouncer <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> but im at irc  (gc|day[eCh] or sth like that) u can tell me there <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=5068">LexXx</a> — Wed Jun 16, 2004 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-16T12:13:19-04:00</updated>

		<published>2004-06-16T12:13:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37459#p37459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37459#p37459"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37459#p37459"><![CDATA[
you have an extra " at the end of the regexp... try removing it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 16, 2004 12:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-16T11:17:25-04:00</updated>

		<published>2004-06-16T11:17:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37458#p37458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37458#p37458"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37458#p37458"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm n "#dclone.eu !calcx *" pub:calcx proc pub:calcx {nick uhost hand chan text} { set text [split $text] set topic [topic #dclone.eu]; regexp -nocase {.*\[cold: \.((\d)+)/((\d)+)/((\d)+).*} $topic a cipx(server) b cipx(lwe) c cipx(act)"set cipx(min) [expr $cipx(lwe) + 75]; set cipx(max) [expr $cipx(lwe) + 125]; set cipx(tomin) [expr $cipx(min) - $cipx(act)]; set cipx(sold) [expr $cipx(act) - $cipx(lwe)]; set cipx(tomax) [expr $cipx(max) - $cipx(act)]; if {$cipx(tomin) &gt; 0} { putmsg $chan "Server \[\002.$cipx(server)\002\] Minimum sojcount for WE is $cipx(min), while maximum is $cipx(max). $cipx(sold) sojs have been sold and $cipx(tomin) sojs need to be sold to reach minimum!" }if {$cipx(tomin) == 0} { putmsg $chan "Server \[\002.$cipx(server)\002\] Minimum sojcount for WE is $cipx(min), while maximum is $cipx(max). $cipx(sold) sojs have been sold - minimum is reached." }if {$cipx(tomin) &lt; 0} {putmsg $chan "Server \[\002.$cipx(server)\002\] Minimum sojcount for WE is $cipx(min), while maximum is $cipx(max). $cipx(sold) sojs have been sold, min is reached and $cipx(tomax) more sojs need to be sold to max." }}array unset cipx</code></pre></div> ------&gt; Tcl error [pub:calcx]: can't read "cipx(act)": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Wed Jun 16, 2004 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-16T10:28:14-04:00</updated>

		<published>2004-06-16T10:28:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37456#p37456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37456#p37456"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37456#p37456"><![CDATA[
i gonna try! can i reach u at irc or sth (not for buggin g you <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=5068">LexXx</a> — Wed Jun 16, 2004 10:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-16T08:38:49-04:00</updated>

		<published>2004-06-16T08:38:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37447#p37447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37447#p37447"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37447#p37447"><![CDATA[
if you want to use regexp, somthing like this should work:<div class="codebox"><p>Code: </p><pre><code>regexp -nocase {.*\[cold: \.((\d)+)/((\d)+)/((\d)+).*} $topic a var1 b var2 c var3</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 16, 2004 8:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-15T15:59:19-04:00</updated>

		<published>2004-06-15T15:59:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37425#p37425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37425#p37425"/>
		<title type="html"><![CDATA[Values in the Topic -&gt; $var1,2 etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37425#p37425"><![CDATA[
Well i got a topic like this one: [Hot: N/A] [Cold: .51/823/856 .45/930/952 ] [Walked: .34 .233 .225 ]<br>and i got a script with the command: !calcip 51<br><br>-&gt; i want the script to get the 2 numbers behind the .51 separated with / and to use them (e.g. $var1=51 $var2=823 and $var3=856)<br>-&gt; the number of .xx/XXX/xxx in the topic varies sometimes there can be some under Hot: ....<br><br>We tried this but i didnt work really :/<div class="codebox"><p>Code: </p><pre><code>bind dcc n|n bluborn dcc:blubproc dcc:blub {hand idx text} { set topic [topic #dclone.eu]; regexp -all -nocase {^.*?[Hot: N/A] [Cold: (.*?)/(.*?)/(.*?) (sg: Factor-1/x) .45/930/952 ] [Walked: .34 .233 .225 ] [ #dclone.eu is BACK! ].*?$} $topic temp var1 var2 var3; putcmdlog "var1: $var1 . var2: $var2 . var3: $var3"}</code></pre></div>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Tue Jun 15, 2004 3:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
