<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Combots Бот для БК &mdash; Принятие физ. заявок в Combots 8.2]]></title>
	<link rel="self" href="http://www.combats-bot.ru/extern.php?action=feed&amp;tid=1270&amp;type=atom"/>
	<updated>2009-12-26T06:04:24Z</updated>
	<generator>PunBB</generator>
	<id>http://www.combats-bot.ru/viewtopic.php?id=1270</id>
		<entry>
			<title type="html"><![CDATA[Re: Принятие физ. заявок в Combots 8.2]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=15951#p15951"/>
			<content type="html"><![CDATA[<p>Блин, перешёл на третий уровень.. Знатоки - подскажите, как сделать чтобы не принимал заявки у первых уровней?))) Т.е. принмал заявки у &quot;мой уровень -1&quot; </p><div class="codebox"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>cLevel <span style="color: #339933;">==</span> external.<span style="color: #660066;">level</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span></pre></div><p>Попробую так, но почему то уверен, что не получится <img src="http://www.combats-bot.ru/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>Бггг... получилось <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /> Еслиб все мои предположения так сбывались... <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Петро]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=37</uri>
			</author>
			<updated>2009-12-26T06:04:24Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=15951#p15951</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Принятие физ. заявок в Combots 8.2]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=15555#p15555"/>
			<content type="html"><![CDATA[<p><strong>Тема актуальна для полу-мёртвых городов, либо Нью кепа</strong> <em>(так-же кулачки хай-левелов.. правда нафига оно им надо ^_^)</em></p><p>Попробовал сделать принятие заявок персонажей младшего уровня, если нет заявок своего уровня. Но бот стоит, если есть заявки своего уровня, и начинает принимать младшие, как только заявки своего уровня исчезают:</p><div class="codebox"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> SelectFizZayavka<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> elements <span style="color: #339933;">=</span> frames<span style="color: #009900;">&#91;</span>external.<span style="color: #660066;">mainFrameIndex</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">document</span>.<span style="color: #660066;">F1</span>.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> elements.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><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;">var</span> element <span style="color: #339933;">=</span> elements<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>element.<span style="color: #660066;">type</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;radio&quot;</span><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: #003366; font-weight: bold;">var</span> _name <span style="color: #339933;">=</span> element.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">outerHTML</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/drwfl\(\&quot;(.+)\&quot;,[0-9]+,\&quot;[0-9]\&quot;,.+\)/</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; <span style="color: #003366; font-weight: bold;">var</span> cLevel <span style="color: #339933;">=</span> element.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">outerHTML</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/drwfl\(\&quot;[^&quot;]+\&quot;,[0-9]+,\&quot;(.+)\&quot;,.+\)/</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; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>cLevel <span style="color: #339933;">==</span> external.<span style="color: #660066;">level</span><span style="color: #009900;">&#41;</span>&nbsp; <span style="color: #006600; font-style: italic;">//def:&nbsp; if(cLevel == external.level) </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> battleType <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>element.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">alt</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;Fist-fight&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</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>battleType <span style="color: #339933;">==</span> external.<span style="color: #660066;">SBattleDogovorType</span>.<span style="color: #660066;">SelectedIndex</span><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>TestFizZayavka2<span style="color: #009900;">&#40;</span>_name<span style="color: #009900;">&#41;</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; element.<span style="color: #660066;">checked</span> <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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frames<span style="color: #009900;">&#91;</span>external.<span style="color: #660066;">mainFrameIndex</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">document</span>.<span style="color: #660066;">F1</span>.<span style="color: #660066;">confirm2</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><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; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span><br />&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; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span> <br />&nbsp; &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>cLevel <span style="color: #339933;">==</span> external.<span style="color: #660066;">level</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>&nbsp; <span style="color: #006600; font-style: italic;">//def:&nbsp; if(cLevel == external.level) </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: #003366; font-weight: bold;">var</span> battleType <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>element.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">nextSibling</span>.<span style="color: #660066;">alt</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;Fist-fight&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</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>battleType <span style="color: #339933;">==</span> external.<span style="color: #660066;">SBattleDogovorType</span>.<span style="color: #660066;">SelectedIndex</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>TestFizZayavka2<span style="color: #009900;">&#40;</span>_name<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &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; &nbsp; &nbsp; element.<span style="color: #660066;">checked</span> <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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frames<span style="color: #009900;">&#91;</span>external.<span style="color: #660066;">mainFrameIndex</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">document</span>.<span style="color: #660066;">F1</span>.<span style="color: #660066;">confirm2</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><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;">return</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><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />&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 />&nbsp;<br />&nbsp; &nbsp; PutFizZayavka<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /><span style="color: #009900;">&#125;</span></pre></div><p>Думается, что прое...л &quot;PutFizZayavka();&quot; после проверки на наличие заявок своего уровня, но бот даже чекбоксы не выбирает когда они есть.<br />Хелп, кто шарит <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>upd.: попробовать убрать &quot;return;&quot; из 1 условия, но заявок нету <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" />))</p><p><strong>upd.2: ну всё, в принципе работает, пользуйтесь кому надо <img src="http://www.combats-bot.ru/img/smilies/smile.png" width="15" height="15" alt="smile" />))</strong></p>]]></content>
			<author>
				<name><![CDATA[Петро]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=37</uri>
			</author>
			<updated>2009-12-22T19:00:54Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=15555#p15555</id>
		</entry>
</feed>
