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

	<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>2008-12-05T17:56:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-05T17:56:32-04:00</updated>

		<published>2008-12-05T17:56:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86087#p86087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86087#p86087"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86087#p86087"><![CDATA[
if u dont want to post the source here feel free to PM me with it, I can try to fix it, np for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>HF <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=10332">tomekk</a> — Fri Dec 05, 2008 5:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2008-12-05T17:46:35-04:00</updated>

		<published>2008-12-05T17:46:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86086#p86086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86086#p86086"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86086#p86086"><![CDATA[
yes but i put set nick [string tolower $nick] in the brgging of proc to have small letters but i dont unterestand why doesnt work.. something on proc reads the nick and not the string of small letters<br><br><br>tnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Dec 05, 2008 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-05T16:17:19-04:00</updated>

		<published>2008-12-05T16:17:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86080#p86080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86080#p86080"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86080#p86080"><![CDATA[
<blockquote class="uncited"><div>i dotn underestand what you mean..i try before your solution and the problem is one.. all nicks on txt is with small letters and bot response the answer for counting if i had ultralord (with small letters) if i run proc for counting with Ultralord with one or more letters with caps doesnt response</div></blockquote>ehh its simple bug <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>if u run this !mygames or smth with nick "Ultralord" then your nick in script will be "Ultralord" (its normal because u run it from Ultralord and $nick in proc will be the same, with case sensitivity), u just need to lower this nick at the beginning and all other nicks, from file, from other variables too, if all data sources are "small" then there is no chance that nick != nick <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=10332">tomekk</a> — Fri Dec 05, 2008 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2008-12-05T16:10:44-04:00</updated>

		<published>2008-12-05T16:10:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86079#p86079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86079#p86079"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86079#p86079"><![CDATA[
i dotn underestand what you mean..i try before your solution and the problem is one.. all nicks on txt is with small letters and bot response the answer for counting if i had ultralord (with small letters) if i run proc for counting with Ultralord with one or more letters with caps doesnt response<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Dec 05, 2008 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-05T15:22:11-04:00</updated>

		<published>2008-12-05T15:22:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86078#p86078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86078#p86078"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86078#p86078"><![CDATA[
okey,<br><br>then what is the problem to [string tolower] all data from txt file? after that all will be the same<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Fri Dec 05, 2008 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2008-12-05T14:22:44-04:00</updated>

		<published>2008-12-05T14:22:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86077#p86077</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86077#p86077"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86077#p86077"><![CDATA[
look to explain you better..<br><br>i have nick Ultralord and i press !mygames then the bot counting the txt file how many times nick Ultralord is on txt and announce the result.. and when i have nick ULTRALORD and i press !mygames doesnt announce anything because all nicks on txt is Ultralord and not ULTRALORD.. then after your 1st helpful post i put set nick [string tolower $nick] before my procs and now on txt write only nicks with small letters good.. the next problem is. if i have nick Ultralord cant counting because i have Ultralord and not ultralord because "ultralord" is on txt with small letters .. thats the latest problem :/ but if we find the solution from another way.. like new proc and his work is to count how many times is his nick on txt file and he announce the result and counting small and big letters ..<br><br>thanks for your help at all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Dec 05, 2008 2:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-05T13:37:19-04:00</updated>

		<published>2008-12-05T13:37:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86076#p86076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86076#p86076"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86076#p86076"><![CDATA[
damn, i wish to help u <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I just can't get what you mean with this Ultra, ultra .. I rly see no problem to lower nick letters, even if he use some trigger like !test what is the problem to lower the $nick from proc input?<br><br>like u wrote, set nick [string tolower $nick] and all input nicks will be with small letters, set low_nick [string tolower $nick] or smth,<br><br>I just wanted the source to check what is going on but no problem.<br><br><br>///<blockquote class="uncited"><div>[tomekk@zonk]:/home# ./proc.tcl Nick<br></div></blockquote>i just added "set nickname [string tolower $nickname]"<blockquote class="uncited"><div>[tomekk@zonk]:/home# ./proc.tcl Nick<br>NOTICE nick :^C14,1[^C7?^C0 You make (nick) : 3 gathers this month. Rank:  1. Status: Admin. ^C7?^C14]</div></blockquote>all input nicks are "small" and all nicks in list are "small" too :&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Fri Dec 05, 2008 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2008-12-05T12:26:42-04:00</updated>

		<published>2008-12-05T12:26:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86075#p86075</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86075#p86075"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86075#p86075"><![CDATA[
