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

	<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>2005-07-11T19:16:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-11T19:16:30-04:00</updated>

		<published>2005-07-11T19:16:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52287#p52287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52287#p52287"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52287#p52287"><![CDATA[
Maybe it's a case issue, try changing<div class="codebox"><p>Code: </p><pre><code>"$anick $chan"</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>[string tolower "$anick $chan"]</code></pre></div>and the same with "$anick #AAA" and #BBB.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 11, 2005 7:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Majesty]]></name></author>
		<updated>2005-07-11T15:40:26-04:00</updated>

		<published>2005-07-11T15:40:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52278#p52278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52278#p52278"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52278#p52278"><![CDATA[
<blockquote class="uncited"><div>My bad, change<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [split $arg] 1]</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [split $arg] 0]</code></pre></div>and<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [split $arg !] 0]</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [lindex [split $arg !] 1] 0]</code></pre></div></div></blockquote><br>still nothing <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=6465">Majesty</a> — Mon Jul 11, 2005 3:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-11T11:37:27-04:00</updated>

		<published>2005-07-11T11:37:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52251#p52251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52251#p52251"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52251#p52251"><![CDATA[
My bad, change<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [split $arg] 1]</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [split $arg] 0]</code></pre></div>and<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [split $arg !] 0]</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>set anick [lindex [lindex [split $arg !] 1] 0]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 11, 2005 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Majesty]]></name></author>
		<updated>2005-07-11T07:21:25-04:00</updated>

		<published>2005-07-11T07:21:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52243#p52243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52243#p52243"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52243#p52243"><![CDATA[
