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

	<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-06-11T13:55:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-11T13:55:46-04:00</updated>

		<published>2003-06-11T13:55:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21683#p21683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21683#p21683"/>
		<title type="html"><![CDATA[rcon script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21683#p21683"><![CDATA[
tcl-commands.doc is your friend in these situations. Look in the "BINDS" section, you will need a MSG bind to create the addme command. It tells you the parameters you need to have in your proc (like proc yourcmd {nick uhost hand text} { ... } ). Then inside the proc, you can use the validuser command to see if they already exist, the adduser command to create them, and setuser to set their password and wonid thingy.<br><br>The whole line of text after 'addme' will be in the $text variable. If someone goes /msg bot addme stdragon sheepsheep 12345, then the args will be like<br><br>nick = me<br>uhost = <a href="mailto:blah@blahblah.com">blah@blahblah.com</a><br>hand = *<br>text = "stdragon sheepsheep 12345"<br><br>If you don't know tcl, you can check out <a href="http://www.tcl.tk/man/tcl8.3/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.3/TclCmd/contents.htm</a> to see what all you can do with it. Basically you need "split" to turn $text into a list, and then "lindex" to retrieve each element.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 11, 2003 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rav^4u]]></name></author>
		<updated>2003-06-11T08:39:17-04:00</updated>

		<published>2003-06-11T08:39:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21659#p21659</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21659#p21659"/>
		<title type="html"><![CDATA[rcon script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21659#p21659"><![CDATA[
Thanks mate..<br><br>TCL scripts not my best area, the server side scripts not  a problems at all but not sure on TCL.<br><br>how would i go about doing that.. if you could set me off pls<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3286">Rav^4u</a> — Wed Jun 11, 2003 8:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T04:54:28-04:00</updated>

		<published>2003-06-11T04:54:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21637#p21637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21637#p21637"/>
		<title type="html"><![CDATA[rcon script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21637#p21637"><![CDATA[
well, you could just add the users to the bot and store the wonid in the users xtra field. then make a script that checks the given password against the one set in the bot (passwdok)<br>Or you can save the info in a file, and make a script that checks that instead..<br>or... use the mysql to do the storing/cheking (I would recommend this) <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=852">Papillon</a> — Wed Jun 11, 2003 4:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rav^4u]]></name></author>
		<updated>2003-06-11T04:42:40-04:00</updated>

		<published>2003-06-11T04:42:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21634#p21634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21634#p21634"/>
		<title type="html"><![CDATA[rcon script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21634#p21634"><![CDATA[
lol thanks mate <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Right my master plan is working <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>CS Pickup Scipt<br><br>So far...<br><br>IRC is working fine, player join the channel add them selves to a game, when the required number of players is reached the bot changes the server to the correct map and sets the correct password, all players are notified the details <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> so far so good.<br><br>Now once they are on the server all is controlled. When all players are on, a 5 minutes warmup starts. Then they settings are loaded and and players are frozen for 2 mins to allow for tactics talks. After 2 mins the game begins.. after 12 rounds the players are swap teams (auto by script) and are given a firther 2 mins for tactics discussions. Then the second round starts up.. at the end the score is displayed and game over <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>But (fingers hurting now). I need a way of the user logging in before they are added to a game so that their WONID can be relayed to the server and the teams/playernames are kept as they should be.<br><br>I wanted to do this without database/MYSQL (although that is available). ie.. they do<br><br>/msg bot addme CSplayername password wonid<br><br>ie...<br><br>/msg Bot addme Rav monkeys 123456<br><br>any help on this would be greatly appreciateed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> (a script allowing them to do this would be even better lol )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3286">Rav^4u</a> — Wed Jun 11, 2003 4:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-10T13:16:28-04:00</updated>

		<published>2003-06-10T13:16:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21607#p21607</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21607#p21607"/>
		<title type="html"><![CDATA[rcon script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21607#p21607"><![CDATA[
Don't be afraid to try it :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Jun 10, 2003 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rav^4u]]></name></author>
		<updated>2003-06-10T12:44:12-04:00</updated>

		<published>2003-06-10T12:44:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21603#p21603</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21603#p21603"/>
		<title type="html"><![CDATA[rcon script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21603#p21603"><![CDATA[
OK using this comand (with the global settings of course)<br><br>  set rcon [open "|$rcon_path/rcon $rcon_password1 $rcon_address1 $rcon_port1 \"changelevel $pwf_maptopic\"" r]<br><br>now this works perfectly but leave rcon open when i check process "ps -x"<br><br>they stay open untill eggdop is killed, how can i close them?<br><br>close $rcon<br>return 0<br><br>Would that work? or is there another/better way?<br><br>Thanks in advance for any help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3286">Rav^4u</a> — Tue Jun 10, 2003 12:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
