luizkim 20 Posted January 17, 2015 Share Posted January 17, 2015 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 >= 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... fragik 1 Quote Link to post Share on other sites
Solution Droidz 2494 Posted January 19, 2015 Solution Share Posted January 19, 2015 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"); fragik 1 Quote Link to post Share on other sites
luizkim 20 Posted January 20, 2015 Author Share Posted January 20, 2015 Work now... Tks... fragik 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.