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

	<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-27T15:17:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-27T15:17:11-04:00</updated>

		<published>2004-06-27T15:17:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37937#p37937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37937#p37937"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37937#p37937"><![CDATA[
For making private message binds with<br>procedures use this.<br><br>This should get you started.<br><div class="codebox"><p>Code: </p><pre><code>bind msg n settopic my_procedureproc my_procedure {nick host hand text} { ........................}</code></pre></div>U'll have to do some things on your own and not wait for<br>people to make scripts for you, always.<br><br>I didn't know abc of tcl, but I knew a bit C++ and from there<br>on I catched it on by using the trial and error method and mainly<br>by looking at other scripts done by other pro scripters.<br><br>If your logic is write, say the pseudocode, or your procedure<br>of employment eventually you can solve them problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jun 27, 2004 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-06-27T14:13:59-04:00</updated>

		<published>2004-06-27T14:13:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37936#p37936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37936#p37936"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37936#p37936"><![CDATA[
Yes, but i don't want to use a different script :&lt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Jun 27, 2004 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-06-26T19:38:28-04:00</updated>

		<published>2004-06-26T19:38:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37915#p37915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37915#p37915"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37915#p37915"><![CDATA[
There is script from MC_8 where you can change autolimit number (so bot change limit + lx every some time | x - is number which you set in partyline) in partyline.You can change dcc to msg command....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Sat Jun 26, 2004 7:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-06-26T19:27:04-04:00</updated>

		<published>2004-06-26T19:27:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37913#p37913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37913#p37913"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37913#p37913"><![CDATA[
Nono, the thing is, If you say autolimit #how many on/off it will set the autolimit, but i wanted it to respond on msg, fx: /msg &lt;bot&gt; autolimit #number on/off instead of in public<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Jun 26, 2004 7:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-06-26T18:35:33-04:00</updated>

		<published>2004-06-26T18:35:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37911#p37911</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37911#p37911"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37911#p37911"><![CDATA[
It's not filtered in newer eggdrop versions or Tcl, because this is intended behaviour, when used correctly...<br><br>For example, using the last code segment you posted...<br>Do: /msg &lt;botnick&gt; !limit [die] + 5<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Jun 26, 2004 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-26T16:38:44-04:00</updated>

		<published>2004-06-26T16:38:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37905#p37905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37905#p37905"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37905#p37905"><![CDATA[
Hmm yeah.. I took a look at it.<br><br>Anyway I tested my scripts with channels and nicks<br>containing characters [ ] \ { } " and they seemed to<br>work fine and didnt choke on these characters.<br><br>I've tested this thing with most of my scripts and other<br>scripts as well, this was an error/bug in the older versions<br>of eggdrop I think, now they filter it.<br><br>I think the newer versions of eggdrops filters out<br>these words in the procedure parameters of the binds.<br><br>So I think even if you are running the latest tcl version<br>and latest eggdrop version your scripts even if you use<br>special tcl characters in it on variables such as nicks and<br>channels they will not choke on those special characters.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jun 26, 2004 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-06-26T16:07:22-04:00</updated>

		<published>2004-06-26T16:07:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37904#p37904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37904#p37904"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37904#p37904"><![CDATA[
Awyeah, take a look at <a href="http://peterre.com/characters.html" class="postlink">http://peterre.com/characters.html</a>. SPLIT $text before using LIST commands on it (like lindex, lrange, or lset). $text is a string, using list commands on it b0rks the [censored]. Read the page. :]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Sat Jun 26, 2004 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-26T03:55:51-04:00</updated>

		<published>2004-06-26T03:55:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37890#p37890</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37890#p37890"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37890#p37890"><![CDATA[
Umm... yeah sorry for that lrange thing, I forgot to add the 'end' in a hurry... as everything has a starting range, it has an ending range  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>As for the script you have posted?<br>Why would you want it to respond to msgs?<br><br>It has nothing todo with public commands.<br>The bind is set for join, and the bot would automatically<br>change the limits when people part or join a channel depending<br>upon the ranges you will have set in the script.<br><br>If you want to enable and disable the script at times, well for that<br>you can add a procedure to kill the timers or utimers of that autolimit<br>script and maybe unbind the auto limit setting procedure, that should do it and vice versa.<br><br>If you want to make a script to respond to private messages<br>and change a limit of a channel, that is almost the same as<br>the code as for the settopic which I had made.<br><br>Use this as:<br><div class="codebox"><p>Code: </p><pre><code>/msg &lt;botnick&gt; !limit &lt;#channel&gt; &lt;+/-&gt; &lt;limit&gt;</code></pre></div><div class="codebox"><p>Code: </p><pre><code>bind msg o !limit msg:limit proc msg:limit {nick host hand text} {  global botnick   set chan [lindex $text 0]   if {[botisop $chan]} {    set range "[lindex $text 1]l"; set limit [lindex $text 2]   putserv "MODE $chan :$range $topic"  } } </code></pre></div><br>If you want it in this way<br><div class="codebox"><p>Code: </p><pre><code>/msg &lt;botnick&gt; !limit &lt;#channel&gt; &lt;+/- limit&gt;</code></pre></div>Then you will need to split them up and process them seperately.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jun 26, 2004 3:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-06-25T12:05:32-04:00</updated>

		<published>2004-06-25T12:05:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37878#p37878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37878#p37878"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37878#p37878"><![CDATA[
