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

	<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-07-05T02:44:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-05T02:44:07-04:00</updated>

		<published>2003-07-05T02:44:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23050#p23050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23050#p23050"/>
		<title type="html"><![CDATA[convert irc script -&gt; tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23050#p23050"><![CDATA[
lol, yeah I would like to see that too <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> cuz u make it sound so easy to do.<br><br>m0de read doc/tcl-commands.doc to know how to bind. In tcl <strong class="text-strong">binds</strong> are used instead of the IRC <strong class="text-strong">on :events:</strong>.<br>like for example: <strong class="text-strong">bind pub - "@wonid *" pub:elite-pimps</strong><br>and then u create the <strong class="text-strong">pub:elite-pimps</strong> proc which is the hard part... also u must bind a sock, which u can do with the help of tcl-commands.doc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jul 05, 2003 2:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-05T00:09:39-04:00</updated>

		<published>2003-07-05T00:09:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23049#p23049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23049#p23049"/>
		<title type="html"><![CDATA[convert irc script -&gt; tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23049#p23049"><![CDATA[
Let's see how you've converted it so far.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Jul 05, 2003 12:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m0de]]></name></author>
		<updated>2003-07-04T22:47:24-04:00</updated>

		<published>2003-07-04T22:47:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23047#p23047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23047#p23047"/>
		<title type="html"><![CDATA[convert irc script -&gt; tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23047#p23047"><![CDATA[
i've tried converting an irc script to tcl but i just end up screwing things up more. will someone please help me out with the converting?<br><br>Heres the script:<br><div class="codebox"><p>Code: </p><pre><code>;; Modified to use a website which gave explicit permission to use it;; [WonID] ------- Text eventon *:text:@wonid *:#script: {  if ($2 !isnum 0-100000000) return  inc -u30 %wonflood. [ $+ [ $nick ] ]  if ((%wonflood. [ $+ [ $nick ] ] &gt; 3) || ($var(%wonflood.*,0) &gt; 4)) return  sockclose wonid  sockopen wonid wonid.elite-pimps.com 80  ; sockmark wonid $2 n $+ $nick $ticks  sockmark wonid $2 c $+ $chan $ticks};; [WonID] ------- Sockopen eventon *:sockopen:wonid:{  sockwrite -n $sockname GET /?action=search&amp;type=single&amp;key=wonid&amp;query= $+ $gettok($sock(wonid).mark,1,32) $+ &amp;game=&amp;league=&amp;div=&amp;output=xml HTTP/1.1  sockwrite -n $sockname Host: wonid.elite-pimps.com  sockwrite -n $sockname Connection: Close  sockwrite -n $sockname User-Agent: byte-at-ircscripting.net v1.20  sockwrite -n $sockname $crlf  set %wonid.ok no};; [WonID] ------- Sockread eventon *:sockread:wonid:{  if ($sockerr &gt; 0) return  while ($sock(wonid)) {    sockread %temp    set -l %data $gettok($gettok(%temp,2,$asc(&gt;)),1,$asc(&lt;))    if ($sockbr == 0) return    if (%temp == &lt;disabled&gt;) {      if ($left($gettok($sock(wonid).mark,2,32),1) == n) notice $right($gettok($sock(wonid).mark,2,32),-1) error. source db disabled contact script author.      else msg $right($gettok($sock(wonid).mark,2,32),-1) error. source db disabled contact script author.    }    else if (%temp == &lt;/results&gt;) &amp;&amp; (%wonid.ok == no) {      if ($left($gettok($sock(wonid).mark,2,32),1) == n) notice $right($gettok($sock(wonid).mark,2,32),-1) Sorry, no results found.      else msg $right($gettok($sock(wonid).mark,2,32),-1) Sorry, no results found.    }    else if (%temp == &lt;/results&gt;) {      sockclose wonid    }    else if (%temp == &lt;result&gt;) set %wonid.ok yes    else if (&lt;ban_status&gt;*&lt;/ban_status&gt; iswm %temp) set %wonid.ban_status %data    else if (&lt;player_id&gt;*&lt;/player_id&gt; iswm %temp) set %wonid.player_id %data    else if (&lt;player_alias&gt;*&lt;/player_alias&gt; iswm %temp) set %wonid.player_alias %data    else if (&lt;player_name&gt;*&lt;/player_name&gt; iswm %temp) set %wonid.player_name %data    else if (&lt;player_wonid&gt;*&lt;/player_wonid&gt; iswm %temp) set %wonid.player_wonid %data    else if (&lt;team_id&gt;*&lt;/team_id&gt; iswm %temp) set %wonid.team_id %data    else if (&lt;team_game&gt;*&lt;/team_game&gt; iswm %temp) set %wonid.team_game %data    else if (&lt;team_league&gt;*&lt;/team_league&gt; iswm %temp) set %wonid.team_league %data    else if (&lt;team_division&gt;*&lt;/team_division&gt; iswm %temp) set %wonid.team_division %data    else if (&lt;team_location&gt;*&lt;/team_location&gt; iswm %temp) set %wonid.team_location %data    else if (&lt;team_name&gt;*&lt;/team_name&gt; iswm %temp) set %wonid.team_name %data    else if (&lt;team_tag&gt;*&lt;/team_tag&gt; iswm %temp) set %wonid.team_tag %data    else if (&lt;team_irc&gt;*&lt;/team_irc&gt; iswm %temp) set %wonid.team_irc %data    else if (&lt;team_website&gt;*&lt;/team_website&gt; iswm %temp) set %wonid.team_website %data    else if (%temp == &lt;/result&gt;) {      set %wonid.return ID: %wonid.player_wonid :: Team: %wonid.team_name :: Handle: %wonid.player_alias :: Name: %wonid.player_name :: League: %wonid.team_league $+ - $+ %wonid.team_division :: Response time: $calc(($ticks - $gettok($sock(wonid).mark,3,32)) / 1000) seconds [wonid.elite-pimps.com]      if ($left($gettok($sock(wonid).mark,2,32),1) == n) notice $right($gettok($sock(wonid).mark,2,32),-1) %wonid.return      else msg $right($gettok($sock(wonid).mark,2,32),-1) %wonid.return      unset %wonid.*    }  }}</code></pre></div><br>it searches wonid.elite-pimps.com for the id and then returns the data.. but after several attempts on making this for my eggdrop bot i failed ;[<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3308">m0de</a> — Fri Jul 04, 2003 10:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
