Bugreporter 93 Posted February 28, 2014 Share Posted February 28, 2014 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. Droidz 1 Link to comment https://wrobot.eu/forums/topic/1219-stealth-a-solution/ Share on other sites More sharing options...
zadman 1 Posted December 2, 2014 Share Posted December 2, 2014 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 .... Link to comment https://wrobot.eu/forums/topic/1219-stealth-a-solution/#findComment-8836 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