<?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=4768</link>
		<description><![CDATA[Недавние сообщения в теме "Конфеты.".]]></description>
		<lastBuildDate>Thu, 30 Oct 2014 22:55:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=64235#p64235</link>
			<description><![CDATA[<p>Вод тут ()</p>]]></description>
			<author><![CDATA[dummy@example.com (Travel)]]></author>
			<pubDate>Thu, 30 Oct 2014 22:55:54 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=64235#p64235</guid>
		</item>
		<item>
			<title><![CDATA[Re: Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=64233#p64233</link>
			<description><![CDATA[<p>ошибку выдает.</p>]]></description>
			<author><![CDATA[dummy@example.com (dtnfkm)]]></author>
			<pubDate>Thu, 30 Oct 2014 19:04:54 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=64233#p64233</guid>
		</item>
		<item>
			<title><![CDATA[Re: Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=64232#p64232</link>
			<description><![CDATA[<p>Файл назвать HelloweenCandy.js</p>]]></description>
			<author><![CDATA[dummy@example.com (Лямер)]]></author>
			<pubDate>Thu, 30 Oct 2014 18:10:11 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=64232#p64232</guid>
		</item>
		<item>
			<title><![CDATA[Re: Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=64231#p64231</link>
			<description><![CDATA[<p>var helloweenCandyTimer;</p><p>function HelloweenCandy(enabled)<br />{<br />&nbsp; &nbsp; &nbsp;if(enabled)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyHandler();<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; clearInterval(helloweenCandyTimer);<br />&nbsp; &nbsp; }<br />}</p> <br /><p>function HelloweenCandyHandler()<br />{<br />&nbsp; &nbsp; if (top.Battle.bInBattle){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clearInterval(helloweenCandyTimer);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helloweenCandyTimer = setInterval(&quot;HelloweenCandyHandler()&quot;, 20 * 100);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />&nbsp; &nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp;clearInterval(helloweenCandyTimer);<br />&nbsp; &nbsp; &nbsp;helloweenCandyTimer = setInterval(&quot;HelloweenCandyHandler()&quot;, 10 * 60 * 100);</p><p>&nbsp; &nbsp; &nbsp;var temp_inf = doLoad(&quot;http://&quot; + external.SCity.Text + &quot;.combats.com/main.pl?edit=4&amp;rnd=&quot; + Math.random());</p><p>&nbsp; &nbsp; var HelloweenCandyName = [];</p><p>&nbsp; &nbsp; if(temp_inf &amp;&amp; !(temp_inf.match(/halloween\_buff\_str/i)) &amp;&amp; (temp_inf.match(/Сладкая Конфетка/i)))<br />&nbsp; &nbsp; {&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length]=[];<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(&quot;Сладкая Конфетка&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(4);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; external.AddToChat(&quot;Нет эффекта&nbsp; &lt;b&gt;Сладкая Конфетка&lt;/b&gt;&quot;);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp;if(temp_inf &amp;&amp; !(temp_inf.match(/halloween\_buff\_damage/i)) &amp;&amp; (temp_inf.match(/Пряная Конфетка/i)))<br />&nbsp; &nbsp; {&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length]=[];<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(&quot;Пряная Конфетка&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(4);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; external.AddToChat(&quot;Нет эффекта&nbsp; &lt;b&gt;Пряная Конфетка&lt;/b&gt;&quot;);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp;if(temp_inf &amp;&amp; !(temp_inf.match(/halloween\_buff\_inst/i)) &amp;&amp; (temp_inf.match(/Горькая Конфетка/i)))<br />&nbsp; &nbsp; {&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length]=[];<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(&quot;Горькая Конфетка&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(4);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; external.AddToChat(&quot;Нет эффекта&nbsp; &lt;b&gt;Горькая Конфетка&lt;/b&gt;&quot;);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp;if(temp_inf &amp;&amp; !(temp_inf.match(/halloween\_buff\_dex/i)) &amp;&amp; (temp_inf.match(/Кислая Конфетка/i)))<br />&nbsp; &nbsp; {&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length]=[];<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(&quot;Кислая Конфетка&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandyName[HelloweenCandyName.length-1].push(4);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; external.AddToChat(&quot;Нет эффекта&nbsp; &lt;b&gt;Кислая Конфетка&lt;/b&gt;&quot;);<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; if(HelloweenCandyName.length &gt; 0)<br />&nbsp; &nbsp; for(x=0;x&lt;=(HelloweenCandyName.length-1);x++){<br />&nbsp; &nbsp; &nbsp; &nbsp; HelloweenCandy_use(HelloweenCandyName[x][0],HelloweenCandyName[x][1]);<br />&nbsp; &nbsp; }<br />}</p><p>function HelloweenCandy_use(candyName,razdel)<br />{<br />&nbsp; &nbsp; var temp_inf = doLoad(&quot;http://&quot; + external.SCity.Text + &quot;.combats.com/main.pl?edit=&quot;+razdel+&quot;&amp;rnd=&quot; + Math.random());</p><p>&nbsp; &nbsp; var m = candyName + &quot;(\\s\\(x\\d+\\))?&#039;,&#039;main.pl&#039;,\\s&#039;(.+?)&#039;,\\s&#039;.*?&#039;,\\s(\\d+)&quot;;</p><p>&nbsp; &nbsp; var found = temp_inf.match(m);<br />&nbsp; &nbsp; if(found != null)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; external.AddToChat(&quot;Ем конфету &lt;b&gt;\\\&quot;&quot; + candyName + &quot;\\\&quot;&lt;/b&gt;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; top.frames[external.mainFrameIndex].location = &quot;http://&quot; + external.SCity.Text + &quot;.combats.com/main.pl?use=&quot; + found[2] + &quot;&amp;n=&quot; + found[3];<br />&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return false;<br />}</p><p>function doLoad(url) {<br />&nbsp; &nbsp; if (window.XMLHttpRequest)<br />&nbsp; &nbsp; &nbsp; &nbsp; req = new XMLHttpRequest();<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; req = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp;req.open(&quot;GET&quot;, url, false); // задать параметры методу open<br />&nbsp; &nbsp; &nbsp; &nbsp;req.setRequestHeader(&quot;If-Modified-Since&quot;, &quot;Sat, 1 Jan 2000 00:00:00 GMT&quot;); //чтоб не кэшировались GET запросы<br />&nbsp; &nbsp; &nbsp; &nbsp;req.send(null); // отправить запрос&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; return req.responseText;<br />}</p>]]></description>
			<author><![CDATA[dummy@example.com (Лямер)]]></author>
			<pubDate>Thu, 30 Oct 2014 18:09:24 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=64231#p64231</guid>
		</item>
		<item>
			<title><![CDATA[Re: Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=64230#p64230</link>
			<description><![CDATA[<p>так и не нашли?) опять актуальная тема&nbsp; <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Limbach)]]></author>
			<pubDate>Thu, 30 Oct 2014 14:05:36 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=64230#p64230</guid>
		</item>
		<item>
			<title><![CDATA[Re: Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=62067#p62067</link>
			<description><![CDATA[<p>А еще как точильный камень юзать в бою?</p>]]></description>
			<author><![CDATA[dummy@example.com (re-shik)]]></author>
			<pubDate>Sun, 03 Nov 2013 17:23:54 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=62067#p62067</guid>
		</item>
		<item>
			<title><![CDATA[Re: Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=62064#p62064</link>
			<description><![CDATA[<p>Перерыл весь форум,&nbsp; ничего что могло бы помочь мне в этом вопросе не нашел (((</p>]]></description>
			<author><![CDATA[dummy@example.com (Travel)]]></author>
			<pubDate>Sat, 02 Nov 2013 18:43:55 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=62064#p62064</guid>
		</item>
		<item>
			<title><![CDATA[Конфеты.]]></title>
			<link>http://www.combats-bot.ru/viewtopic.php?pid=62059#p62059</link>
			<description><![CDATA[<p>Ребята, подскажите, как заставить бота юзать конфеты, которые ввели с тыквами. А то как то самому сидеть их юзать это полная жо. <img src="http://www.combats-bot.ru/img/smilies/neutral.png" width="15" height="15" alt="neutral" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Travel)]]></author>
			<pubDate>Fri, 01 Nov 2013 07:56:00 +0000</pubDate>
			<guid>http://www.combats-bot.ru/viewtopic.php?pid=62059#p62059</guid>
		</item>
	</channel>
</rss>