i put first the string [string tolower $nick] etc.. but nothing no lucky .. i try your proc etc but works if i have nick with small letters like ultralord if i have Ultralord doesnt work..<br><br>also  i am sorry icant paste all the code..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Dec 05, 2008 12:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-05T10:31:06-04:00</updated>

		<published>2008-12-05T10:31:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86066#p86066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86066#p86066"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86066#p86066"><![CDATA[
<blockquote class="uncited"><div>ok i edited now and all nicks are on small letters the problem is some procs worked without $nick and i cant set it the string so how i can make that proc to work ?</div></blockquote>why u can't? <br>put after proc definition set nick [string tolower $nick] this will overwrite the nick var with small letters nick, or set nickname [string tolower $nickname] whatever, after this all nicks will be "small"<br><br>can u paste whole script and some manual how to use it? I want to try it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>[edit]<br><br>ok I checked this proc, I wrote to "g_stats" {nick Nick NICK} and after:<blockquote class="uncited"><div>g_mygames "nick" "" "" ""</div></blockquote><blockquote class="uncited"><div>[tomekk@zonk]:/home# ./proc.tcl<br>NOTICE nick :^C14,1[^C7?^C0 You make (nick) : 1 gathers this month. Rank:  1. Status: Admin. ^C7?^C14]</div></blockquote>I wrote tiny proc to lower all nicks in this list, and I put it here:<div class="codebox"><p>Code: </p><pre><code>proc g_mygames {nickname hand idx args} {   global g_plstats g_pickupchan g_stats  #here   g_stats_to_lower   if { [matchattr $idx L] } {     ....</code></pre></div>after that i got:<blockquote class="uncited"><div>NOTICE nick :^C14,1[^C7?^C0 You make (nick) : 3 gathers this month. Rank:  1. Status: Admin. ^C7?^C14]</div></blockquote>here is this proc code:<div class="codebox"><p>Code: </p><pre><code>proc g_stats_to_lower { } {        global g_stats        set temp_low [list]        foreach big_stat $g_stats {                if {$big_stat != ""} {                        set need_low_nick [string tolower $big_stat]                        lappend temp_low $need_low_nick                }        }        set g_stats $temp_low}</code></pre></div>:&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Fri Dec 05, 2008 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2008-12-05T10:07:59-04:00</updated>

		<published>2008-12-05T10:07:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86065#p86065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86065#p86065"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86065#p86065"><![CDATA[
