Jump to content
  • IsSpellUsable buggy ?


    Bugreporter
    • Product: WRobot General Type: Bug Status: Fixed

    I'va add the following sequennce to my Combat Rogue Profile. Without "IsSpellUsable" it works fine, but spams Stealth, if it is not ready. With "IsSpellUsable" it do nothing ?!?

    (the buildin CheckIfKnowUsableDistance I couldnt use, because stealth doessn't need a target)

        <FightClassSpell>
          <SpellName>Stealth</SpellName>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>Buff</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Stealth</Name>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>HostileUnitNear</ContionType>
              <Param xsi:type="FightClassConditionUnitNear">
                <Type>Bigger</Type>
                <Radius>30</Radius>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>LuaScript</ContionType>
              <Param xsi:type="FightClassConditionLua">
                <LuaScript>if UnitIsPVP("player") or (UnitInParty("player")==nil) then retV=1; end</LuaScript>
                <VarRet>retV</VarRet>
                <ValueRet>1</ValueRet>
              </Param>
            </FightClassCondition>
            <FightClassCondition>
              <ContionType>IsSpellUsable</ContionType>
              <Param xsi:type="FightClassConditionStringBool">
                <Name>Stealth</Name>
                <Need>true</Need>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <Priority>6</Priority>
          <CombatOnly>false</CombatOnly>
          <CheckIfKnowUsableDistance>false</CheckIfKnowUsableDistance>
          <CheckIfView>false</CheckIfView>
          <DescriptionSpell>Stealth if hostile 30 Yards away. only pvp or solo</DescriptionSpell>
        </FightClassSpell>
    
    



    User Feedback

    Recommended Comments

    Bugreporter

    Posted

    start, duration, enabled = GetSpellCooldown(1784);  work

    start, duration, enabled = GetSpellCooldown("Stealth");  failed

     

    so it is a problem with the name. 

    Bugreporter

    Posted

    isSpellUseable works with ID to. testet with 36554 (shadowstep). name doesnt work,

    Droidz

    Posted

    In your log what ID found WRobot for the spell Stealth ?

    Droidz

    Posted

    Hello,

     

    Wait next update, I have fixed problem (your settings is good).



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