<?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=4768&amp;type=atom"/>
	<updated>2014-10-30T22:55:54Z</updated>
	<generator>PunBB</generator>
	<id>http://www.combats-bot.ru/viewtopic.php?id=4768</id>
		<entry>
			<title type="html"><![CDATA[Re: Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=64235#p64235"/>
			<content type="html"><![CDATA[<p>Вод тут ()</p>]]></content>
			<author>
				<name><![CDATA[Travel]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7073</uri>
			</author>
			<updated>2014-10-30T22:55:54Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=64235#p64235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=64233#p64233"/>
			<content type="html"><![CDATA[<p>ошибку выдает.</p>]]></content>
			<author>
				<name><![CDATA[dtnfkm]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=8466</uri>
			</author>
			<updated>2014-10-30T19:04:54Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=64233#p64233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=64232#p64232"/>
			<content type="html"><![CDATA[<p>Файл назвать HelloweenCandy.js</p>]]></content>
			<author>
				<name><![CDATA[Лямер]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=6906</uri>
			</author>
			<updated>2014-10-30T18:10:11Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=64232#p64232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=64231#p64231"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Лямер]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=6906</uri>
			</author>
			<updated>2014-10-30T18:09:24Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=64231#p64231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=64230#p64230"/>
			<content type="html"><![CDATA[<p>так и не нашли?) опять актуальная тема&nbsp; <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Limbach]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7878</uri>
			</author>
			<updated>2014-10-30T14:05:36Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=64230#p64230</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=62067#p62067"/>
			<content type="html"><![CDATA[<p>А еще как точильный камень юзать в бою?</p>]]></content>
			<author>
				<name><![CDATA[re-shik]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=723</uri>
			</author>
			<updated>2013-11-03T17:23:54Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=62067#p62067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=62064#p62064"/>
			<content type="html"><![CDATA[<p>Перерыл весь форум,&nbsp; ничего что могло бы помочь мне в этом вопросе не нашел (((</p>]]></content>
			<author>
				<name><![CDATA[Travel]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7073</uri>
			</author>
			<updated>2013-11-02T18:43:55Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=62064#p62064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Конфеты.]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=62059#p62059"/>
			<content type="html"><![CDATA[<p>Ребята, подскажите, как заставить бота юзать конфеты, которые ввели с тыквами. А то как то самому сидеть их юзать это полная жо. <img src="http://www.combats-bot.ru/img/smilies/neutral.png" width="15" height="15" alt="neutral" /></p>]]></content>
			<author>
				<name><![CDATA[Travel]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=7073</uri>
			</author>
			<updated>2013-11-01T07:56:00Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=62059#p62059</id>
		</entry>
</feed>
