Jump to content

Don't move after pull


Bastilla
 Share

Recommended Posts

Set range to 30 yards. Then set some condition for your range to be at 5 yards if you need to melee later. 
If you never need to melee, just keep the range at 30 or 35.

Link to comment
Share on other sites

Hey Matenia,

thanks for your answer. I have no idea how i can set range to 30 yards. I try a loop when target.disctance >= 5 then Thread.Sleep(20) but also my char move.

Regards

Link to comment
Share on other sites

maybe something like this?

    private bool rangedPull;
    public float Range
    {
        get
        {
            if (!Fight.InFight && ObjectManager.GetWoWUnitHostile().Count(u => u.Position.DistanceTo(ObjectManager.Target.Position) <= 30 && u.IsAttackable) > 1) // if there is more than one mob within 30 yards of the your target's position
            {
                rangedPull = true;
                return 29f;
            }
            else
            {
                rangedPull = false;
                return 5f;
            }
        }
    }

To note, that will only stay at range while out of fight because if the mob you're attacking is a caster, you'll want to run to it. You can of course edit that and add more logic

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...