Jump to content

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 comment
https://wrobot.eu/forums/topic/1891-macro-on-profile/
Share on other sites

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 comment
https://wrobot.eu/forums/topic/1891-macro-on-profile/#findComment-9242
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...