<blockquote class="uncited"><div>This should do it, but it does not store the nicks in a file (try and do it yourself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> )<div class="codebox"><p>Code: </p><pre><code>bind pub - !add add:aliasbind pubm - !* show:aliasset alist [list]proc add:alias {nick uhost hand chan arg} { global alist set anick [lindex [split $arg] 1] if {[lsearch -exact $alist "$anick $chan"] == -1} {  lappend alist "$anick $chan" }}proc show:alias {nick uhost hand chan arg} { global alist set anick [lindex [split $arg !] 0] if {[search -exact $alist "$anick #AAA"] != -1} {  puthelp "PRIVMSG $chan :$anick is alias1" } elseif {[lsearch -exact $alist "$anick #BBB"] != -1} {  puthelp "PRIVMSG $chan :$anick is alias2" } else {  puthelp "RIVMSG $chan :$anick is not an alias" }}</code></pre></div>Edit: Use !add &lt;nick&gt; to add the nick into the list (anyone can do it btw) and !nick to show in what alias he is (edit #AAA and #BBB).</div></blockquote><br>Thanks for support <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> but i think tehre is somethin wrong <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> since BOT is not replying to !add or !nick <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=6465">Majesty</a> — Mon Jul 11, 2005 7:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-11T06:43:41-04:00</updated>

		<published>2005-07-11T06:43:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52242#p52242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52242#p52242"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52242#p52242"><![CDATA[
This should do it, but it does not store the nicks in a file (try and do it yourself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> )<div class="codebox"><p>Code: </p><pre><code>bind pub - !add add:aliasbind pubm - !* show:aliasset alist [list]proc add:alias {nick uhost hand chan arg} { global alist set anick [lindex [split $arg] 1] if {[lsearch -exact $alist "$anick $chan"] == -1} {  lappend alist "$anick $chan" }}proc show:alias {nick uhost hand chan arg} { global alist set anick [lindex [split $arg !] 0] if {[search -exact $alist "$anick #AAA"] != -1} {  puthelp "PRIVMSG $chan :$anick is alias1" } elseif {[lsearch -exact $alist "$anick #BBB"] != -1} {  puthelp "PRIVMSG $chan :$anick is alias2" } else {  puthelp "RIVMSG $chan :$anick is not an alias" }}</code></pre></div>Edit: Use !add &lt;nick&gt; to add the nick into the list (anyone can do it btw) and !nick to show in what alias he is (edit #AAA and #BBB).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 11, 2005 6:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Majesty]]></name></author>
		<updated>2005-07-11T06:19:38-04:00</updated>

		<published>2005-07-11T06:19:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52237#p52237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52237#p52237"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52237#p52237"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>I have question, how would a switch script if it suppose to work on the same basis ? that is if i type !name in #X it gives allias1<br>then if i type !name in #Y it gives allias 2.<br><br>Why would i like to use switch ? because  i want to have a userlisf *<br> !name1,!name2,!Name3 etc.. and for every !name***  i want 2 alliases .<br>how could that be done? any suggestions? thanks in advance.</div></blockquote>Can you be clearer, I didn't quiet understand what you mean.</div></blockquote>I want to make a script, that has a small database of people's names and their alliases! for example, my name is Marcel <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>So when somoene joins #XXX and types !marcel , the bot replies Marcel is ALIAS1!<br>BUt when the command !marcel is made from #YYYYYY the bot replies Marcel is ALIAS2.<br>I want to make a small database of people and their specific alliases.<br>It would be nice if i would add or edit through !add !edit, or i could as well edit in WordPad and add the names and their alliases, so when doing !name it will give me it's corresponding "allias"<br><br>better ? <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=6465">Majesty</a> — Mon Jul 11, 2005 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-11T06:05:34-04:00</updated>

		<published>2005-07-11T06:05:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52236#p52236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52236#p52236"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52236#p52236"><![CDATA[
<blockquote class="uncited"><div>I have question, how would a switch script if it suppose to work on the same basis ? that is if i type !name in #X it gives allias1<br>then if i type !name in #Y it gives allias 2.<br><br>Why would i like to use switch ? because  i want to have a userlisf *<br> !name1,!name2,!Name3 etc.. and for every !name***  i want 2 alliases .<br>how could that be done? any suggestions? thanks in advance.</div></blockquote>Can you be clearer, I didn't quiet understand what you mean.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 11, 2005 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-07-11T03:46:12-04:00</updated>

		<published>2005-07-11T03:46:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52230#p52230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52230#p52230"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52230#p52230"><![CDATA[
<blockquote class="uncited"><div>oh yea, this will work.<br><div class="codebox"><p>Code: </p><pre><code>bind pub * !name announce proc announce {nick uhost hand chan arg} {   if {$chan == "#YYYYY"} {    putserv "PRIVMSG $chan :$arg is allias1"}    } elseif {$chan == "#XXXX"} {    putserv "PRIVMSG $chan :$arg is allias2 "}   } }</code></pre></div>Ok, thats it. It will work now.</div></blockquote>Tosser. for the last time stop giving help on here when you still have no idea wtf you are doing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon Jul 11, 2005 3:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Majesty]]></name></author>
		<updated>2005-07-11T01:45:47-04:00</updated>

		<published>2005-07-11T01:45:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52220#p52220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52220#p52220"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52220#p52220"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pub * !name announce proc announce {nick uhost hand chan arg} {  if {$chan == "#YYYYY"} {   putserv "PRIVMSG $chan :$arg is allias1" } elseif {$chan == "#XXXX"} {   putserv "PRIVMSG $chan :$arg is allias2 " }}</code></pre></div>notice the braces.</div></blockquote>Thank you , this works excellent.<br><br>I have question, how would a switch script if it suppose to work on the same basis ? that is if i type !name in #X it gives allias1<br>then if i type !name in #Y it gives allias 2.<br><br>Why would i like to use switch ? because  i want to have a userlisf *<br> !name1,!name2,!Name3 etc.. and for every !name***  i want 2 alliases .<br>how could that be done? any suggestions? thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6465">Majesty</a> — Mon Jul 11, 2005 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-10T19:57:44-04:00</updated>

		<published>2005-07-10T19:57:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52209#p52209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52209#p52209"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52209#p52209"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub * !name announce proc announce {nick uhost hand chan arg} {  if {$chan == "#YYYYY"} {   putserv "PRIVMSG $chan :$arg is allias1" } elseif {$chan == "#XXXX"} {   putserv "PRIVMSG $chan :$arg is allias2 " }}</code></pre></div>notice the braces.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jul 10, 2005 7:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Majesty]]></name></author>
		<updated>2005-07-10T19:24:18-04:00</updated>

		<published>2005-07-10T19:24:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52208#p52208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52208#p52208"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52208#p52208"><![CDATA[
