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 Link to comment https://wrobot.eu/forums/topic/1891-macro-on-profile/ Share on other sites More sharing options...
Droidz 2738 Posted January 19, 2015 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 Link to comment https://wrobot.eu/forums/topic/1891-macro-on-profile/#findComment-9242 Share on other sites More sharing options...
luizkim 20 Posted January 20, 2015 Author Share Posted January 20, 2015 Work now... Tks... fragik 1 Link to comment https://wrobot.eu/forums/topic/1891-macro-on-profile/#findComment-9253 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now