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

	<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-15T12:39:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-15T12:39:43-04:00</updated>

		<published>2004-06-15T12:39:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37412#p37412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37412#p37412"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37412#p37412"><![CDATA[
awyeah helped me to do the calc things, we need to check how to split the topic into variables now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Tue Jun 15, 2004 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-15T11:07:39-04:00</updated>

		<published>2004-06-15T11:07:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37404#p37404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37404#p37404"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37404#p37404"><![CDATA[
nice mircscript<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue Jun 15, 2004 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-15T11:03:12-04:00</updated>

		<published>2004-06-15T11:03:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37403#p37403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37403#p37403"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37403#p37403"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - "!calcip" procnameset $cip.s4 . $+ $1 set $cip.temp $cip.s4 $+ / set $act.topic $chan( #dclone.eu ).topic if ($cip.temp isin $act.topic) { set $cip.lwe.pos $calc($pos($act.topic,$cip.s4,1)+$len($cip.s4)+1) set $cip.temp $mid(sact.topic,$cip.lwe.pos,20) set $cip.act.pos $calc($pos($cip.temp,/,1)+1) set $cip.temp $mid($cip.temp,$cip.act.pos,20) set $cip.act $gettok($cip.temp,1,32) set $cip.lwe $mid($act.topic,$cip.lwe.pos,$calc($cip.act.pos - 2)) { if ($calc(75 - $cip.act + $cip.lwe) &gt; 0) { echo 5[Server  $+ $cip.s4 $+ ] Minimum sojcount for WE is  $+ $calc($cip.lwe + 75) $+  while maximum is  $+ $calc($cip.lwe + 125) $+ .  $+ $calc($cip.act - $cip.lwe) $+  sojs have been sold and  $+ $calc(75 - $cip.act + $cip.lwe) $+  more sojs need to be sold to reach min. } } { if ($calc(75 - $cip.act + $cip.lwe) == 0) { echo 5[Server  $+ $cip.s4 $+ ] Minimum sojcount for WE is  $+ $calc($cip.lwe + 75) $+  while maximum is  $+ $calc($cip.lwe + 125) $+ .  $+ $calc($cip.act - $cip.lwe) $+  sojs have been sold - minimum is reached. } } { if ($calc(75 - $cip.act + $cip.lwe) &lt; 0) { echo 5[Server  $+ $cip.s4 $+ ] Minimum sojcount for WE is  $+ $calc($cip.lwe + 75) $+  while maximum is  $+ $calc($cip.lwe + 125) $+ .  $+ $calc($cip.act - $cip.lwe) $+  sojs have been sold, min is reached and  $+ $calc(($cip.lwe + 125) - $cip.act) $+  more sojs need to be sold to max. } } } unset $cip.*}putlog "caclip test 14:35"</code></pre></div>I tried to rewrite it a bit, thats the result:<div class="codebox"><p>Code: </p><pre><code>2(121702:120002:125202) 02([dclone-eu-bot]02) [16:59] Tcl error in file 'eggdrop.conf':02(121702:120002:125202) 02([dclone-eu-bot]02) [16:59] can't read "cip": no such variable02(121702:120002:125202) 02([dclone-eu-bot]02) while executing02(121702:120002:125202) 02([dclone-eu-bot]02) "set $cip.s4 . $+ $1"02(121702:120002:125202) 02([dclone-eu-bot]02) (file "scripts/4.tcl" line 2)02(121702:120002:125202) 02([dclone-eu-bot]02) invoked from within02(121702:120002:125202) 02([dclone-eu-bot]02) "source scripts/4.tcl"02(121702:120002:125202) 02([dclone-eu-bot]02) (file "eggdrop.conf" line 108)02(121702:120002:125202) 02([dclone-eu-bot]02) [16:59] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)DCC session closed[c</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Tue Jun 15, 2004 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-15T07:58:39-04:00</updated>

		<published>2004-06-15T07:58:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37401#p37401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37401#p37401"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37401#p37401"><![CDATA[
if you could join #dclone.eu on quakenet [qry gc|day[eCH] ]i can show you what the script is for! its difficult to explain if you dont understand what is the use of the script <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> — Tue Jun 15, 2004 7:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-15T07:49:41-04:00</updated>

		<published>2004-06-15T07:49:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37399#p37399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37399#p37399"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37399#p37399"><![CDATA[
