<?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=1236&amp;type=atom"/>
	<updated>2009-12-14T15:01:42Z</updated>
	<generator>PunBB</generator>
	<id>http://www.combats-bot.ru/viewtopic.php?id=1236</id>
		<entry>
			<title type="html"><![CDATA[Re: Хп % не работает]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=14799#p14799"/>
			<content type="html"><![CDATA[<p>Для каналки момент нападения настраивается в файле dungeon.js в операции сравнения maxHP и tkHP.<br />Пример:<br /></p><div class="codebox"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> AttackMobs<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><span style="color: #339933;">!</span>IsWallPresent<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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;">try</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;">if</span><span style="color: #009900;">&#40;</span>top.<span style="color: #660066;">frames</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">arrLayers</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;l&quot;</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">arrUnits</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</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>top.<span style="color: #660066;">frames</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">arrLayers</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;l&quot;</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">arrUnits</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">action</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">&quot;&quot;</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: #003366; font-weight: bold;">var</span> attack <span style="color: #339933;">=</span> tkHP <span style="color: #339933;">&gt;=</span> <span style="color: #009900;">&#40;</span>maxHP <span style="color: #339933;">*</span> <span style="color: #CC0000;">0.8</span><span style="color: #009900;">&#41;</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>external.<span style="color: #660066;">SCharType</span>.<span style="color: #660066;">SelectedIndex</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; attack <span style="color: #339933;">=</span> attack <span style="color: #339933;">&amp;&amp;</span> tkMana <span style="color: #339933;">&gt;=</span> <span style="color: #009900;">&#40;</span>maxMana <span style="color: #339933;">*</span> <span style="color: #CC0000;">0.9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>&nbsp; &nbsp; <br />&nbsp;<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>attack<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; external.<span style="color: #660066;">SetStatusLabel</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Нападаю на мобов&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; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>external.<span style="color: #660066;">SDungeonAttackMobs</span>.<span style="color: #660066;">Checked</span><span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; top.<span style="color: #660066;">frames</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://&quot;</span> <span style="color: #339933;">+</span> external.<span style="color: #660066;">SCity</span>.<span style="color: #660066;">Text</span> <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;.combats.com/&quot;</span> <span style="color: #339933;">+</span> dungName <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;?attack=1&amp;use=&quot;</span> <span style="color: #339933;">+</span> top.<span style="color: #660066;">frames</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">arrLayers</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;l&quot;</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">arrUnits</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</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; &nbsp; &nbsp; breakAction <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; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</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; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />&nbsp;<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>Это в версии 8.2, в 8,1 немного иначе выглядит.<br />Сравнение вот тут было: attack = attack &amp;&amp; tkMana &gt;= (maxMana * 0.9);</p>]]></content>
			<author>
				<name><![CDATA[hyppo]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=27</uri>
			</author>
			<updated>2009-12-14T15:01:42Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=14799#p14799</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Хп % не работает]]></title>
			<link rel="alternate" href="http://www.combats-bot.ru/viewtopic.php?pid=14795#p14795"/>
			<content type="html"><![CDATA[<p>У меня перс в каналке ,&nbsp; нападает примерно при 70-80% , хоть в настроиках написсано 100% ...&nbsp; в чём проблема?</p>]]></content>
			<author>
				<name><![CDATA[wm_killer]]></name>
				<uri>http://www.combats-bot.ru/profile.php?id=196</uri>
			</author>
			<updated>2009-12-14T14:43:53Z</updated>
			<id>http://www.combats-bot.ru/viewtopic.php?pid=14795#p14795</id>
		</entry>
</feed>
