<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Combots Бот для БК &mdash; Плагин принятия турниров]]></title>
	<link rel="self" href="http://www.combats-bot.ru/extern.php?action=feed&amp;tid=4635&amp;type=atom"/>
	<updated>2015-07-16T15:39:58Z</updated>
	<generator>PunBB</generator>
	<id>http://www.combats-bot.ru/viewtopic.php?id=4635</id>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=66672#p66672"/>
			<content type="html"><![CDATA[<p>JustLui, уровень в плагине прописал? Каким лвлом пытаешься участвовать в турнире? и в каком городе?</p>]]></content>
			<author>
				<name><![CDATA[mozgin]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=5401</uri>
			</author>
			<updated>2015-07-16T15:39:58Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=66672#p66672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=66670#p66670"/>
			<content type="html"><![CDATA[<p>После того как поменяли турниры , ввели для только 10ы лвло и для классовых и что-то не получается у меня поставить бота на турниры , плагин стоит такой как чуть выше предложили , месяца 2 назад работал , теперь не получается</p><br /><p>Ставлю 101 хп реген , все как раньше , но не принимает заявки</p>]]></content>
			<author>
				<name><![CDATA[JustLui]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7583</uri>
			</author>
			<updated>2015-07-15T18:11:31Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=66670#p66670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=66583#p66583"/>
			<content type="html"><![CDATA[<p>Евжений, свой уровень прописал в плагине? Или пользуешься плагином из шапки?</p>]]></content>
			<author>
				<name><![CDATA[mozgin]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=5401</uri>
			</author>
			<updated>2015-07-07T03:52:17Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=66583#p66583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=66571#p66571"/>
			<content type="html"><![CDATA[<p>Есть такая проблема, добавить бы фильтр чтоб работал на нужном уровне. Т.к. плагин пытается принять самый верхний турнир и не срабатывает, пока висит теущий не завершенный (даже других лвл). В итоге из-за отсутвия фильтра на свой уровень, тупо стоит и ничего не принимает.<br />А ручное выставление нужного уровня, при обновлении флейма скидывает каждый раз. Т.е. если фильтр включен вручную он турнир примет всеже, но это будет в ручном режими когда проще самому нажать и потом будет стоять втыкать.</p>]]></content>
			<author>
				<name><![CDATA[Евжений]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=3742</uri>
			</author>
			<updated>2015-07-05T11:11:51Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=66571#p66571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=66550#p66550"/>
			<content type="html"><![CDATA[<div class="codebox"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> lvl <span style="color: #339933;">=</span> <span style="color: #CC0000;">10</span><span style="color: #339933;">;</span>&nbsp; <span style="color: #006600; font-style: italic;">//уровень принимаемых заявок</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">var</span> arrLinks<span style="color: #339933;">,</span> functionContent<span style="color: #339933;">;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> Turnir<span style="color: #009900;">&#40;</span>enabled<span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>enabled<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> getRandomInt<span style="color: #009900;">&#40;</span>min<span style="color: #339933;">,</span> max<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span>max <span style="color: #339933;">-</span> min <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> min<span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; FloodTimer <span style="color: #339933;">=</span> setInterval<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TurnirBoi()&quot;</span><span style="color: #339933;">,</span> getRandomInt<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">600000</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">900000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//раз в 10-15 минут проверяем возможность принятия участия</span><br />&nbsp; &nbsp; &nbsp; &nbsp; TurnirBoi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; clearInterval<span style="color: #009900;">&#40;</span>FloodTimer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /><span style="color: #009900;">&#125;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> changeTournamentLinks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; arrLinks <span style="color: #339933;">=</span> get_mainframe<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">document</span>.<span style="color: #660066;">links</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; functionContent <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>a <span style="color: #000066; font-weight: bold;">in</span> arrLinks<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;length&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;принять участие&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">continue</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;functionContent <span style="color: #339933;">=</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;functionContent <span style="color: #339933;">=</span> functionContent.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\sdocument\./</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;get_mainframe().document.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #003366; font-weight: bold;">Function</span><span style="color: #009900;">&#40;</span>functionContent<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">return</span> result<span style="color: #339933;">;</span><br /><span style="color: #009900;">&#125;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> TurnirBoi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>external.<span style="color: #660066;">room_name</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;Расписание турниров&quot;</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>changeTournamentLinks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>a <span style="color: #000066; font-weight: bold;">in</span> arrLinks<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;length&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;принять участие&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>['</span><span style="color: #339933;">+</span>lvl<span style="color: #339933;">+</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>]<span style="color: #000099; font-weight: bold;">\\</span>?'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">//а нам ли заявка?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>&nbsp; <span style="color: #000066; font-weight: bold;">continue</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; functionContent <span style="color: #339933;">=</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; functionContent <span style="color: #339933;">=</span> functionContent.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/confirm\([^)]+\)/</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #003366; font-weight: bold;">Function</span><span style="color: #009900;">&#40;</span>functionContent<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /><span style="color: #009900;">&#125;</span></pre></div><p>Переделал немного, теперь должно работать</p>]]></content>
			<author>
				<name><![CDATA[mozgin]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=5401</uri>
			</author>
			<updated>2015-07-02T17:30:15Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=66550#p66550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=66008#p66008"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>mozgin пишет:</cite><blockquote><p>JustLui, ты читал предыдущее сообщение перед тем как написать?</p><p>Переделал плагин под себя, потестил на паре турниров, вроде работает...<br />- добавил рандом между попытками принять участие (страдаю паранойей, не люблю статические цифры между действиями)<br />- добавил настройку - переменную (первая строка) для указания уровня принимаемых заявок<br /></p><div class="codebox"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> lvl <span style="color: #339933;">=</span> <span style="color: #CC0000;">10</span><span style="color: #339933;">;</span>&nbsp; <span style="color: #006600; font-style: italic;">//уровень принимаемых заявок</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">var</span> arrLinks <span style="color: #339933;">=</span> get_mainframe<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">document</span>.<span style="color: #660066;">links</span><span style="color: #339933;">;</span><br /><span style="color: #003366; font-weight: bold;">var</span> functionContent <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> Turnir<span style="color: #009900;">&#40;</span>enabled<span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>enabled<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> getRandomInt<span style="color: #009900;">&#40;</span>min<span style="color: #339933;">,</span> max<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span>max <span style="color: #339933;">-</span> min <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> min<span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; FloodTimer <span style="color: #339933;">=</span> setInterval<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TurnirBoi()&quot;</span><span style="color: #339933;">,</span> getRandomInt<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">600000</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">900000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//раз в 10-15 минут проверяем возможность принятия участия</span><br />&nbsp; &nbsp; &nbsp; &nbsp; TurnirBoi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; clearInterval<span style="color: #009900;">&#40;</span>FloodTimer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /><span style="color: #009900;">&#125;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> changeTournamentLinks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>a <span style="color: #000066; font-weight: bold;">in</span> arrLinks<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;length&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;принять участие&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">continue</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;functionContent <span style="color: #339933;">=</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;functionContent <span style="color: #339933;">=</span> functionContent.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\sdocument\./</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;get_mainframe().document.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #003366; font-weight: bold;">Function</span><span style="color: #009900;">&#40;</span>functionContent<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">return</span> result<span style="color: #339933;">;</span><br /><span style="color: #009900;">&#125;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> TurnirBoi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>external.<span style="color: #660066;">room_name</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;Расписание турниров&quot;</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>changeTournamentLinks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>a <span style="color: #000066; font-weight: bold;">in</span> arrLinks<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;length&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;принять участие&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>['</span><span style="color: #339933;">+</span>lvl<span style="color: #339933;">+</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>]<span style="color: #000099; font-weight: bold;">\\</span>?'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">//а нам ли заявка?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>&nbsp; <span style="color: #000066; font-weight: bold;">continue</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; functionContent <span style="color: #339933;">=</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; functionContent <span style="color: #339933;">=</span> functionContent.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/confirm\([^)]+\)/</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #003366; font-weight: bold;">Function</span><span style="color: #009900;">&#40;</span>functionContent<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /><span style="color: #009900;">&#125;</span></pre></div><p>P/S. назвать плагин: Turnir.js</p></blockquote></div><p>У меня не работает плагин, просто стоит и ничего не делает. Поменял лвл в первой строке на 11.</p>]]></content>
			<author>
				<name><![CDATA[Pokemon15]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=535</uri>
			</author>
			<updated>2015-05-07T18:37:16Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=66008#p66008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=65847#p65847"/>
			<content type="html"><![CDATA[<p>JustLui, ты читал предыдущее сообщение перед тем как написать?</p><p>Переделал плагин под себя, потестил на паре турниров, вроде работает...<br />- добавил рандом между попытками принять участие (страдаю паранойей, не люблю статические цифры между действиями)<br />- добавил настройку - переменную (первая строка) для указания уровня принимаемых заявок<br /></p><div class="codebox"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> lvl <span style="color: #339933;">=</span> <span style="color: #CC0000;">10</span><span style="color: #339933;">;</span>&nbsp; <span style="color: #006600; font-style: italic;">//уровень принимаемых заявок</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">var</span> arrLinks <span style="color: #339933;">=</span> get_mainframe<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">document</span>.<span style="color: #660066;">links</span><span style="color: #339933;">;</span><br /><span style="color: #003366; font-weight: bold;">var</span> functionContent <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> Turnir<span style="color: #009900;">&#40;</span>enabled<span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>enabled<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> getRandomInt<span style="color: #009900;">&#40;</span>min<span style="color: #339933;">,</span> max<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span>max <span style="color: #339933;">-</span> min <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> min<span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; FloodTimer <span style="color: #339933;">=</span> setInterval<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;TurnirBoi()&quot;</span><span style="color: #339933;">,</span> getRandomInt<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">600000</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">900000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//раз в 10-15 минут проверяем возможность принятия участия</span><br />&nbsp; &nbsp; &nbsp; &nbsp; TurnirBoi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; clearInterval<span style="color: #009900;">&#40;</span>FloodTimer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /><span style="color: #009900;">&#125;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> changeTournamentLinks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>a <span style="color: #000066; font-weight: bold;">in</span> arrLinks<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;length&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;принять участие&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">continue</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;functionContent <span style="color: #339933;">=</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;functionContent <span style="color: #339933;">=</span> functionContent.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\sdocument\./</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;get_mainframe().document.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #003366; font-weight: bold;">Function</span><span style="color: #009900;">&#40;</span>functionContent<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">return</span> result<span style="color: #339933;">;</span><br /><span style="color: #009900;">&#125;</span><br />&nbsp;<br /><span style="color: #003366; font-weight: bold;">function</span> TurnirBoi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br /><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>external.<span style="color: #660066;">room_name</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;Расписание турниров&quot;</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>changeTournamentLinks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>a <span style="color: #000066; font-weight: bold;">in</span> arrLinks<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;length&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">&amp;&amp;</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;принять участие&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>['</span><span style="color: #339933;">+</span>lvl<span style="color: #339933;">+</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>]<span style="color: #000099; font-weight: bold;">\\</span>?'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">//а нам ли заявка?</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>&nbsp; <span style="color: #000066; font-weight: bold;">continue</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; functionContent <span style="color: #339933;">=</span> arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span>.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/function[^)]+\)\s\{\s(.*)\s\}/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; functionContent <span style="color: #339933;">=</span> functionContent.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/confirm\([^)]+\)/</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onclick</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #003366; font-weight: bold;">Function</span><span style="color: #009900;">&#40;</span>functionContent<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrLinks<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /><span style="color: #009900;">&#125;</span></pre></div><p>P/S. назвать плагин: Turnir.js</p>]]></content>
			<author>
				<name><![CDATA[mozgin]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=5401</uri>
			</author>
			<updated>2015-04-15T17:27:45Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=65847#p65847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=65840#p65840"/>
			<content type="html"><![CDATA[<p>Заработал , но есть проблема , он принимает самый верхний турнир , точнее пытается принять , но не фильтрует по лвлу , т.е. там может стоять турнир 11 лвл и он будет в него ломаться , пока тот не пропадет с верхней точки</p>]]></content>
			<author>
				<name><![CDATA[JustLui]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7583</uri>
			</author>
			<updated>2015-04-15T12:49:54Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=65840#p65840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=65831#p65831"/>
			<content type="html"><![CDATA[<p>поменяли на днях страничку турниров, теперь по-умолчанию заявки всех лвлов отображаются. а плагин пытается принять всегда вехнюю заявку</p>]]></content>
			<author>
				<name><![CDATA[mozgin]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=5401</uri>
			</author>
			<updated>2015-04-14T16:55:39Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=65831#p65831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=65823#p65823"/>
			<content type="html"><![CDATA[<p>была проблема у Бланко, пробовал обычным блокнотом сохранить?</p>]]></content>
			<author>
				<name><![CDATA[qwerty]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=194</uri>
			</author>
			<updated>2015-04-13T14:09:15Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=65823#p65823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=65822#p65822"/>
			<content type="html"><![CDATA[<p>У меня не работает плагин <br />101 хп выставлял <br />метро выключено</p>]]></content>
			<author>
				<name><![CDATA[JustLui]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7583</uri>
			</author>
			<updated>2015-04-13T12:22:46Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=65822#p65822</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=64855#p64855"/>
			<content type="html"><![CDATA[<p>один из самых нужных плагинов</p>]]></content>
			<author>
				<name><![CDATA[oneboy]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7882</uri>
			</author>
			<updated>2015-01-14T20:54:22Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=64855#p64855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=62161#p62161"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Rapidshe пишет:</cite><blockquote><div class="quotebox"><cite>Вася Пупкин пишет:</cite><blockquote><p>У меня проблемка, после окончания турнирного боя, как бой заканчивается верхний фрейм становится белым а статус &quot;идёт бой&quot;.</p><p>И почему то стоит с статусом востанавливаю хп пока не примет заяву? так должно быть.</p><p>П.с. все плагины выклучены...</p></blockquote></div><p>+1 <img src="http://www.combats-bot.ru/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><div class="quotebox"><cite>anahronik пишет:</cite><blockquote><p>101%ХП на первой закладке в настройках не стоит случаем? <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>стоит.... а разве не надо?</p></blockquote></div><p>как заканчивается задержка&nbsp; на&nbsp; новый данж&nbsp; бот&nbsp; не вступает в неё.</p>]]></content>
			<author>
				<name><![CDATA[siken_sss]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7637</uri>
			</author>
			<updated>2013-11-14T19:24:22Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=62161#p62161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=62153#p62153"/>
			<content type="html"><![CDATA[<p>я обычно врубаю режим пещеры</p>]]></content>
			<author>
				<name><![CDATA[qwerty]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=194</uri>
			</author>
			<updated>2013-11-13T20:53:41Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=62153#p62153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Плагин принятия турниров]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=62146#p62146"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Вася Пупкин пишет:</cite><blockquote><p>У меня проблемка, после окончания турнирного боя, как бой заканчивается верхний фрейм становится белым а статус &quot;идёт бой&quot;.</p><p>И почему то стоит с статусом востанавливаю хп пока не примет заяву? так должно быть.</p><p>П.с. все плагины выклучены...</p></blockquote></div><p>+1 <img src="http://www.combats-bot.ru/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><div class="quotebox"><cite>anahronik пишет:</cite><blockquote><p>101%ХП на первой закладке в настройках не стоит случаем? <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>стоит.... а разве не надо?</p>]]></content>
			<author>
				<name><![CDATA[Rapidshe]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=2184</uri>
			</author>
			<updated>2013-11-13T14:43:37Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=62146#p62146</id>
		</entry>
</feed>
