Jump to content

Recommended Posts

            WoWPlayer resutarget = Party.GetParty().FirstOrDefault(p => !p.IsAlive && p.IsValid);
            if(resutarget != null)
            {
                // Target player
                Interact.InteractGameObject(resutarget.GetBaseAddress);

                // Use spell
                new Spell("SpellName").Launch(true);
            }

This should work but not tested.

4 minutes ago, iMod said:

            WoWPlayer resutarget = Party.GetParty().FirstOrDefault(p => !p.IsAlive && p.IsValid);
            if(resutarget != null)
            {
                // Target player
                Interact.InteractGameObject(resutarget.GetBaseAddress);

                // Use spell
                new Spell("SpellName").Launch(true);
            }

This should work but not tested.

Thanks ! will added it, but guess i cant really test if before legion :)

Just now, iMod said:

You should maybe add some more validations like "is target in range" or "is target visible" this is kinda just the basic

Yea ofc :)

 

just noticed that the bot dont really have a "check if party member is dead" option

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