Jump to content

Recommended Posts

Hello, you can use lua code like: 

    public WoWAreaTrigger CorrectTile =>
    ObjectManager.GetObjectWoWAreaTrigger()
    .Where(u => u != null && u.IsValid && (u.SpellID == 219246 || u.SpellID == 219262))
    .OrderBy(u => u.Position.DistanceTo(ObjectManager.Me.Position))
    .FirstOrDefault();

    public void DoQuest()
    {
        if (!ObjectManager.Me.HaveBuff(219247)) return;

        var tile = CorrectTile;
        if (tile == null) return;
        var loc = tile.Position;

        if (loc.DistanceTo(ObjectManager.Me.Position) > 1.5)
        {
            MovementManager.MoveTo(loc);
        }
    }

http://www.wowhead.com/quest=43767/enigmatic )

 

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