Jump to content

Don't move after pull


Recommended Posts

Hello,

i want to write my own C# class. Now i want to pull Moofire and after pull that my char don't move till target is in melee range. Is this possible?

Ragards

Link to comment
Share on other sites

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

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