<blockquote class="uncited"><div>oh yea, this will work.<br><div class="codebox"><p>Code: </p><pre><code>bind pub * !name announce proc announce {nick uhost hand chan arg} {   if {$chan == "#YYYYY"} {    putserv "PRIVMSG $chan :$arg is allias1"}    } elseif {$chan == "#XXXX"} {    putserv "PRIVMSG $chan :$arg is allias2 "}   } }</code></pre></div>Ok, thats it. It will work now.</div></blockquote><div class="codebox"><p>Code: </p><pre><code> [02:22] Tcl error in file 'eggdrop.conf':[02:22] (Crusader): [02:22] wrong # args: should be "proc name args body" while executing"proc announce {nick uhost hand chan arg} {[0if {$chan == "#XXXXX"} {putserv "PRIVMSG $chan :$arg is allias1"}} elseif {$chan == "#YYY..."[(file "scripts/Utopia.tcl" line 3)invoked from within"source scripts/Utopia.tcl"(file "eggdrop.conf" line 1337)* CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</code></pre></div>there is still some mistake :\ help?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6465">Majesty</a> — Sun Jul 10, 2005 7:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-07-10T17:35:14-04:00</updated>

		<published>2005-07-10T17:35:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52205#p52205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52205#p52205"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52205#p52205"><![CDATA[
oh yea, this will work.<br><div class="codebox"><p>Code: </p><pre><code>bind pub * !name announce proc announce {nick uhost hand chan arg} {   if {$chan == "#YYYYY"} {    putserv "PRIVMSG $chan :$arg is allias1"}    } elseif {$chan == "#XXXX"} {    putserv "PRIVMSG $chan :$arg is allias2 "}   } }</code></pre></div>Ok, thats it. It will work now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Jul 10, 2005 5:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Majesty]]></name></author>
		<updated>2005-07-10T17:32:02-04:00</updated>

		<published>2005-07-10T17:32:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52204#p52204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52204#p52204"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52204#p52204"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pub * !name announce proc announce {nick uhost hand chan arg} { if {$chan == "#YYYYY"} {putserv "PRIVMSG $chan :$arg is allias1"} elseif {$chan == "#XXXX"} {putserv "PRIVMSG $chan :$arg is allias2 "} } </code></pre></div>That will display what you type after !name.<br><br>So !name blah =<br>blah is allias1 or allias2</div></blockquote>alrite, then what about that error with "elseif " &amp; "else"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6465">Majesty</a> — Sun Jul 10, 2005 5:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-07-10T17:04:04-04:00</updated>

		<published>2005-07-10T17:04:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52200#p52200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52200#p52200"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52200#p52200"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub * !name announce proc announce {nick uhost hand chan arg} { if {$chan == "#YYYYY"} {putserv "PRIVMSG $chan :$arg is allias1"} elseif {$chan == "#XXXX"} {putserv "PRIVMSG $chan :$arg is allias2 "} } </code></pre></div>That will display what you type after !name.<br><br>So !name blah =<br>blah is allias1 or allias2<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Jul 10, 2005 5:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Majesty]]></name></author>
		<updated>2005-07-10T16:48:18-04:00</updated>

		<published>2005-07-10T16:48:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52199#p52199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52199#p52199"/>
		<title type="html"><![CDATA[Name Trigger Help  Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52199#p52199"><![CDATA[
Hello there,<br>Im very new to TCL and this would be considered my 1st ever script. I need help in modifing it and tweaking as it's not working properly becuase it shows error with "elseif" and "else" if used instead of "elseif"<br><br>*optional*<br>What i would like more, is someone helping me out by telling me how to when using " !<strong class="text-strong">name</strong>" to automaticaly reappear in {putserv "PRIVMSG $chan :<strong class="text-strong">name</strong> is allias"}<br><div class="codebox"><p>Code: </p><pre><code>bind pub * !name announceproc announce {nick uhost hand chan arg} {if {$chan == "#YYYYY"} {putserv "PRIVMSG $chan :name is allias1"}elseif {$chan == "#XXXX"} {putserv "PRIVMSG $chan :name is allias2 "}}</code></pre></div>the idea of this is to have a small database,specific for a channel, that when doing !name it shows an allias for that parson.<br><br>Thanks for your suppor, if i was bit unclear dont blame me .. i dont know how to realy explain it all. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thx in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6465">Majesty</a> — Sun Jul 10, 2005 4:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
