Photogenic 24 Posted May 12, 2020 Share Posted May 12, 2020 Hi, I want my bot to cast a spell based on 3 conditions. 1- Me in combat :false (the bot spams the spell in combat even with this condition set + I also changed spell (combat only:false)) 2- Target distance 3- Target level When I put condition 2 first, seems like it cancels condition 3. When I put condition 3 first, it cancels condition 2. That's based on what I observed. How can I make all conditions meet ? Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/ Share on other sites More sharing options...
Zer0 148 Posted May 12, 2020 Share Posted May 12, 2020 Can you share your code? Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/#findComment-58134 Share on other sites More sharing options...
Photogenic 24 Posted May 12, 2020 Author Share Posted May 12, 2020 4 minutes ago, Zer0 said: Can you share your code? Its not a code, its in profile creator. Just a simple spell to be casted under these conditions and it seems like 2 and 3 overriding/canceling one another Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/#findComment-58135 Share on other sites More sharing options...
Droidz 2738 Posted May 12, 2020 Share Posted May 12, 2020 Hello, can you create fightclass only with this spell and share it here Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/#findComment-58137 Share on other sites More sharing options...
Zer0 148 Posted May 12, 2020 Share Posted May 12, 2020 Oh, I never used the profile creator so I don't think I can help you. I think your question is pretty vague, and unless you show us exactly what you did, it's unlikely you get an answer. Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/#findComment-58138 Share on other sites More sharing options...
Matenia 628 Posted May 12, 2020 Share Posted May 12, 2020 InCombat in Fightclass editor is equal to Fight.InFight (I believe) you'll need to check C# code in your condition: ObjectManager.Me.InCombatWithFlagOnly ObjectManager.Me.InCombatFlagOnly // one of the two, I forgot which one is correct Conditions in the fightclass editor are all combined with an and operator. Different spells are combined with or operator. So your explanation doesn't make much sense. I suggest you take a look at MarsBar's tutorial on how to do it in C#, it makes it more readibly. faster and gives more options. Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/#findComment-58140 Share on other sites More sharing options...
Zer0 148 Posted May 12, 2020 Share Posted May 12, 2020 I don't know about ObjectManager.Me.InCombatWithFlagOnly ObjectManager.Me.InCombatFlagOnly is the way to go. Photogenic 1 Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/#findComment-58142 Share on other sites More sharing options...
Photogenic 24 Posted May 12, 2020 Author Share Posted May 12, 2020 21 minutes ago, Matenia said: InCombat in Fightclass editor is equal to Fight.InFight (I believe) you'll need to check C# code in your condition: ObjectManager.Me.InCombatWithFlagOnly ObjectManager.Me.InCombatFlagOnly // one of the two, I forgot which one is correct Conditions in the fightclass editor are all combined with an and operator. Different spells are combined with or operator. So your explanation doesn't make much sense. I suggest you take a look at MarsBar's tutorial on how to do it in C#, it makes it more readibly. faster and gives more options. I will take a look for sure! thanks Link to comment https://wrobot.eu/forums/topic/12143-conditions-in-xml/#findComment-58143 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