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

	<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-10-16T18:45:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-10-16T18:45:19-04:00</updated>

		<published>2006-10-16T18:45:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67189#p67189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67189#p67189"/>
		<title type="html"><![CDATA[Need some help with a &quot;buggy&quot; script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67189#p67189"><![CDATA[
What problem are you trying to solve? Your msg does not make clear what the problem is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Oct 16, 2006 6:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Shaiko]]></name></author>
		<updated>2006-10-16T10:52:13-04:00</updated>

		<published>2006-10-16T10:52:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67182#p67182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67182#p67182"/>
		<title type="html"><![CDATA[Need some help with a &quot;buggy&quot; script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67182#p67182"><![CDATA[
Well, im trying again. i have made a buggy script.<br>When a person borrows the server is seems like the bot does "chattr $nick +R|"<br>i aint any elete scripter. so i was woundering if it is anyone here who is a good scripter that can "read" the script and see if it is possible to<br>make it better.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - ".borrow" ws:borrowproc ws:borrow {nick uhost handle chan text} { if {[info exists ::wsadmin] &amp;&amp; [info exists ::wschan] &amp;&amp; [string equal -nocase $chan $::wsadmin] &amp;&amp; [string equal $text ""]} {  if {[isop $::botnick $::wschan]} {   if {[matchattr $handle +R]} {    puthelp "privmsg $::wschan :Error: You have alredy borrowed the server whitin the 2 hours!"    return 0    } else {    if {$server == "0"} {     set ipmask [lindex [split [maskhost $nick![getchanhost $nick $chan]] "@"] 1]     set userm [lindex [split [getchanhost $nick $chan] "@"] 0]     set userhost *!*$userm@$ipmask     adduser $nick $userhost     chattr $nick +R|     set ::server 1     set ::range 100000     set ::pwrange 1000     set ::rcon [expr {int(rand()*$::range)}]     set ::pass [expr {int(rand()*$::pwrange)}]     exec ./hlds_srv1 -game cstrike +ip 195.*.*.* -port 27010 +map de_dust2 +maxplayers 12 -pingboost 3 -sv_password $::pass -rcon_password $::rcon &amp;     puthelp "privmsg $::wschan :\002Status\002: Just now $nick borrows BETA_SERVER!"     puthelp "cnotice $nick $::wschan :Status: Rcon: $::rcon  Password $::pass Port: 27010 IP: 195.*.*.*"     utimer $::waittime "chattr $nick -R|"     utimer $::borrowtime "set ::srv1s 0"     utimer $::borrowtime [list putquick "privmsg $::wschan :Status: BETA_SERVER Is now avalible for borrowing!"]     utimer $::btime "exec killall -q /bin/sh ./hlds_srv1 ./hlds_27010"     return 0    } elseif {$::Server == "1"} {     putquick "privmsg $chan :Server 'BETA_SERVER' Is alredy taken!"    }   }  } else {   puthelp "privmsg $chan :ERROR: need op!"   return 0  } } else {  puthelp "privmsg $chan :ERROR: Contact an admin!"  return 0 }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8296">Shaiko</a> — Mon Oct 16, 2006 10:52 am</p><hr />
]]></content>
	</entry>
	</feed>
