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

	<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-11-05T14:45:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-05T14:43:16-04:00</updated>

		<published>2006-11-05T14:43:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67756#p67756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67756#p67756"/>
		<title type="html"><![CDATA[players stats for gather bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67756#p67756"><![CDATA[
Here is the mistake, in both procs:<br><br>set text [split text]<br><br>should be:<br><br>set text [split $text]<br><br>I editted the above script to fix that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Nov 05, 2006 2:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[serx]]></name></author>
		<updated>2006-11-05T09:13:29-04:00</updated>

		<published>2006-11-05T09:13:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67735#p67735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67735#p67735"/>
		<title type="html"><![CDATA[players stats for gather bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67735#p67735"><![CDATA[
[09:39:20] &lt;SerX&gt; .add FMB<br>[09:39:22] &lt;tessstas&gt; Wrote text to file D:/Viliaus/CD/sys/Eggdrop/ech/rankfile.txt<br>[09:39:24] &lt;SerX&gt; .rank FMB<br>[09:39:26] &lt;tessstas&gt; Rank for text: 2<br>[09:39:30] &lt;FMB&gt; <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br>[09:39:42] &lt;SerX&gt; .rank serx<br>[09:39:43] &lt;tessstas&gt; Rank for text: 2<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8347">serx</a> — Sun Nov 05, 2006 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-05T05:41:38-04:00</updated>

		<published>2006-11-05T05:41:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67732#p67732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67732#p67732"/>
		<title type="html"><![CDATA[players stats for gather bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67732#p67732"><![CDATA[
You asked for a script to add nicks, that's what it does (unless there's some error, which your reply does not make clear)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Nov 05, 2006 5:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[serx]]></name></author>
		<updated>2006-11-05T03:42:05-04:00</updated>

		<published>2006-11-05T03:42:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67729#p67729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67729#p67729"/>
		<title type="html"><![CDATA[players stats for gather bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67729#p67729"><![CDATA[
then I type: .add serx bot add to txt file that "text" and <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> nothing ;[<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8347">serx</a> — Sun Nov 05, 2006 3:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[serx]]></name></author>
		<updated>2006-11-05T03:27:10-04:00</updated>

		<published>2006-11-05T03:27:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67728#p67728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67728#p67728"/>
		<title type="html"><![CDATA[players stats for gather bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67728#p67728"><![CDATA[
thanx man <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=8347">serx</a> — Sun Nov 05, 2006 3:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-05T14:45:53-04:00</updated>

		<published>2006-11-04T17:25:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67717#p67717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67717#p67717"/>
		<title type="html"><![CDATA[players stats for gather bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67717#p67717"><![CDATA[
If the rank order is just the order names are added:<br><div class="codebox"><p>Code: </p><pre><code>#  Fixed missing $ in:       set text [split $text]#######################################################################################################################set rankfile "/home/mybot/data/rankfile.txt"bind pub - .add addprocproc addproc {nick uhost hand chan text} {      global rankfile      set text [string trim $text]      if {$text == ""} {puthelp "PRIVMSG $chan :You didn't supply a name!";return}      set text [split $text]      # check the existing data for duplicate names      if {[file exists $rankfile]} {              set rankdata [open $rankfile r]              while {![eof $rankdata]} {                      set curline [gets $rankdata]                      set curline [split $curline]                      if {[string tolower $curline] == [string tolower $text]} {                               # I assume you dont want to replace existing data so we just return with an error msg.                               puthelp "PRIVMSG $chan :That name '[join $text]' already exists"                               catch {close $rankdata}                               return                      }              }      }      # write the data to the end of the file.      set rankdata [open $rankfile a]      puts $rankdata [join $text]      flush $rankdata      catch {close $rankdata}      puthelp "PRIVMSG $chan :Wrote [join $text] to file $rankfile"      return} bind pub - .rank rankprocproc rankproc {nick uhost hand chan text} {      global rankfile      set text [string trim $text]      if {$text == ""} {puthelp "PRIVMSG $chan :You didn't supply a name!";return}      set text [split $text]      set ranktemp "";set rankdata "";set ranknumber -1      if {![file exists $rankfile]} {              puthelp "PRIVMSG $chan :No datafile exists."              return      }      set ranktemp [open $rankfile r]      while {![eof $ranktemp]} {              set curline [gets $ranktemp]              set curline [split $curline]              if {$curline != ""} {                     set rankdata [linsert $rankdata end $curline]              }      }      catch {close $ranktemp}      set ranknumber [lsearch -exact $rankdata $text]      if {$ranknumber != -1} {              puthelp "PRIVMSG $chan :Rank for $text: [expr $ranknumber + 1]"      } else {              puthelp "PRIVMSG $chan :Rank for $text not found."              return      }}</code></pre></div>Not tested.<br><br>Keep in mind if you try to use names with " (double quotes), [ ] (square brackets) or other special tcl chars the puthelp strings will likely produce errors, in which case you can just remove the [join $text] part and use $text (which will show strings like \[name\"  which is not a problem, it just looks bad..)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Nov 04, 2006 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[serx]]></name></author>
		<updated>2006-11-04T13:35:35-04:00</updated>

		<published>2006-11-04T13:35:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67706#p67706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67706#p67706"/>
		<title type="html"><![CDATA[players stats for gather bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67706#p67706"><![CDATA[
hello,<br>Can every one make script then type: .add nick , bot adden nick to ranks.txt file and then type .rank bot whrite exemple: Your Rank is 50 of 452.<br>SORRY FOR MY BAD ENGLISH <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8347">serx</a> — Sat Nov 04, 2006 1:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
