Jump to content

Serious mistake bot - does not treat members of the party


Recommended Posts

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

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

Matenia thx

Now i use this solution ( Droidz (c)

  1.  remove lua condition 
  2. 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

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