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

	<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-28T12:31:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-06-28T12:31:44-04:00</updated>

		<published>2004-06-28T12:31:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37980#p37980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37980#p37980"/>
		<title type="html"><![CDATA[could this work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37980#p37980"><![CDATA[
-1 user for each channel where reperesents itself <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=187">caesar</a> — Mon Jun 28, 2004 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-06-28T01:15:32-04:00</updated>

		<published>2004-06-28T01:15:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37966#p37966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37966#p37966"/>
		<title type="html"><![CDATA[could this work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37966#p37966"><![CDATA[
<blockquote class="uncited"><div>i need to know how to make "$chusr" count all the nicks that are in same chan with the bot, doesn't matter if they're oped/voice/ or nothing</div></blockquote><div class="codebox"><p>Code: </p><pre><code>set chusr 0foreach c [channels] {    incr chusr [llength [chanlist $c]]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Jun 28, 2004 1:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-28T01:11:36-04:00</updated>

		<published>2004-06-28T01:11:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37965#p37965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37965#p37965"/>
		<title type="html"><![CDATA[could this work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37965#p37965"><![CDATA[
my mistake, i didn't tell it correctly, everything is correct except, i need to know how to make "$chusr" count all the nicks that are in same chan with the bot, doesn't matter if they're oped/voice/ or nothing<br><br>Ty, scripts works great.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Mon Jun 28, 2004 1:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-27T20:49:38-04:00</updated>

		<published>2004-06-27T20:49:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37962#p37962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37962#p37962"/>
		<title type="html"><![CDATA[could this work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37962#p37962"><![CDATA[
Something like this should work:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - `power pub:powerproc pub:power {nick uhost hand chan text} {  set chnum 0; set chusr 0; set nonop 0 set totch [llength [channels]]  foreach ch [channels] {    if {[botisop $ch]} {      set chn [llength [chanlist $ch]]      incr chusr $chn      incr chnum      foreach u [chanlist $ch] {        if {![isop $u $ch]} { incr nonop }      }    }  } putserv "PRIVMSG $chan :I'm opped in $chnum out of $totch channels, and can fool around with $nonop out of $chusr users. "}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Jun 27, 2004 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-27T17:59:19-04:00</updated>

		<published>2004-06-27T17:59:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37953#p37953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37953#p37953"/>
		<title type="html"><![CDATA[could this work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37953#p37953"><![CDATA[
something is messed up<br><blockquote class="uncited"><div>[02:54:54pm] (DarkJFMan) `power<br>[02:54:56pm] (DarkJFGirl) I'm oped in 4 channels out of 4, and can fool around with 0 of 4</div></blockquote>what i want script to do<br>&lt;nick&gt;`power<br>&lt;bot&gt; I'm oped in (how many chans bot is op) channels out of (the chan's he's in), and can fool around with (people that don't got op) of (all the users in same chan with op)<br><br>The script is correct, it's just i need to find the right loops.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Sun Jun 27, 2004 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-27T17:05:00-04:00</updated>

		<published>2004-06-27T17:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37952#p37952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37952#p37952"/>
		<title type="html"><![CDATA[could this work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37952#p37952"><![CDATA[
You are using the wrong number of arguments for the 'botisop' command.<br>See the tcl-commands.doc for BOTISOP.<br><br>Replace this<br><div class="codebox"><p>Code: </p><pre><code>      if {[botisop [lindex $test $number] $channel]} {</code></pre></div>With this<br><div class="codebox"><p>Code: </p><pre><code>      if {[botisop $channel]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jun 27, 2004 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-27T16:52:07-04:00</updated>

		<published>2004-06-27T16:52:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37947#p37947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37947#p37947"/>
		<title type="html"><![CDATA[could this work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37947#p37947"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - `power pub:powerproc pub:power { nick host hand channel args } {global botnick power  set test [chanlist $channel]# The channels bot is in  set reg($channel) 0  for { set number 0 } { $number &lt; [llength $test] } { incr number } {    if {[onchan $botnick $channel]} {       incr reg($channel)     }  }# The channels bot is op  set ops($channel) 0  for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[botisop [lindex $test $number] $channel]} {        incr ops($channel)      }    }# The number of users are in chan with bot  set usera($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[onchan $nick $channel]} {        incr usera($channel)      }    }# The number of users are in chan with bot with no op  set usern($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {![isop $nick $channel] } {   incr usern($channel)      }    }puhelp "PRIVMSG $channel :I'm oped in $ops($channel) channels out of $reg($channel), \    and can fool around with $usern($channel) of $usera($channel)"  } return 0}}</code></pre></div>[01:58:08pm] &lt;DarkJFGirl&gt; [17:00] Tcl error [pub:power]: wrong # args: should be "botisop ?channel?"<br><br>What's wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Sun Jun 27, 2004 4:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