I was wondering, If i wanted this script to respond to msg's would i just have to alter the proc etc or everything?<br><div class="codebox"><p>Code: </p><pre><code>bind pub  n|m "autolimit" autolimit:pubbind join -|- * autolimit:joinsetudef str "autolimit"proc autolimit:start {} {  foreach channel [channels] {    if {[channel get $channel "autolimit"] == ""} {      channel set $channel "autolimit" "0"    }  }  utimer 60 autolimit}proc autolimit:join {nickname hostname handle channel} {  if {![isbotnick $nickname]} {    return 0  }  if {[channel get $channel "autolimit"] == ""} {    channel set $channel "autolimit" "0"  }}proc autolimit:pub {nickname hostname handle channel arguments} { global lastbind  set argumentc [llength [split $arguments { }]]  set option [lindex $arguments 0]  set users [llength [chanlist $channel]]  if {$argumentc &lt; 1} {    set currentlimit [channel get $channel "autolimit"]    if {$currentlimit &gt; 0} {      putserv "NOTICE $nickname :Current auto-limit is: [channel get $channel "autolimit"]"    } else {      putserv "NOTICE $nickname :Argument should start with a '#' and a digit. (eg. #10 or on|off)"    }    return  }  if {([regexp -nocase -- {(#[0-9]+|off|on)} $option tmp result]) &amp;&amp; (![regexp -nocase -- {\S#} $option])} {    switch $result {      on {        channel set $channel "autolimit" "10"        putserv "MODE $channel +l [expr $users + 10]"        puthelp "NOTICE $nickname :Auto-limit is changed to: +10"      }      off {        channel set $channel "autolimit" "0"        putserv "MODE $channel -l *"        puthelp "NOTICE $nickname :Done. Auto-limit disabled successfully."      }      default {        if {([regexp {#[0-9]} $result]) &amp;&amp; ([string index $result 0] == "#")} {          regexp {#([0-9]+)} $result tmp result          if {($result &lt; 2)} {            set result 2          } elseif {($result &gt; 500)} {            set result 500          }          channel set $channel "autolimit" "$result"          putserv "MODE $channel +l [expr $users + $result]"          puthelp "NOTICE $nickname :Auto-limit is changed to: $result"        }      }    }  } else {    puthelp "NOTICE $nickname :Argument should start with a '#' and a digit. (eg. #10 or on|off)"  }}proc autolimit {} {  if {![string match *autolimit* [utimers]]} {    utimer 60 autolimit  }  foreach channel [channels] {    set autolimit [channel get $channel "autolimit"]    if {(![botisop $channel]) || ($autolimit == "0")} {      continue    }    set users [llength [chanlist $channel]]    set newlimit [expr $users + $autolimit]    set chanmodes [getchanmode $channel]    if {[string match *l* [lindex $chanmodes 0]]} {      regexp {\S[\s]([0-9]+)} $chanmodes tmp currentlimit    } else {      set currentlimit 0    }    if {$newlimit == $currentlimit} {continue}    if {$newlimit &gt; $currentlimit} {      set difference [expr $newlimit - $currentlimit]    } elseif {$newlimit &lt; $currentlimit} {      set difference [expr $currentlimit - $newlimit]    }    if {($difference &lt;= [expr round($autolimit * 0.5)]) &amp;&amp; ($autolimit &gt; 5)} {      continue    } elseif {($difference &lt; [expr round($autolimit * 0.38)]) &amp;&amp; ($autolimit &lt;= 5)} {      continue    }    putserv "mode $channel +l $newlimit"  }}autolimit:startWould i have to change:[code]proc autolimit:pub {nickname hostname handle channel arguments} {</code></pre></div>or?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Jun 25, 2004 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-06-25T12:05:59-04:00</updated>

		<published>2004-06-25T11:55:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37877#p37877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37877#p37877"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37877#p37877"><![CDATA[
