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

	<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-06-26T16:02:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-06-26T16:02:58-04:00</updated>

		<published>2006-06-26T16:02:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64329#p64329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64329#p64329"/>
		<title type="html"><![CDATA[So what's up with all the cup modules?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64329#p64329"><![CDATA[
A module is written in C and is loaded by the eggdrop itself.<br><br>Scripts are loaded by TCL.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Jun 26, 2006 4:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sainted]]></name></author>
		<updated>2006-06-26T08:28:57-04:00</updated>

		<published>2006-06-26T08:28:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64326#p64326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64326#p64326"/>
		<title type="html"><![CDATA[So what's up with all the cup modules?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64326#p64326"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><blockquote class="uncited"><div>What is a cop module supposed to be? And what do modules have to do with scripts?</div></blockquote>Oops sorry, typo <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> I ment a cup module... But a module is about the same as a script right, or are there major differences?</div></blockquote>As MeTroiD pointed out, modules have nothing to do with scripts and in future please post in the correct forum.</div></blockquote>Well where do you draw the line between a module and a script then.. Seeing every module is built out of scripts too :&lt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7882">Sainted</a> — Mon Jun 26, 2006 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-06-20T18:46:23-04:00</updated>

		<published>2006-06-20T18:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64230#p64230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64230#p64230"/>
		<title type="html"><![CDATA[So what's up with all the cup modules?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64230#p64230"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>What is a cop module supposed to be? And what do modules have to do with scripts?</div></blockquote>Oops sorry, typo <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> I ment a cup module... But a module is about the same as a script right, or are there major differences?</div></blockquote>As MeTroiD pointed out, modules have nothing to do with scripts and in future please post in the correct forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jun 20, 2006 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-06-20T04:52:50-04:00</updated>

		<published>2006-06-20T04:52:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64222#p64222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64222#p64222"/>
		<title type="html"><![CDATA[So what's up with all the cup modules?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64222#p64222"><![CDATA[
Well.. I have started to make a cupbot script, this is what i have so far..<br><div class="codebox"><p>Code: </p><pre><code>namespace eval cupbot {    variable author "r0t3n"    variable version "1.03"        variable trigger "$"    variable adminflag "C|C"        bind pub $adminflag "${trigger}start" [namespace current]::start    bind pub $adminflag "${trigger}stop" [namespace current]::stop    bind pub $adminflag "${trigger}setmap" [namespace current]::setmap    bind pub $adminflag "${trigger}setprize" [namespace current]::setprize    bind pub $adminflag "${trigger}winner" [namespace current]::setwinner    bind pub -|- "${trigger}map" [namespace current]::map    bind pub -|- "${trigger}prize" [namespace current]::prize    }setudef flag cupsetudef str cupadminsetudef str cuptypesetudef int cupteamssetudef str cupprizesetudef str cupmapsetudef str cupwinnerproc cupbot::start {nickname hostname handle channel text} {    if {[channel get $channel cup]} {        putserv "NOTICE $nickname :There is already a cup in process with [channel get $channel cupadmin]."    } else {        set type [lindex [split $text] 0]        set teams [lindex [split $text] 1]        set map [lindex [split $text] 2]        if {$type == "" || $teams == ""} {            putserv "NOTICE $nickname :Usage: $::lastbind &lt;type&gt; &lt;teams&gt;."        } elseif {![string is integer $teams]} {            putserv "NOTICE $nickname :Teams must only consist on numbers."        } elseif {$type != "1on1" &amp;&amp; $type != "2on2" &amp;&amp; $type != "3on3" &amp;&amp; $type != "4on4" &amp;&amp; $type != "5on5"} {            putserv "NOTICE $nickname :Invalid cup type '$type'. Valid cup types are: 1on1|2on2|3on3|4on4|5on5."        } elseif {$teams != "8" &amp;&amp; $teams != "16" &amp;&amp; $teams != "64"} {            putserv "NOTICE $nickname :Invalid teams '$teams'. Valid teams are: 8|16|64."        } else {            channel set $channel +cup            channel set $channel cupadmin $nickname            channel set $channel cuptype $type            channel set $channel cupteams $teams            channel set $channel cupprize ""            if {[botisop $channel] &amp;&amp; ![string match *m* [getchanmode $channel]]} {                putserv "MODE $channel +m"                set modem "1"            }            putserv "PRIVMSG $channel :$nickname started a $type cup with $teams teams."            if {$type == "1on1"} {                putserv "PRIVMSG $channel :Use ${cupbot::trigger}add &lt;teamname&gt; to add yourself to the $type cup."            } elseif {$type == "2on2"} {                putserv "PRIVMSG $channel :Use ${cupbot::trigger}add &lt;teamname&gt; &lt;mate&gt; to add your team to the $type cup."            } elseif {$type == "3on3"} {                putserv "PRIVMSG $channel :Use ${cupbot::trigger}add &lt;teamname&gt; &lt;mate&gt; &lt;mate&gt; to add your team to the $type cup."            } elseif {$type == "4on4"} {                putserv "PRIVMSG $channel :Use ${cupbot::trigger}add &lt;teamname&gt; &lt;mate&gt; &lt;mate&gt; &lt;mate&gt; to add your team to the $type cup."            } elseif {$type == "5on5"} {                putserv "PRIVMSG $channel :Use ${cupbot::trigger}add &lt;teamname&gt; &lt;mate&gt; &lt;mate&gt; &lt;mate&gt; &lt;mate&gt; to add your team to the $type cup."            }            if {$map != ""} {                channel set $channel cupmap $map                putserv "PRIVMSG $channel :The map is: $map."            } else {                putserv "PRIVMSG $channel :No map has been set."            }            if {$modem == "1"} {                if {[botisop $channel] &amp;&amp; [string match *m* [getchanmode $channel]]} {                    putserv "MODE $channel -m"                }            }        }    }}proc cupbot::stop {nickname hostname handle channel text} {    if {[channel get $channel cup]} {        channel set $channel -cup        putserv "PRIVMSG $channel :$nickname stopped the [channel get $channel cuptype] cup."    } else {        putserv "NOTICE $nickname :There is currently no cup in progress on $channel."    }}proc cupbot::setmap {nickname hostname handle channel text} {    if {![channel get $channel cup]} {        putserv "NOTICE $nickname :There is currently no cup in progress on $channel."    } elseif {$text == ""} {        putserv "NOTICE $nickname :Usage: $::lastbind &lt;map&gt;."    } else {        channel set $channel cupmap $text        putserv "PRIVMSG $channel :$nickname changed the map to: $text."    }}proc cupbot::setprize {nickname hostname handle channel text} {    if {![channel get $channel cup]} {        putserv "NOTICE $nickname :There is currently no cup in progress on $channel."    } elseif {$text == ""} {        putserv "NOTICE $nickname :Usage: $::lastbind &lt;prize&gt;."    } else {        channel set $channel cupprize $text        putserv "PRIVMSG $channel :$nickname changed the prize to: $text."    }}proc cupbot::setwinner {nickname hostname handle channel text} {    if {![channel get $channel cup]} {        putserv "NOTICE $nickname :There is currently no cup in progress on $channel."    } elseif {$text == ""} {        putserv "NOTICE $nickname :Usage: $::lastbind &lt;winner&gt;."    } else {        channel set $channel cupwinner $text        putserv "PRIVMSG $channel :The cup winner is: $text."    }}proc cupbot::map {nickname hostname handle channel text} {    if {![channel get $channel cup]} {        putserv "PRIVMSG $channel :There is currently no cup running."    } else {        if {[channel get $channel cupmap] == ""} {            putserv "PRIVMSG $channel :There is currently no map set."        } else {            putserv "PRIVMSG $channel :The current map is: [channel get $channel cupmap]."        }    }}proc cupbot::prize {nickname hostname handle channel text} {    if {![channel get $channel cup]} {        putserv "PRIVMSG $channel :There is currently no cup running."    } else {        if {[channel get $channel cupprize] == ""} {            putserv "PRIVMSG $channel :There is currently no prize set."        } else {            putserv "PRIVMSG $channel :The prize is: [channel get $channel cupprize]."        }    }}putlog "Cupbot.tcl v$cupbot::version by $cupbot::author loaded."</code></pre></div>Im currently still working on it, once it is fully finished when i have more spare time, i will release it here. keep posted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 20, 2006 4:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sainted]]></name></author>
		<updated>2006-06-20T04:16:58-04:00</updated>

		<published>2006-06-20T04:16:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64219#p64219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64219#p64219"/>
		<title type="html"><![CDATA[So what's up with all the cup modules?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64219#p64219"><![CDATA[
<blockquote class="uncited"><div>What is a cop module supposed to be? And what do modules have to do with scripts?</div></blockquote>Oops sorry, typo <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> I ment a cup module... But a module is about the same as a script right, or are there major differences?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7882">Sainted</a> — Tue Jun 20, 2006 4:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-06-19T02:03:11-04:00</updated>

		<published>2006-06-19T02:03:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64171#p64171</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64171#p64171"/>
		<title type="html"><![CDATA[So what's up with all the cup modules?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64171#p64171"><![CDATA[
What is a cop module supposed to be? And what do modules have to do with scripts?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Jun 19, 2006 2:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sainted]]></name></author>
		<updated>2006-06-20T04:18:26-04:00</updated>

		<published>2006-06-18T06:46:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64137#p64137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64137#p64137"/>
		<title type="html"><![CDATA[So what's up with all the cup modules?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64137#p64137"><![CDATA[
In the past people have been talking about cup scripts / modules for eggdrops. We used to have many cups in my channel (#Qlasics at quakenet), but we used a mirc script for this. <br>I am wondering if anyone is still working on such a script / module for eggdrop..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7882">Sainted</a> — Sun Jun 18, 2006 6:46 am</p><hr />
]]></content>
	</entry>
	</feed>
