<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: восстановление хп]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=17093&amp;type=atom" />
	<updated>2022-05-03T10:14:31Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=17093</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: восстановление хп]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153030#p153030" />
			<content type="html"><![CDATA[<p><strong>qwercv</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свои посты. Обратите внимание на <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-05-03T10:14:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153030#p153030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: восстановление хп]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153029#p153029" />
			<content type="html"><![CDATA[<p>Все подобные функции из samp-udf.ahk<br /><strong>__Михаил__</strong></p>]]></content>
			<author>
				<name><![CDATA[qwercv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42289</uri>
			</author>
			<updated>2022-05-03T09:16:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153029#p153029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: восстановление хп]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153028#p153028" />
			<content type="html"><![CDATA[<p>Откуда взялись функции &#039;GetPlayerHealth&#039;, &#039;SendChat&#039;, &#039;restorelog&#039;? Такого нет в АХК.<br />На форум нужно выкладывать хоть мало-мальски рабочий пример, иначе как его запустить и проверить?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-05-03T08:55:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153028#p153028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: восстановление хп]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=153027#p153027" />
			<content type="html"><![CDATA[<p>Немного накидал скрипт для восстановления ХП при достижении 20%, но он, почему-то, не работает. Помогите разобраться<br /></p><div class="codebox"><pre><code>
loop {
	SendMessage, 0x50,, 0x4190419,, A
	health := GetPlayerHealth()
	if ( health &lt;= 20 )
	{
	SendChat(&quot;/id Ivan_Ivanov&quot;)
	restorelog()
	sleep 100
	FileRead, Str, other\done\chatlog.txt
	StringReplace, Str, Str, `r`n, `n, 1
	StringReplace, Str, Str, `r, `n, 1
	RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+] (.*) {66CC66}id (\d+)&quot;, result)
	SendChat(&quot;/hp &quot; result2 &quot; 100&quot;)
	
	}
	}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qwercv]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=42289</uri>
			</author>
			<updated>2022-05-03T08:39:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=153027#p153027</id>
		</entry>
</feed>
