Azalina 1 Posted April 1, 2018 Share Posted April 1, 2018 Please tell me the correct sample code for vanilla . ln Lich King on Draenor, and I used this . <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>TargetHealthPercent</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>Smaller</Type> <Value>85</Value> </Param> </FightClassCondition> <FightClassCondition> <ContionType>Buff</ContionType> <Param xsi:type="FightClassConditionStringBool"> <Name>Renew</Name> </Param> </FightClassCondition> <FightClassCondition> <ContionType>TargetDistance</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>Smaller</Type> <Value>30</Value> </Param> </FightClassCondition> </FightClassConditions> <SpellName>Renew</SpellName> <Priority>32</Priority> <IsBuff>true</IsBuff> <AddToSettings>true</AddToSettings> <AddToSettingsActiveByDefault>true</AddToSettingsActiveByDefault> <AddToSettingsName>Renew Party 1 </AddToSettingsName> <TargetFriends>true</TargetFriends> <DescriptionSpell>Renew Party 1 </DescriptionSpell> <CastOn>party1</CastOn> </FightClassSpell> The use of this code - the character heals himself and not the attacked member of the party <CastOn>target</CastOn> and <CastOn>none</CastOn> also do not work. Link to comment Share on other sites More sharing options...
headcrab 32 Posted April 1, 2018 Share Posted April 1, 2018 Try to switch setting "For friends (party)", maybe will help Edit: i see you did it. So, this setting not help, and you have to write some C# code Link to comment Share on other sites More sharing options...
headcrab 32 Posted April 1, 2018 Share Posted April 1, 2018 You can try LUA spell like this: CastSpellByName("Renew","target") Link to comment Share on other sites More sharing options...
Azalina 1 Posted April 1, 2018 Author Share Posted April 1, 2018 3 hours ago, headcrab said: Try to switch setting "For friends (party)", maybe will help This is ? <TargetFriends>true</TargetFriends> Strangely what in all other add-ons of WoW stated above a fragment of a code works correctly. Means. There is no mistake in a code. And matter in the changed handler of a code. That is the Developer that I have brought that. Or what that I haven't completed in the bot. 2 hours ago, headcrab said: You can try LUA spell like this: CastSpellByName("Renew","target") it is convinced that it won't work. Because in a target at a bot the Enemy. But the bot sees a condition of the member of a party. And as soon as the conditions of application of a spell coincide... The bot applies a spell. Question. Where will a TREATMENT spell if in a target the ENEMY? Answer. In that who applies a spell. That is in. Not in the member of a party. Link to comment Share on other sites More sharing options...
Matenia 625 Posted April 3, 2018 Share Posted April 3, 2018 (edited) CastSpellByName("name", onSelf) is the function in vanilla. You would need to TargetUnit("party1"); CastSpellByName("name"); http://wowwiki.wikia.com/wiki/API_TargetUnit Edited April 3, 2018 by Matenia Link to comment Share on other sites More sharing options...
Azalina 1 Posted April 4, 2018 Author Share Posted April 4, 2018 Matenia thx Now i use this solution ( Droidz (c) remove lua condition replace "NAME_CAST" by "TRY LUA SCRIPT" <SpellName>ClearTarget(); TargetUnit("party1"); CastSpellByName("Обновление"); TargetLastEnemy();</SpellName> 1. remove lua condition 2. replace "NAME_CAST" by "TRY LUA SCRIPT" Link to comment 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