<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Combots Бот для БК &mdash; Плагин принятия турниров]]></title>
		<link>http://www.combats-bot.ru/viewtopic.php?id=4635</link>
		<description><![CDATA[Недавние сообщения в теме "Плагин принятия турниров".]]></description>
		<lastBuildDate>Thu, 16 Jul 2015 15:39:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=66672#p66672</link>
			<description><![CDATA[<p>JustLui, уровень в плагине прописал? Каким лвлом пытаешься участвовать в турнире? и в каком городе?</p>]]></description>
			<author><![CDATA[dummy@example.com (mozgin)]]></author>
			<pubDate>Thu, 16 Jul 2015 15:39:58 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=66672#p66672</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=66670#p66670</link>
			<description><![CDATA[<p>После того как поменяли турниры , ввели для только 10ы лвло и для классовых и что-то не получается у меня поставить бота на турниры , плагин стоит такой как чуть выше предложили , месяца 2 назад работал , теперь не получается</p><br /><p>Ставлю 101 хп реген , все как раньше , но не принимает заявки</p>]]></description>
			<author><![CDATA[dummy@example.com (JustLui)]]></author>
			<pubDate>Wed, 15 Jul 2015 18:11:31 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=66670#p66670</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=66583#p66583</link>
			<description><![CDATA[<p>Евжений, свой уровень прописал в плагине? Или пользуешься плагином из шапки?</p>]]></description>
			<author><![CDATA[dummy@example.com (mozgin)]]></author>
			<pubDate>Tue, 07 Jul 2015 03:52:17 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=66583#p66583</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=66571#p66571</link>
			<description><![CDATA[<p>Есть такая проблема, добавить бы фильтр чтоб работал на нужном уровне. Т.к. плагин пытается принять самый верхний турнир и не срабатывает, пока висит теущий не завершенный (даже других лвл). В итоге из-за отсутвия фильтра на свой уровень, тупо стоит и ничего не принимает.<br />А ручное выставление нужного уровня, при обновлении флейма скидывает каждый раз. Т.е. если фильтр включен вручную он турнир примет всеже, но это будет в ручном режими когда проще самому нажать и потом будет стоять втыкать.</p>]]></description>
			<author><![CDATA[dummy@example.com (Евжений)]]></author>
			<pubDate>Sun, 05 Jul 2015 11:11:51 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=66571#p66571</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=66550#p66550</link>
			<description><![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>]]></description>
			<author><![CDATA[dummy@example.com (mozgin)]]></author>
			<pubDate>Thu, 02 Jul 2015 17:30:15 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=66550#p66550</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=66008#p66008</link>
			<description><![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>]]></description>
			<author><![CDATA[dummy@example.com (Pokemon15)]]></author>
			<pubDate>Thu, 07 May 2015 18:37:16 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=66008#p66008</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=65847#p65847</link>
			<description><![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>]]></description>
			<author><![CDATA[dummy@example.com (mozgin)]]></author>
			<pubDate>Wed, 15 Apr 2015 17:27:45 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=65847#p65847</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=65840#p65840</link>
			<description><![CDATA[<p>Заработал , но есть проблема , он принимает самый верхний турнир , точнее пытается принять , но не фильтрует по лвлу , т.е. там может стоять турнир 11 лвл и он будет в него ломаться , пока тот не пропадет с верхней точки</p>]]></description>
			<author><![CDATA[dummy@example.com (JustLui)]]></author>
			<pubDate>Wed, 15 Apr 2015 12:49:54 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=65840#p65840</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=65831#p65831</link>
			<description><![CDATA[<p>поменяли на днях страничку турниров, теперь по-умолчанию заявки всех лвлов отображаются. а плагин пытается принять всегда вехнюю заявку</p>]]></description>
			<author><![CDATA[dummy@example.com (mozgin)]]></author>
			<pubDate>Tue, 14 Apr 2015 16:55:39 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=65831#p65831</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=65823#p65823</link>
			<description><![CDATA[<p>была проблема у Бланко, пробовал обычным блокнотом сохранить?</p>]]></description>
			<author><![CDATA[dummy@example.com (qwerty)]]></author>
			<pubDate>Mon, 13 Apr 2015 14:09:15 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=65823#p65823</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=65822#p65822</link>
			<description><![CDATA[<p>У меня не работает плагин <br />101 хп выставлял <br />метро выключено</p>]]></description>
			<author><![CDATA[dummy@example.com (JustLui)]]></author>
			<pubDate>Mon, 13 Apr 2015 12:22:46 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=65822#p65822</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=64855#p64855</link>
			<description><![CDATA[<p>один из самых нужных плагинов</p>]]></description>
			<author><![CDATA[dummy@example.com (oneboy)]]></author>
			<pubDate>Wed, 14 Jan 2015 20:54:22 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=64855#p64855</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=62161#p62161</link>
			<description><![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>]]></description>
			<author><![CDATA[dummy@example.com (siken_sss)]]></author>
			<pubDate>Thu, 14 Nov 2013 19:24:22 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=62161#p62161</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=62153#p62153</link>
			<description><![CDATA[<p>я обычно врубаю режим пещеры</p>]]></description>
			<author><![CDATA[dummy@example.com (qwerty)]]></author>
			<pubDate>Wed, 13 Nov 2013 20:53:41 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=62153#p62153</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагин принятия турниров]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=62146#p62146</link>
			<description><![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>]]></description>
			<author><![CDATA[dummy@example.com (Rapidshe)]]></author>
			<pubDate>Wed, 13 Nov 2013 14:43:37 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=62146#p62146</guid>
		</item>
	</channel>
</rss>
