Jump to content
  • I have Pet Question about DK's.... And a Suggestion.


    Bear T.O.E.
    • Product: WRobot General Type: Bug Status: Fixed

    ok Droidz here is the question. When in Blood or Frost Spec and you call up your ghoul with Raise Dead will this Macro work to make them claw more frequently?

    /cast [target=pettarget,harm,nodead][] Claw

    And if so can you add the ghoul to the condition Have Pet. So we can Have the ghoul Claw More using this macro?

    RunMacroText("/cast [target=pettarget,harm,nodead][] Claw")

    Condition: Have Pet



    User Feedback

    Recommended Comments

    Droidz

    Posted

    Hello,

     

    You can just put your macro RunMacroText("/cast [target=pettarget,harm,nodead][] Claw") in spell name, activate option "Not spell, is lua script" and add "Timer".

     

    Or try this sample (I haven't tested) (I have added lua condition IsPetAttackActive()) (I have set up the "Timer" at 2 secondes): http://pastebin.com/stQ3Hkem

    Bear T.O.E.

    Posted

    Where do I put this code??? Cause I would like to test this for you and get back you if it works. I mean do I place the code in the LUA Script condition?

    Droidz

    Posted

    Copy/Past this code in notepad, save the file to XML and you can open it with fightclass editor to look how this works.

    Bear T.O.E.

    Posted

    no I mean to add the file to my fight class itself. An when is the new condition coming out?

    Droidz

    Posted

    Add after "<FightClassSpells>" this code:

        <FightClassSpell>
          <SpellName>RunMacroText("/cast [target=pettarget,harm,nodead][] Claw")</SpellName>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>LuaScript</ContionType>
              <Param xsi:type="FightClassConditionLua">
                <LuaScript>attackStatus = IsPetAttackActive()</LuaScript>
                <VarRet>attackStatus</VarRet>
                <ValueRet>true</ValueRet>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <Priority>1</Priority>
          <Timer>2000</Timer>
          <NotSpellIsLuaScript>true</NotSpellIsLuaScript>
          <CanMoveDuringCast>Yes</CanMoveDuringCast>
        </FightClassSpell>
    
    Droidz

    Posted

    Like this:

    if (UnitPower("pet" , SPELL_POWER_ENERGY) > 30) then
          RunMacroText("/cast [target=pettarget,harm,nodead][] Claw")
    end
    


    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...