Photogenic 24 Posted July 28, 2017 Share Posted July 28, 2017 Hello, Is it possible to add condition to tell the difference between HOSTILE and FRIENDLY Targets? One of the main reasons is because the bot recognizes mobs by ID... Now when I leave the bot in an area and a hunter comes by with a Tamed pet from same area, the bot targets his pet and chase it around trying to kill it, even tho its friendly target. I think this condition can do wonders.. Thanks, Link to comment https://wrobot.eu/forums/topic/6617-difference-between-friendly-and-hostile-targets-condition/ Share on other sites More sharing options...
Droidz 2738 Posted July 28, 2017 Share Posted July 28, 2017 Hello, use wManager.Wow.ObjectManager.ObjectManager.Target.Reaction == wManager.Wow.Enums.Reaction.Hostile Hated, Hostile, Unfriendly, Neutral, Friendly, Honored, Revered, Exalted, or lua: http://wowprogramming.com/docs/api/UnitReaction Pudge 1 Link to comment https://wrobot.eu/forums/topic/6617-difference-between-friendly-and-hostile-targets-condition/#findComment-29997 Share on other sites More sharing options...
Photogenic 24 Posted July 28, 2017 Author Share Posted July 28, 2017 41 minutes ago, Droidz said: Hello, use wManager.Wow.ObjectManager.ObjectManager.Target.Reaction == wManager.Wow.Enums.Reaction.Hostile Hated, Hostile, Unfriendly, Neutral, Friendly, Honored, Revered, Exalted, or lua: http://wowprogramming.com/docs/api/UnitReaction I am using Fightclass Creator and thats the only knowledge I have. I assume I should use lua script condition and use your 2nd Method! Except, I don't know how to write the script.. I am zero knowledge with coding/scripts. Link to comment https://wrobot.eu/forums/topic/6617-difference-between-friendly-and-hostile-targets-condition/#findComment-30000 Share on other sites More sharing options...
Photogenic 24 Posted August 3, 2017 Author Share Posted August 3, 2017 How do I use this ? I want my bot to "Cast" heal when target is "Friendly." Now the bot apply target health percent based on enemy sometimes, not based on friendly target. Also, it swap target really fast between enemy and friendly, then end up casting heal onself instead. Even though I have unchecked " Auto self cast." I am just trying to find a way so that bot will heal more accurate. Link to comment https://wrobot.eu/forums/topic/6617-difference-between-friendly-and-hostile-targets-condition/#findComment-30303 Share on other sites More sharing options...
Photogenic 24 Posted August 13, 2017 Author Share Posted August 13, 2017 When I use this with C sharp, it give me errors on Wrobot... Link to comment https://wrobot.eu/forums/topic/6617-difference-between-friendly-and-hostile-targets-condition/#findComment-30714 Share on other sites More sharing options...
reapler 154 Posted August 14, 2017 Share Posted August 14, 2017 59 minutes ago, lonellywolf said: When I use this with C sharp, it give me errors on Wrobot... Hello, i've created a small example how to use the c# code: heal.xml Because reactions are ordered you can use it like this: wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.Reaction > Reaction.Neutral Pudge and Photogenic 1 1 Link to comment https://wrobot.eu/forums/topic/6617-difference-between-friendly-and-hostile-targets-condition/#findComment-30716 Share on other sites More sharing options...
Photogenic 24 Posted August 17, 2017 Author Share Posted August 17, 2017 On 8/13/2017 at 7:57 PM, reapler said: Hello, i've created a small example how to use the c# code: heal.xml Because reactions are ordered you can use it like this: wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.Reaction > Reaction.Neutral /Salute. Thank you so much, Sir! Link to comment https://wrobot.eu/forums/topic/6617-difference-between-friendly-and-hostile-targets-condition/#findComment-30822 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