<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помогите с LUA Script]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10023&amp;type=atom" />
	<updated>2014-10-03T22:45:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10023</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с LUA Script]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86997#p86997" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>slava.shapovalov</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> и с <a href="http://forum.script-coding.com/viewtopic.php?id=5421">этой</a> темами, отредактируйте заголовок.</span><br />И вообще, вы веткой не ошиблись? Это какой язык?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-10-03T22:45:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86997#p86997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите с LUA Script]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86996#p86996" />
			<content type="html"><![CDATA[<p>Нужно две функции объединить в одну, так как вместе они не работают. а только по отдельности .</p><div class="codebox"><pre><code>function Kick(self, elapsed) 
            local spell, _, _, _, _, endTime, _, _, interrupt = UnitCastingInfo(&quot;target&quot;)                
            local enabled = GetSpellCooldown(&quot;Зуботычина&quot;)            
            local inRange = IsSpellInRange(&quot;Зуботычина&quot;, &quot;target&quot;)            
            if spell then            
             if interrupt == false and enabled == 0 and inRange == 1 then                      
              RunMacroText(&quot;/cast Зуботычина&quot;)                      
             end 
            end                
end            
CreateFrame(&quot;Frame&quot;, &quot;KickFrame&quot;) 
KickFrame:SetScript(&quot;OnUpdate&quot;, Kick)</code></pre></div><br /><br /><br /><div class="codebox"><pre><code>function Kick(self, elapsed) 
            local spell, _, _, _, _, endTime, _, _, interrupt = UnitCastingInfo(&quot;target&quot;)                
            local enabled = GetSpellCooldown(&quot;Превосходство&quot;)            
            local inRange = IsSpellInRange(&quot;Превосходство&quot;, &quot;target&quot;)            
            if spell then            
             if interrupt == false and enabled == 0 and inRange == 1 then                      
              RunMacroText(&quot;/cast Превосходство&quot;)                      
             end 
            end                
end            
CreateFrame(&quot;Frame&quot;, &quot;KickFrame&quot;) 
KickFrame:SetScript(&quot;OnUpdate&quot;, Kick)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[slava.shapovalov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32593</uri>
			</author>
			<updated>2014-10-03T22:39:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86996#p86996</id>
		</entry>
</feed>