Maybe you can give us a demonstration...<br>or an example of the script working.<br><br>What numbers do you mean..<br>Numbers from a channel topic??<br><br>Suppose if a this is a topic:<br>"Please welcome to #channel and enjoy your stay in here."<br><br>There are no numbers in this one.<br><br>Probobaly a topic like:<br>"W3lc0m3 2 our chann3l, pl34s3 w3lc0m3 ur st4y in h3r3."<br><br>If a topic is like this, with numbers then. what will<br>happen hmm.<br><br>So your saying is that.. it collects all numbers in a channels<br>topics, adds 75 to the toal.. sums them up and gives total sum<br>as the result?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jun 15, 2004 7:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-06-14T22:32:53-04:00</updated>

		<published>2004-06-14T22:32:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37389#p37389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37389#p37389"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37389#p37389"><![CDATA[
what do you use this script for?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Jun 14, 2004 10:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-14T17:02:32-04:00</updated>

		<published>2004-06-14T17:02:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37375#p37375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37375#p37375"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37375#p37375"><![CDATA[
well you do !calcip and it gets some numbers from the topic and adds 75 to them and calcs a whole thing and gives an output! :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Mon Jun 14, 2004 5:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-14T14:24:20-04:00</updated>

		<published>2004-06-14T14:24:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37359#p37359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37359#p37359"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37359#p37359"><![CDATA[
So what does this script do?<br>I used to do irc scripting like 4 years ago with v5.61, but now I see there<br>are hell lot of new functions in mIRC... with newer and newer releases such as now they have 6.14.<br><br>I don't understand these new functions however, the help files might describe the usages of these.<br><br>This is basically a trigger for !calcip? what output does !calcip give?<br>what would be the input for it and the output for it?!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jun 14, 2004 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-06-14T11:35:06-04:00</updated>

		<published>2004-06-14T11:35:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37334#p37334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37334#p37334"/>
		<title type="html"><![CDATA[calcip mirc thing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37334#p37334"><![CDATA[
I have no idea of tcl but i need to run a script i have in my remote on my eggdrop:<br><div class="codebox"><p>Code: </p><pre><code> on 1:TEXT:!Calcip &amp;:#dclone.eu:{  set %cip.s4 . $+ $1  set %cip.temp %cip.s4 $+ /  set %act.topic $chan( #dc.eu ).topic  if (%cip.temp isin %act.topic) {    set %cip.lwe.pos $calc($pos(%act.topic,%cip.s4,1)+$len(%cip.s4)+1)    set %cip.temp $mid(%act.topic,%cip.lwe.pos,20)    set %cip.act.pos $calc($pos(%cip.temp,/,1)+1)    set %cip.temp $mid(%cip.temp,%cip.act.pos,20)    set %cip.act $gettok(%cip.temp,1,32)    set %cip.lwe $mid(%act.topic,%cip.lwe.pos,$calc(%cip.act.pos - 2))    { if ($calc(75 - %cip.act + %cip.lwe) &gt; 0) { echo 5[Server  $+ %cip.s4 $+ ] Minimum sojcount for WE is  $+ $calc(%cip.lwe + 75) $+  while maximum is  $+ $calc(%cip.lwe + 125) $+ .  $+ $calc(%cip.act - %cip.lwe) $+  sojs have been sold and   $+ $calc(75 - %cip.act + %cip.lwe) $+  more sojs need to be sold to reach min. } }    { if ($calc(75 - %cip.act + %cip.lwe) == 0) { echo 5[Server  $+ %cip.s4 $+ ] Minimum sojcount for WE is  $+ $calc(%cip.lwe + 75) $+  while maximum is  $+ $calc(%cip.lwe + 125) $+ .  $+ $calc(%cip.act - %cip.lwe) $+  sojs have been sold - minimum is reached. } }    { if ($calc(75 - %cip.act + %cip.lwe) &lt; 0) { echo 5[Server  $+ %cip.s4 $+ ] Minimum sojcount for WE is  $+ $calc(%cip.lwe + 75) $+  while maximum is  $+ $calc(%cip.lwe + 125) $+ .  $+ $calc(%cip.act - %cip.lwe) $+  sojs have been sold, min is reached and   $+ $calc((%cip.lwe + 125) - %cip.act) $+  more sojs need to be sold to max. } }  }  unset %cip.*} </code></pre></div>would be nice if you could help me or tell which commands are different for tcl cos i have no idea <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>mfg<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Mon Jun 14, 2004 11:35 am</p><hr />
]]></content>
	</entry>
	</feed>
