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

	<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>2003-10-08T14:00:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-08T14:00:54-04:00</updated>

		<published>2003-10-08T14:00:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28168#p28168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28168#p28168"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28168#p28168"><![CDATA[
Hehe.. error spoted..<div class="codebox"><p>Code: </p><pre><code>global poz_chans text text2 </code></pre></div>should be:<div class="codebox"><p>Code: </p><pre><code>global poz_chans text1 text2 </code></pre></div>Anyway, if you want to drop the *line* and call the global variables then call them like $::text1 and $::text2 in the line where you want them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Oct 08, 2003 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NoFear]]></name></author>
		<updated>2003-10-08T12:09:18-04:00</updated>

		<published>2003-10-08T12:09:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28160#p28160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28160#p28160"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28160#p28160"><![CDATA[
no i have changed it  <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=3825">NoFear</a> — Wed Oct 08, 2003 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-08T10:01:12-04:00</updated>

		<published>2003-10-08T10:01:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28157#p28157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28157#p28157"/>
		<title type="html"><![CDATA[Re: My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28157#p28157"><![CDATA[
<blockquote class="uncited"><div>Hi!<br>This is my first script, but it doesn't work.. i youst don't know what the problem is.<br><div class="codebox"><p>Code: </p><pre><code>################################      .:[H-Town Team]:.      ##   .:[JoinGreet Script]:.    ##                             ################################## Vpiši pozdravni text.set text "Text"set text2 "Text2"[snip]</code></pre></div>[snip]</div></blockquote>you forgot to change text to text1 as we did in our codes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Oct 08, 2003 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-07T16:41:19-04:00</updated>

		<published>2003-10-07T16:41:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28141#p28141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28141#p28141"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28141#p28141"><![CDATA[
Umm.. yes.. the:<div class="codebox"><p>Code: </p><pre><code>   putserv "NOTICE $nick :$Text1"   putserv "NOTICE $nick :$Text2" </code></pre></div>lines.. change them to something that suits your needs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Oct 07, 2003 4:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NoFear]]></name></author>
		<updated>2003-10-07T14:17:01-04:00</updated>

		<published>2003-10-07T14:17:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28126#p28126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28126#p28126"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28126#p28126"><![CDATA[
yes i do but there is some error "there is no such variable text1" something like that.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3825">NoFear</a> — Tue Oct 07, 2003 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-07T13:46:04-04:00</updated>

		<published>2003-10-07T13:46:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28121#p28121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28121#p28121"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28121#p28121"><![CDATA[
they should work. do you .rehash or .restart when you load the script ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Oct 07, 2003 1:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NoFear]]></name></author>
		<updated>2003-10-07T11:13:07-04:00</updated>

		<published>2003-10-07T11:13:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28107#p28107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28107#p28107"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28107#p28107"><![CDATA[
yes he had op. no this don't work.. :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3825">NoFear</a> — Tue Oct 07, 2003 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-06T15:24:59-04:00</updated>

		<published>2003-10-06T15:24:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28046#p28046</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28046#p28046"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28046#p28046"><![CDATA[
NoFear, was your bot an OP when you tried my code?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 06, 2003 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-06T15:12:16-04:00</updated>

		<published>2003-10-06T15:12:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28045#p28045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28045#p28045"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28045#p28045"><![CDATA[
ExAcTlY! <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 Oct 06, 2003 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-06T15:10:53-04:00</updated>

		<published>2003-10-06T15:10:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28044#p28044</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28044#p28044"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28044#p28044"><![CDATA[
CaSe SeNsTiVe?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 06, 2003 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-06T15:07:14-04:00</updated>

		<published>2003-10-06T15:07:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28043#p28043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28043#p28043"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28043#p28043"><![CDATA[
the:<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact $poz_chans $chan] == -1} {return 0} </code></pre></div>should be:<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact [strlwr $poz_chans] [strlwr $chan]] == -1} {return 0} </code></pre></div>just due the lower and upper names of the channels. Observere:<blockquote class="uncited"><div>(caesar) .tcl set text "moo bla oink" ; lsearch -exact $text "BLA"<br>(moo) Tcl: -1<br>(caesar) .tcl set text "moo bla oink" ; lsearch -exact $text "bla"<br>(moo) Tcl: 1</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Oct 06, 2003 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-06T14:36:31-04:00</updated>

		<published>2003-10-06T14:36:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28040#p28040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28040#p28040"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28040#p28040"><![CDATA[
or simpler would be:<div class="codebox"><p>Code: </p><pre><code>set text1 "Text" set text2 "Text2" set poz_chans "#Kanal1 #Kanal2" bind join - * pozdrav proc pozdrav {nick uhost hand chan} { global poz_chans text text2 if {[lsearch -exact $poz_chans $chan] == -1} {return 0}   putserv "NOTICE $nick :$Text1"    putserv "NOTICE $nick :$Text2" }</code></pre></div>if you want the bot to greet only if its oped then add <strong class="text-strong">|| ![botisop $chan]</strong> in the if statement.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Oct 06, 2003 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NoFear]]></name></author>
		<updated>2003-10-06T14:30:03-04:00</updated>

		<published>2003-10-06T14:30:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28039#p28039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28039#p28039"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28039#p28039"><![CDATA[
Ok i changed my avatar to nothing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> hm.. nope doesn't works :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3825">NoFear</a> — Mon Oct 06, 2003 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-06T12:47:25-04:00</updated>

		<published>2003-10-06T12:47:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28037#p28037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28037#p28037"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28037#p28037"><![CDATA[
i just edited <br>"putserv "NOTICE $nick : $Text1 "<br>to "putserv "NOTICE $nick : $text1 "<br><br>btw, I would be nice if you changed your avatar.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 06, 2003 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-06T12:38:58-04:00</updated>

		<published>2003-10-06T12:38:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28036#p28036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28036#p28036"/>
		<title type="html"><![CDATA[My First Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28036#p28036"><![CDATA[
maybe this will work<br><div class="codebox"><p>Code: </p><pre><code>set text1 "Text" set text2 "Text2"set poz_chans "#Kanal1 #Kanal2" bind join -|- * pozdravproc pozdrav {nick uhost handle channel} {   global botnick poz text1 text2  set chan [string tolower $channel]  if {![info exists poz($chan)]} {return 0}  if {![botisop $chan]} {return 0}  putserv "NOTICE $nick : $text1 "   putserv "NOTICE $nick : $text2 "  return 0 } if {$poz_chans != ""} {  foreach chan [string tolower $poz_chans] {    set poz([string tolower $chan]) 1  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Oct 06, 2003 12:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
