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

	<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>2006-08-13T17:46:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-11T11:48:44-04:00</updated>

		<published>2006-08-11T11:48:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65388#p65388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65388#p65388"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65388#p65388"><![CDATA[
Thanks it worked nw thanks for helping me im still learning<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Fri Aug 11, 2006 11:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-08-11T10:54:12-04:00</updated>

		<published>2006-08-11T10:54:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65385#p65385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65385#p65385"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65385#p65385"><![CDATA[
Forgot to replace a word.<br>I've edited my post. Copy it again and it will work. I also improved the !add script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Fri Aug 11, 2006 10:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-11T08:24:58-04:00</updated>

		<published>2006-08-11T08:24:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65378#p65378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65378#p65378"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65378#p65378"><![CDATA[
everything works but the find it keeps saying name not found<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Fri Aug 11, 2006 8:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-08-11T11:40:27-04:00</updated>

		<published>2006-08-11T06:59:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65377#p65377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65377#p65377"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65377#p65377"><![CDATA[
Now it should work. I deleted some mistakes.<div class="codebox"><p>Code: </p><pre><code>set gamefile "scripts/game.txt"if {![file exists $gamefile]} {   catch {close [open $gamefile w]}}bind pub - !add pub:addproc pub:add {nick uhost hand chan arg} {set game [lindex [split $arg] 0]set code [lindex [split $arg] 1] if {$game != "" &amp;&amp; $code != ""} {  set fd [open $::gamefile r+]    while {![eof $fd]} {     lappend list [gets $fd]    }    if {[lindex $list end] == ""} {      set list [lreplace $list end end]    }     lappend list "\[$nick\] &lt;$game&gt; &lt;$code&gt;"     seek $fd 0     puts -nonewline $fd [join $list \n]     close $fd } else {   putserv "PRIVMSG $nick :Usage: !add &lt;game&gt; &lt;code&gt;" }} bind pub - !find find:nickproc find:nick {nick uhost hand chan arg} {global gamefileset name [lindex [split $arg] 0] if {$name != ""} {  set fd [open $::gamefile r]    while {![eof $fd]} {     lappend list [gets $fd]    }    close $fd    if {[set le [lsearch -glob $list "*$name*"]] != -1} {     set line [lindex $list $le]     set code [string map {&lt; "" &gt; ""} [lindex $line 2]]     putserv "NOTICE $nick :The code $code belongs to $name."    } else {     putserv "NOTICE $nick :Name not found."    } } else {   putserv "PRIVMSG $nick :Usage: !find &lt;nick&gt;" } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Fri Aug 11, 2006 6:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-10T20:57:10-04:00</updated>

		<published>2006-08-10T20:57:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65371#p65371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65371#p65371"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65371#p65371"><![CDATA[
i edited that can anyone help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Thu Aug 10, 2006 8:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-10T14:27:26-04:00</updated>

		<published>2006-08-10T14:27:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65359#p65359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65359#p65359"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65359#p65359"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>###########################################################Friendcodes IRC script written by monie                 ##email monie &lt;xg.monie089@gmail.com&gt;                     ##monie @ Friendcodes #NintendoXG,#IRCsupport,#Friendcodes###########################################################bind pub -|- !friendcodes pub:friendcodesproc pub:friendcodes {nickname hostname handle channel arguments } {putquick "PRIVMSG $nickname :$nickname Welcome ShadowBot Wifi Central"putquick "PRIVMSG $nickname :$nickname,To use WiFi Central"putquick "PRIVMSG $nickname :Games currently supported are"putquick "PRIVMSG $nickname :MKDS,MPH,LM,THAS,acww"putquick "PRIVMSG $nickname :Type !add &lt;game&gt; &lt;code&gt; "putquick "PRIVMSG $nickname :To find a friendcode type"putquick "PRIVMSG $nickname :!find &lt;nick&gt;"putquick "PRIVMSG $nickname :To Delete Your code type"putquick "PRIVMSG $nickname :!del &lt;game&gt;"putquick "PRIVMSG $nickname :Scripted by MÔnie"}set gamefile "scripts/game.txt"if {![file exists $gamefile]} {   catch {close [open $gamefile w]}}bind pub - !add pub:addproc pub:add { nick uhost hand chan arg} {set game [lindex [split $arg] 0]set code [lindex [split $arg] 1]if {$game &amp;&amp; code != ""} {set fd open $::mphfile r+]while {![eof $fd]} {lappend list [gets $fd]}lappend list "[$nick] $game $code"puts -nonewline $fd [join $list \n]close $fd} else {putserv "PRIVMSG $nickname :Usage: !add &lt;game&gt; &lt;code&gt;"}}bind pub - !find pub:findproc pub:find {nick uhost hand chan arg} {}putlog "Monies custom Friendcodes script loaded"</code></pre></div>thats the code but the add part doesnt work and for the find part how do i make it do<br>notice nickname $nicks code are<br>notice nickname mph:23232323<br>notice $nickname mkds:232343234<br>notice $nickname thas:232324323<br>notice $nickname acww:24334 name:blah town:blah<br>EDITED<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Thu Aug 10, 2006 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-08-09T22:13:09-04:00</updated>

		<published>2006-08-09T22:13:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65341#p65341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65341#p65341"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65341#p65341"><![CDATA[
<span style="color:darkred">Moved to</span>: Scripting Help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Aug 09, 2006 10:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-09T18:53:34-04:00</updated>

		<published>2006-08-09T18:53:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65338#p65338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65338#p65338"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65338#p65338"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>###########################################################Friendcodes IRC script written by monie                 ##email monie &lt;xg.monie089@gmail.com&gt;                     ##monie @ Friendcodes #NintendoXG,#IRCsupport,#Friendcodes###########################################################bind pub -|- !friendcodes pub:friendcodesproc pub:friendcodes {nickname hostname handle channel arguments } {putquick "PRIVMSG $nickname :$nickname Welcome ShadowBot Wifi Central"putquick "PRIVMSG $nickname :$nickname,To use WiFi Central"putquick "PRIVMSG $nickname :Games currently supported are"putquick "PRIVMSG $nickname :MKDS,MPH,LM,THAS,DSAIR,StarFox"putquick "PRIVMSG $nickname :Type !add &lt;game&gt; &lt;code&gt; "putquick "PRIVMSG $nickname :To find a friendcode type"putquick "PRIVMSG $nickname :!find &lt;nick&gt;"putquick "PRIVMSG $nickname :To Delete Your code type"putquick "PRIVMSG $nickname :!del &lt;game&gt;"putquick "PRIVMSG $nickname :Scripted by MÔnie"}set gamefile "scripts/game.txt"if {![file exists $gamefile]} {   catch {close [open $gamefile w]}}bind pub - !add pub:addproc pub:add {nick uhost hand chan arg} {set game [lindex [split $arg] 0]set code [lindex [split $arg] 1] if {$game &amp;&amp; $code != ""} {  set fd [open $::gamefile r+]      while {![eof $fd]} {         lappend list [gets $fd]               }      lappend list "[$nick] &lt;$game&gt; &lt;$code&gt;"    puts -nonewline $fd [join $list \n]    close $fd    } else {    putserv "PRIVMSG $chan :Usage: !add &lt;game&gt; &lt;code&gt;" }}putlog "Monies custom Friendcodes script loaded"</code></pre></div>thats what i have so far but how do i make it find someones name and displays there code, also how do i do !del if someone wants to delete there code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Wed Aug 09, 2006 6:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-09T18:14:04-04:00</updated>

		<published>2006-08-09T18:14:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65336#p65336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65336#p65336"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65336#p65336"><![CDATA[
Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Wed Aug 09, 2006 6:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-08-13T17:46:21-04:00</updated>

		<published>2006-08-09T17:36:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65333#p65333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65333#p65333"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65333#p65333"><![CDATA[
That sould do it I hope:<div class="codebox"><p>Code: </p><pre><code>set gamefile "scripts/game.txt"if {![file exists $gamefile]} {   catch {close [open $gamefile w]}}bind pub - !add pub:addproc pub:add {nick uhost hand chan arg} {set game [lindex [split $arg] 0]set code [lindex [split $arg] 1] if {$game != "" &amp;&amp; $code != ""} {  set fd [open $::gamefile r+]    while {![eof $fd]} {     lappend list [gets $fd]    }    if {[lindex $list end] == ""} {      set list [lreplace $list end end]    }     lappend list "\[$nick\] &lt;$game&gt; &lt;$code&gt;"     seek $fd 0     puts -nonewline $fd [join $list \n]     close $fd } else {   putserv "PRIVMSG $nick :Usage: !add &lt;game&gt; &lt;code&gt;" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Wed Aug 09, 2006 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-09T17:27:20-04:00</updated>

		<published>2006-08-09T17:27:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65331#p65331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65331#p65331"/>
		<title type="html"><![CDATA[how do i make files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65331#p65331"><![CDATA[
im trying to make a script when someone does<br>!add &lt;game&gt; &lt;code&gt;<br>it writes<br>the persons name and code and the game they added <br>like<br>[$nick]<br>&lt;game&gt;<br>&lt;code&gt;<br>like that<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Wed Aug 09, 2006 5:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
