February 28, 201412 yr Use Stealth if hostile 30 Yards away but only in pvp or solo <FightClassSpell> <SpellName>Stealth</SpellName> <FightClassConditions> <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> --[[ PvP or solo AND No Casting and Stealth off and ready ? ]] local idStealth=1784 local start, duration, enabled = GetSpellCooldown(idStealth); result=((UnitIsPVP("player") or (UnitInParty("player")==nil)) and (duration==0) and (enabled==1) and not (UnitCastingInfo("player")) and not (UnitChannelInfo("player"))) </LuaScript> <VarRet>result</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> <FightClassCondition> <ContionType>MeInCombat</ContionType> <Param xsi:type="FightClassConditionBool" /> </FightClassCondition> <FightClassCondition> <ContionType>MeIsFlying</ContionType> <Param xsi:type="FightClassConditionBool" /> </FightClassCondition> </FightClassConditions> <Priority>11</Priority> <CombatOnly>false</CombatOnly> <CheckIfKnowUsableDistance>false</CheckIfKnowUsableDistance> <CheckIfView>false</CheckIfView> <AddToSettings>true</AddToSettings> <DescriptionSpell>Stealth. If hostile 30 Yards away. only pvp or solo</DescriptionSpell> </FightClassSpell> based on WoW 5.4.2.
December 2, 201411 yr This is not working for me. I get this in debug mode [D] 18:37:57 - Stealth (Stealth. If hostile 30 Yards away. only pvp or solo) - NeedToRun = false - condition [D] 18:37:57 - Stealth (Stealth. If hostile 30 Yards away. only pvp or solo) - NeedToRun time to execute: 0 [D] 18:37:58 - Stealth (Stealth. If hostile 30 Yards away. only pvp or solo) - NeedToRun = false - condition [D] 18:37:58 - Stealth (Stealth. If hostile 30 Yards away. only pvp or solo) - NeedToRun ....
Create an account or sign in to comment