Jump to content

Recommended Posts

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,

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

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.

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.

  • 2 weeks later...
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

 

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!

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