ok i edited now and all nicks are on small letters the problem is some procs worked without $nick and i cant set it the string so how i can make that proc to work ?<br><br><div class="codebox"><p>Code: </p><pre><code>proc g_mygames {nickname hand idx args} {  global g_plstats g_pickupchan g_stats           if { [matchattr $idx L] } {  if {[llength $g_stats]==0} {    putserv "NOTICE $nickname :No Gather yet :)"    return 0  }  set stats $g_stats  set results [list ]  while {[llength $stats]!=0} {    set match [lindex $stats 0]    set counter 0    set temp [list ]    set temp [linsert $temp end $match]    while {[lsearch -exact $stats $match]&gt;-1} {      incr counter      set pos [lsearch -exact $stats $match]      set stats [lreplace $stats $pos $pos]    }    set temp [linsert $temp end $counter]    set results [linsert $results end $temp]  }  set results [lsort -integer -decreasing -index 1 $results]  set counter 1  #  putquick "NOTICE $nickname :1,0«1,15«1,14«0,1  Top 10 gather players. 1,14»1,15»1,0»"  foreach result $results {    if { [matchattr $idx G] } {    set admin0r 1    } else {     set admin0r 0   }    if {$nickname == [lindex $result 0]} {    if {$admin0r == 1} {    putquick "NOTICE $nickname :14,1\[7«0 You make ([lindex $result 0]) : [lindex $result 1] gathers this month. Rank:  $counter. Status: Admin. 7»14]"   } else {    putquick "NOTICE $nickname :14,1\[7«0 You make ([lindex $result 0]) : [lindex $result 1] gathers this month. Rank: 4 $counter0,1. Status: 4Admin0,1. 7»14]"    }    }    incr counter}} else {if {[llength $g_stats]==0} {    putserv "NOTICE $nickname :No Gather yet :)"    return 0  }  set stats $g_stats  set results [list ]  while {[llength $stats]!=0} {    set match [lindex $stats 0]    set counter 0    set temp [list ]    set temp [linsert $temp end $match]    while {[lsearch -exact $stats $match]&gt;-1} {      incr counter      set pos [lsearch -exact $stats $match]      set stats [lreplace $stats $pos $pos]    }    set temp [linsert $temp end $counter]    set results [linsert $results end $temp]  }  set results [lsort -integer -decreasing -index 1 $results]  set counter 1  #  putquick "NOTICE $nickname :1,0«1,15«1,14«0,1  Top 10 gather players. 1,14»1,15»1,0»"  foreach result $results {    if { [matchattr $idx G] } {    set admin0r 1    } else {     set admin0r 0   }    if {$nickname == [lindex $result 0]} {    if {$admin0r == 1} {    putquick "NOTICE $nickname :14,1\[7«0 You make ([lindex $result 0]) : [lindex $result 1] gathers this month. Rank:  $counter. Status: Admin. 7»14]"   } else {    putquick "NOTICE $nickname :14,1\[7«0 You make ([lindex $result 0]) : [lindex $result 1] gathers this month. Rank: 4 $counter0,1. Status: 4Admin0,1. 7»14]"    }    }    incr counter       }}}</code></pre></div><br>he count how many times the nick is on txt file and he announce the result.. but i must have the nick with small letters because i cant setup <br>set nick [string tolower $nick] or something.. any opinion?<br><br><br>thnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Dec 05, 2008 10:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-05T07:22:29-04:00</updated>

		<published>2008-12-05T07:22:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86064#p86064</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86064#p86064"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86064#p86064"><![CDATA[
<blockquote class="uncited"><div>thanks for reply.<br><br>cant counting both words like Ultralord and ULTRALORD like one result?</div></blockquote>without tricks like [string tolower] i think no, because it is like in Unix systems, BIG_CHAR != small_char then ULTRALORD != Ultralord<br><br>put somewhere [string tolower] or "toupper" etc and all will be fine <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=10332">tomekk</a> — Fri Dec 05, 2008 7:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2008-12-05T06:47:17-04:00</updated>

		<published>2008-12-05T06:47:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86063#p86063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86063#p86063"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86063#p86063"><![CDATA[
thanks for reply.<br><br>cant counting both words like Ultralord and ULTRALORD like one result?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Dec 05, 2008 6:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-04T08:56:44-04:00</updated>

		<published>2008-12-04T08:56:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86059#p86059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86059#p86059"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86059#p86059"><![CDATA[
u mean that Ultralord and ULTRALORD are two diffrent nicks for bot?<br><br>try to:<div class="codebox"><p>Code: </p><pre><code>[string tolower $string]</code></pre></div>before count, after this all nicks will be with small letters<br><br>:&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Thu Dec 04, 2008 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2008-12-04T08:10:14-04:00</updated>

		<published>2008-12-04T08:10:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86058#p86058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86058#p86058"/>
		<title type="html"><![CDATA[about caps and normal]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86058#p86058"><![CDATA[
hello.. i make one script and i set some variables and then i save them on the txt ( variables is nicks when someone run some binds his nick is on txt) all is ok.. but when i run some procs to count info from txt how many times nicks is displayed the bot dont count the nick because the nick is typing with caps ..<br><br>example:<br><br>my nick : Ultralord , i press !lalala<br>bot adds my nick Ultralord on txt<br>if i use my nick like ULTRALORD (with caps) my bot when i press the bind to show me the count results doesnt count all info from my nick Ultralord and ULTRALORD etc.<br><br><br>thanks i need to fix that is very usefull , thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Thu Dec 04, 2008 8:10 am</p><hr />
]]></content>
	</entry>
	</feed>
