<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://my.curse.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>User Interface &amp; Addons</title><link>http://my.curse.com/forums/4900.aspx</link><description>Addons, Macros, Scripts and Interface galore! Comments, suggestions, requests, and help, it's all here.</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>Re: Help with AddOn Coding</title><link>http://my.curse.com/forums/thread/509105.aspx</link><pubDate>Tue, 30 Jun 2009 04:05:15 GMT</pubDate><guid isPermaLink="false">045f8e2a-3b25-43b2-9769-9c60de2974e3:509105</guid><dc:creator>Wowza1</dc:creator><slash:comments>0</slash:comments><comments>http://my.curse.com/forums/thread/509105.aspx</comments><wfw:commentRss>http://my.curse.com/forums/commentrss.aspx?SectionID=4900&amp;PostID=509105</wfw:commentRss><description>&lt;p&gt;Timers are barred... as it makes things automated which are blocked...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Help with AddOn Coding</title><link>http://my.curse.com/forums/thread/509066.aspx</link><pubDate>Tue, 30 Jun 2009 03:11:22 GMT</pubDate><guid isPermaLink="false">045f8e2a-3b25-43b2-9769-9c60de2974e3:509066</guid><dc:creator>MasterCaura</dc:creator><slash:comments>0</slash:comments><comments>http://my.curse.com/forums/thread/509066.aspx</comments><wfw:commentRss>http://my.curse.com/forums/commentrss.aspx?SectionID=4900&amp;PostID=509066</wfw:commentRss><description>&lt;p&gt;Well, by auto, I mean more that it&amp;#39;s on a timer, so... that&amp;#39;s not technically barred, as I recall.&lt;/p&gt;
&lt;p&gt;Thanks for the &amp;#39;battle-realizor&amp;#39; though.&amp;nbsp; It really helped.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Help with AddOn Coding</title><link>http://my.curse.com/forums/thread/509030.aspx</link><pubDate>Tue, 30 Jun 2009 02:54:58 GMT</pubDate><guid isPermaLink="false">045f8e2a-3b25-43b2-9769-9c60de2974e3:509030</guid><dc:creator>myrroddin</dc:creator><slash:comments>0</slash:comments><comments>http://my.curse.com/forums/thread/509030.aspx</comments><wfw:commentRss>http://my.curse.com/forums/commentrss.aspx?SectionID=4900&amp;PostID=509030</wfw:commentRss><description>&lt;p&gt;Well, first off, you can&amp;#39;t automatically do anything with an addon. That kind of functionality was blocked waaaaay back with patch 1.10, long before even Burning Crusade. You must have some user input, whether it is a key or keys being pushed or a mouse button clicked. However, you can get an addon to fire a macro. That&amp;#39;s a bit complex to write here, so again, I will point you to the book I mentioned, which teaches you pretty much everything you need to know.&lt;/p&gt;
&lt;p&gt;That said, in order to detect if you are in combat, you would want&lt;/p&gt;
&lt;p&gt;&lt;div class="embed"&gt;&lt;div class="embed-title"&gt;Code:&lt;/div&gt;&lt;pre class="embed-body"&gt;function MyAddon:CheckingForCombat()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self:RegisterEvent(&amp;quot;PLAYER_REGEN_ENABLED&amp;quot;) -- normal engergy gains like Mana and especially Health only occur outside of combat&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self:RegisterEvent(&amp;quot;PLAYER_REGEN_DISABLED&amp;quot;) -- Health regen is disabled during combat. best way to check for combat, really&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if event == &amp;quot;PLAYER_REGEN_DISABLED&amp;quot; then&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- do stuff while in combat&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; else&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --- do stuff out of combat&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/p&gt;
&lt;p&gt;end&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Help with AddOn Coding</title><link>http://my.curse.com/forums/thread/508935.aspx</link><pubDate>Tue, 30 Jun 2009 02:14:03 GMT</pubDate><guid isPermaLink="false">045f8e2a-3b25-43b2-9769-9c60de2974e3:508935</guid><dc:creator>MasterCaura</dc:creator><slash:comments>0</slash:comments><comments>http://my.curse.com/forums/thread/508935.aspx</comments><wfw:commentRss>http://my.curse.com/forums/commentrss.aspx?SectionID=4900&amp;PostID=508935</wfw:commentRss><description>&lt;p&gt;&lt;div class="embed"&gt;&lt;div class="embed-title"&gt;&lt;img class="valign-middle" alt="" src="/Themes/Common/v6/images/forums/icon-quote.png"/&gt;   Quote:&lt;/div&gt;&lt;blockquote class="embed-body"&gt;&lt;div class="embed-title"&gt;Originally Posted by &lt;strong&gt;camealion&lt;/strong&gt; &lt;a href="#"&gt;&lt;img class="valign-middle" alt="Go to post by &gt;camealion" src="/Themes/Common/v6/images/forums/btn-lastpost.gif"/&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Not a programmer but maybe &lt;a target="_blank" href="http://www.wowwiki.com/API_InCombatLockdown" title="Determinates if in-combat lockdown restrictions are active or not. These restrictions prevent access to some API functions and frame methods while in combat."&gt;InCombatLockdown()&lt;/a&gt;&amp;nbsp;will help.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try it, and let you know if it works.&amp;nbsp; I&amp;#39;m still kinda new, so does it need a function or script tag?&lt;/p&gt;
&lt;p&gt;&lt;div class="embed"&gt;&lt;div class="embed-title"&gt;&lt;img class="valign-middle" alt="" src="/Themes/Common/v6/images/forums/icon-quote.png"/&gt;   Quote:&lt;/div&gt;&lt;blockquote class="embed-body"&gt;&lt;div class="embed-title"&gt;Originally Posted by &lt;strong&gt;myrroddin&lt;/strong&gt; &lt;a href="#"&gt;&lt;img class="valign-middle" alt="Go to post by &gt;myrroddin" src="/Themes/Common/v6/images/forums/btn-lastpost.gif"/&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What you want is a macro.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class="embed"&gt;
&lt;div class="embed-title"&gt;Code:&lt;/div&gt;
&lt;pre class="embed-body"&gt;/cast Find Herbs&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;/cast Find Minerals&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Link for guide: &lt;a target="_blank" href="http://www.wowwiki.com/Portal:Interface_customization"&gt;http://www.wowwiki.com/Portal:Interface_customization&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You would also benefit from the book World of Warcraft Programming by James Whitehead II and Matthew Orlando. I found it at my local Chapters, but you can order it from Amazon.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The thing is, I want it to automatically switch. Like I said, I&amp;#39;m lazy, and also I want the practice for writing AddOns.&amp;nbsp; You have to start somewhere, right?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit in: I checked that guide, and couldn&amp;#39;t find anything that was going to teach much of the language.&amp;nbsp; It is a good help for a first step, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Help with AddOn Coding</title><link>http://my.curse.com/forums/thread/508768.aspx</link><pubDate>Mon, 29 Jun 2009 19:58:29 GMT</pubDate><guid isPermaLink="false">045f8e2a-3b25-43b2-9769-9c60de2974e3:508768</guid><dc:creator>myrroddin</dc:creator><slash:comments>0</slash:comments><comments>http://my.curse.com/forums/thread/508768.aspx</comments><wfw:commentRss>http://my.curse.com/forums/commentrss.aspx?SectionID=4900&amp;PostID=508768</wfw:commentRss><description>&lt;p&gt;What you want is a macro.&lt;/p&gt;
&lt;p&gt;&lt;div class="embed"&gt;&lt;div class="embed-title"&gt;Code:&lt;/div&gt;&lt;pre class="embed-body"&gt;/cast Find Herbs&lt;/p&gt;
&lt;p&gt;/cast Find Minerals&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Link for guide: &lt;a href="http://www.wowwiki.com/Portal:Interface_customization" target="_blank"&gt;http://www.wowwiki.com/Portal:Interface_customization&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You would also benefit from the book World of Warcraft Programming by James Whitehead II and Matthew Orlando. I found it at my local Chapters, but you can order it from Amazon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Help with AddOn Coding</title><link>http://my.curse.com/forums/thread/508767.aspx</link><pubDate>Mon, 29 Jun 2009 19:56:32 GMT</pubDate><guid isPermaLink="false">045f8e2a-3b25-43b2-9769-9c60de2974e3:508767</guid><dc:creator>camealion</dc:creator><slash:comments>0</slash:comments><comments>http://my.curse.com/forums/thread/508767.aspx</comments><wfw:commentRss>http://my.curse.com/forums/commentrss.aspx?SectionID=4900&amp;PostID=508767</wfw:commentRss><description>&lt;p&gt;Not a programmer but maybe &lt;a target="_blank" href="http://www.wowwiki.com/API_InCombatLockdown" title="Determinates if in-combat lockdown restrictions are active or not. These restrictions prevent access to some API functions and frame methods while in combat."&gt;InCombatLockdown()&lt;/a&gt;&amp;nbsp;will help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Help with AddOn Coding</title><link>http://my.curse.com/forums/thread/508761.aspx</link><pubDate>Mon, 29 Jun 2009 19:44:58 GMT</pubDate><guid isPermaLink="false">045f8e2a-3b25-43b2-9769-9c60de2974e3:508761</guid><dc:creator>MasterCaura</dc:creator><slash:comments>0</slash:comments><comments>http://my.curse.com/forums/thread/508761.aspx</comments><wfw:commentRss>http://my.curse.com/forums/commentrss.aspx?SectionID=4900&amp;PostID=508761</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve been working on an AddOn to switch between Find Herbs and Find Minerals (It&amp;#39;s my first AddOn&amp;nbsp;and I&amp;#39;m lazy), but I&amp;#39;m not sure how to automatically&amp;nbsp;disengage the&amp;nbsp;switching during a battle, which is rather annoying.&amp;nbsp; The reason I can&amp;#39;t is because I&amp;#39;m not sure how the AddOn would realize that I&amp;#39;m in combat.&amp;nbsp; Can anyone help?&lt;/p&gt;
&lt;p&gt;Also, it would seems that there are no real guides to programming simple addons, or at least to the language involved.&amp;nbsp; Does anyone have a small guide?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>