Skip to content

MQ2Nav clicking certain Zone-Ports when within ~50 units #90

Closed

Description

@BDeakins

MQ2Nav will automatically click certain zone-doors if MQ2Nav is loaded and the player passes near.
Can repro issue in Brell's Rest and in Field of Scale (SoD) with Kurn's Tower.

Start at Brell's Temple zone-door and attempt to nav to Underquarry. You'll pass close to the Kernagir, The Shining City's zone-door (Port Object, whatever you want to call it).

You CANNOT nav past it without zoning into Kernagir. If you /nav out of Kernagir, you cannot continue on to Underquarry without rezoning into Kernagir on an endless loop.

Start at 592 42 180, and run this macro:

Sub Main

|- Brell's Rest
/echo We need to start near Brell's Temple door.
/while (${Zone.ShortName.Equal[brellsrest]}) {
    /echo Heading to \agThe Underquarry
    /call cancelLev
    /nav setopt log=debug
    /nav loc -1230 -675 -8
    /while (${Zone.ShortName.Equal[brellsrest]}) {
        /delay 5
    }
}

/while (${Zone.ShortName.Equal[shiningcity]}) {
    /echo How'd we end up here if MQ2Nav didn't click a door?
    /endm
}
/return

Sub cancelLev
    /if (!${Me.Levitating}) /return
    /declare intBuffSlot int local 1
    /declare intSDBuffSlot int local 1

    /for intBuffSlot 0 to 42
        /if (${Me.Buff[${intBuffSlot}].HasSPA[57]}) {
                /echo \ayRemoving buff #${intBuffSlot}: \am ${Me.Buff[${intBuffSlot}]}
            /removebuff "${Me.Buff[${intBuffSlot}]}"
            /delay 2s !${Me.Buff[${intBuffSlot}].ID}
        }
    /next intBuffSlot
    /for intSDBuffSlot 0 to 30
        /if (${Me.Song[${intSDBuffSlot}].HasSPA[57]})  {
                /echo \ayRemoving: \a-m ${Me.Song[${intBuffSlot}]}
            /removebuff "${Me.Song[${intSDBuffSlot}]}"
            /delay 2s !${Me.Song[${intBuffSlot}].ID}
        }
    /next intBuffSlot
    /deletevar intBuffSlot
    /deletevar intSDBuffSlot
/return

Activity

  1. changed the title [-]MQ2Nav clicking Zone-Ports when within ~50 units[/-] [+]MQ2Nav clicking certain Zone-Ports when within ~50 units[/+] on Sep 13, 2019
  2. brainiac commented on Sep 17, 2019

    @brainiac
    Owner

    Can you do the following for me:

    1. Open up the MQ2Nav tools window (/nav ui)
    2. Go to the Debug Tools window
    3. expand the door handler debug section
    4. Adjust the trigger distance to something small (smaller than your distance to the switch, so it doesn't click)
    5. stand near the switch that is being activated, and click Force enabled
    6. The switch should be at the top of the list. Note its id and name.
    7. Go up to Objects, and expand the section
    8. Expand door objects
    9. Look for the object with the matching id and name
    10. Expand the object and capture all the information in a screenshot and paste it here for me.
  3. BDeakins commented on Sep 17, 2019

    @BDeakins
    Author

    image

  4. self-assigned this
    on Sep 24, 2019
  5. added this to the MQ2Nav 1.3.2 milestone on Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpluginIssue pertains to the MQ2Nav plugin

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions