May 9, 20187 yr 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
May 9, 20187 yr 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.
May 10, 20187 yr Author 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
May 11, 20187 yr 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
Create an account or sign in to comment