Jump to content

Macro on Profile


Go to solution Solved by Droidz,

Recommended Posts

I need use this Havoc Macro:

/targetenemy
/focus target
/stopmacro [target=focus,noexists] [noexists]
/use Devastação
/use Havoc
/focus target
/targetlasttarget

This work fine on my bar, but on bot dont work.

 

Look my XML:

    <FightClassSpell>
      <SpellName>RunMacroText("/targetenemy
/focus target
/stopmacro [target=focus,noexists] [noexists]
/use Devastação
/use Havoc
/focus target
/targetlasttarget")</SpellName>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>IsSpellUsable</ContionType>
          <Param xsi:type="FightClassConditionStringBool">
            <Name>Havoc</Name>
            <Need>true</Need>
          </Param>
        </FightClassCondition>
        <FightClassCondition>
          <ContionType>LuaScript</ContionType>
          <Param xsi:type="FightClassConditionLua">
            <LuaScript>power = UnitPower("player", 14);if (power &gt;= 2) then retV = "1";else retV = "0";end</LuaScript>
            <VarRet>retV</VarRet>
            <ValueRet>1</ValueRet>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <Priority>43</Priority>
      <CheckIfKnowUsableDistance>false</CheckIfKnowUsableDistance>
      <CheckIfView>false</CheckIfView>
      <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
    </FightClassSpell>

Tks...

Link to post
Share on other sites
  • Solution

Hello, try to use this lua code:

RunMacroText("/targetenemy"); 
RunMacroText("/focus target"); 
RunMacroText("/stopmacro [target=focus,noexists] [noexists]"); 
RunMacroText("/use Devastação"); 
RunMacroText("/use Havoc"); 
RunMacroText("/focus target"); 
RunMacroText("/targetlasttarget"); 
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...