Bear T.O.E. 63 Posted July 28, 2014 Share Posted July 28, 2014 Ok so I'm trying to figure out how to do this in a LUA Script. /cast Summon Black Ox Statue /tar Summon Black Ox Statue /cast Provoke /targetlasttarget This macro is what Im trying to do with LUA Scripting. And I have no idea how to start this off cause of the Targeting stuff..... HELP!!!! Link to comment https://wrobot.eu/forums/topic/1522-brewmaster-statue-help/ Share on other sites More sharing options...
Droidz 2738 Posted July 28, 2014 Share Posted July 28, 2014 Hello, You can use http://www.wowwiki.com/API_RunMacroText: RunMacroText("/cast Summon Black Ox Statue") RunMacroText("/tar Summon Black Ox Statue") RunMacroText("/cast Provoke") RunMacroText("/targetlasttarget") Or use full lua code: CastSpellByName("Summon Black Ox Statue") RunMacroText("/tar Summon Black Ox Statue") CastSpellByName("Provoke") TargetLastTarget() ps: I think you need to use RunMacroText("/tar Black Ox Statue") not RunMacroText("/tar Summon Black Ox Statue") Link to comment https://wrobot.eu/forums/topic/1522-brewmaster-statue-help/#findComment-7857 Share on other sites More sharing options...
Bear T.O.E. 63 Posted July 29, 2014 Author Share Posted July 29, 2014 Right now I am running this code in my Fight Class. But Im looking to reduce the amount of actual stings the fight class is to execute so that the fight class will react faster to maximize the rotation and DPS. I have found that to many items in the fight classes move list will slow down the characters reaction time on health based or other power based moves that need to be cast out side the rotation. So reducing the number of strings in the list is more effective to the total DPS of healing done. That is how I have been making my good and okay fight classes that I have released. Hence why Im wanting to make a LUA Script to have this done in one more on the fight classes list of moves to fire. <FightClassSpell> <SpellName>Summon Black OX Statue</SpellName> <FightClassConditions> <FightClassCondition> <ContionType>IsSpellUsable</ContionType> <Param xsi:type="FightClassConditionStringBool"> <Name>Summon Black OX Statue</Name> <Need>true</Need> </Param> </FightClassCondition> <FightClassCondition> <ContionType>TargetDistance</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>SmallerOrEqual</Type> <Value>40</Value> </Param> </FightClassCondition> <FightClassCondition> <ContionType>HaveTarget</ContionType> <Param xsi:type="FightClassConditionBool"> <Value>true</Value> </Param> </FightClassCondition> <FightClassCondition> <ContionType>HostileUnitNear</ContionType> <Param xsi:type="FightClassConditionUnitNear"> <Number>1</Number> <Type>SmallerOrEqual</Type> <Radius>8</Radius> </Param> </FightClassCondition> </FightClassConditions> <Priority>34</Priority> <Timer>30000</Timer> <AOESpell>true</AOESpell> </FightClassSpell> <FightClassSpell> <SpellName>RunMacroText("/tar Black Ox Statue")</SpellName> <FightClassConditions> <FightClassCondition> <ContionType>HostileUnitNear</ContionType> <Param xsi:type="FightClassConditionUnitNear"> <Number>1</Number> <Type>SmallerOrEqual</Type> <Radius>8</Radius> </Param> </FightClassCondition> </FightClassConditions> <Priority>33</Priority> <Timer>30000</Timer> </FightClassSpell> <FightClassSpell> <SpellName>Provoke</SpellName> <FightClassConditions> <FightClassCondition> <ContionType>TargetDistance</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>SmallerOrEqual</Type> <Value>40</Value> </Param> </FightClassCondition> </FightClassConditions> <Priority>32</Priority> <Timer>30000</Timer> </FightClassSpell> <FightClassSpell> <SpellName>RunMacroText("/targetlasttarget")</SpellName> <FightClassConditions> <FightClassCondition> <ContionType>HaveTarget</ContionType> <Param xsi:type="FightClassConditionBool"> <Value>true</Value> </Param> </FightClassCondition> <FightClassCondition> <ContionType>TargetDistance</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>SmallerOrEqual</Type> <Value>40</Value> </Param> </FightClassCondition> </FightClassConditions> <Priority>31</Priority> <Timer>30000</Timer> </FightClassSpell> Link to comment https://wrobot.eu/forums/topic/1522-brewmaster-statue-help/#findComment-7867 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