That fixed it, thnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Jun 25, 2004 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-25T11:49:13-04:00</updated>

		<published>2004-06-25T11:49:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37876#p37876</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37876#p37876"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37876#p37876"><![CDATA[
change this line<div class="codebox"><p>Code: </p><pre><code>set topic [lrange $text 1]</code></pre></div>into<br><div class="codebox"><p>Code: </p><pre><code>set topic [lrange $text 1 end]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Jun 25, 2004 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-06-25T11:44:45-04:00</updated>

		<published>2004-06-25T11:44:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37875#p37875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37875#p37875"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37875#p37875"><![CDATA[
I get a tcl error when doing the settopic command<br><br>[17:39] Tcl error [msg:q:topic]: wrong # args: should be "lrange list first last"<br><br>and the Qban cmd works perfectly <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=5078">metroid</a> — Fri Jun 25, 2004 11:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-25T08:21:36-04:00</updated>

		<published>2004-06-25T08:21:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37858#p37858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37858#p37858"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37858#p37858"><![CDATA[
For changing the banmask to a users host use this.<br>This would ban and IP Address in the following format:<br><div class="codebox"><p>Code: </p><pre><code>*!*@127.0.0.1</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc pub:qban {nick uhost hand chan text} {  if {[string length $text] &gt; 0} { set tnick [lindex $text 0] } set userhost [getchanhost $tnick $chan] set banmask "*!*@[lindex [split $userhost @] 1]" ................................... ....................................... ............................................ putserv "MODE $chan +b $banmask" ............................................ ........................................ .................................... }}</code></pre></div>The topic thingy is quite easy as well.<br>Use this in the following format:<br><div class="codebox"><p>Code: </p><pre><code>/msg &lt;botnick&gt; settopic &lt;#channel&gt; &lt;topic&gt;</code></pre></div>Try using this code, this should work:<br><div class="codebox"><p>Code: </p><pre><code>bind msg o settopic msg:q:topic proc msg:q:topic {nick host hand text} { global botnick  set chan [lindex $text 0]  if {[botisop $chan]} {    set topic [lrange $text 1]   putserv "PRIVMSG Q :settopic $chan $topic" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jun 25, 2004 8:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-06-25T06:54:14-04:00</updated>

		<published>2004-06-25T06:54:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37853#p37853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37853#p37853"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37853#p37853"><![CDATA[
Hey awyeah, I was wondering if you could convert this for me<br><br>bind pub o settopic q:topic<br><br>proc q:topic {nick uhost hand chan text} {<br> putserv "PRIVMSG Q :settopic $chan $text"<br>}<br><br>This script is a public script where when u say settopic *topic* the bot makes Q set it, I was wondering if you guys could make it a msg, for example:<br><br>/msg &lt;bot&gt; settopic &lt;channel&gt; &lt;text&gt;<br><br>I've tried myself but it failed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>bind msg o settopic msg:q:topic<br><br>proc msg:q:topic {nick uhost hand text} {<br><br>I don't know what to do further <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=5078">metroid</a> — Fri Jun 25, 2004 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-06-25T05:38:35-04:00</updated>

		<published>2004-06-25T05:38:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37850#p37850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37850#p37850"/>
		<title type="html"><![CDATA[script i made]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37850#p37850"><![CDATA[
Works like a charm, Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Here is the result <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Channel with Q :<br><br>[11:37:32] &lt;MeTroiD&gt; !qban sheepbot<br>[11:37:34] * sheepbot was kicked by |A| (You have been Qbanned by MeTroiD)<br>[11:37:36] -|A|- Done.<br>[11:37:56] * sheepbot (<a href="mailto:v1per@sh33pb0tt0r.users.quakenet.org">v1per@sh33pb0tt0r.users.quakenet.org</a>) has joined #sheep.go.meh<br>[11:37:56] * Q sets mode: +b *!*@sh33pb0tt0r.users.quakenet.org<br>[11:37:56] * Info: This *!*@sh33pb0tt0r.users.quakenet.org ban affects sheepbot<br>[11:37:56] * sheepbot was kicked by Q (You are BANNED from this channel.)<br><br>Channel with L :<br><br>[11:36:23] &lt;MeTroiD&gt; !qban sheepbot<br>[11:36:24] -|A|- There is no Q on this channel.<br>[11:36:25] * |A| sets mode: +b sheepbot!*@*<br>[11:36:27] * sheepbot was kicked by |A| (Due to no Q being in this channel you are being kicked.)<br><br>Now need to know how to change the ban on his nick to a ban on his host<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Jun 25, 2004 5:38 am</p><hr />
]]></content>
	</entry>
	</feed>
