1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bug Menu.isOpen returns false when it is open

Discussion in 'Developer Support' started by Jhinn, Dec 26, 2016.

  1. Jhinn

    Joined:
    Jun 9, 2015
    Messages:
    3,646
    Likes Received:
    1,337
    @Cloud @SlashnHax
    When interacting with an NPC or object through right-clicking, it opens up a menu with options.

    Code (Text):
    1. if (altar.interact("Craft-rune")) {
    Visual result

    [​IMG]


    Menu.isOpen returns false, even though the menu is clearly open (as shown in the picture).

    Result:
    If the bot is unable to find the correct action (because of an unknown reason (clouse related I guess)), it'll open up the menu as shown above and idle.
    In this case, the altar is not visible anymore (because the menu is overlapping the entire object), so isVisible also returns false. Next loop it wants to interact with the object, but it is not visible. If the object is fairly small, it will never become visible again (even if you change camera angle). This does not happen every time. I can't reproduce the issue 100% of the time.

    Workaround:
    Manually move the mouse so the menu closes.
    Expected result
    Gyazo - 457afaa9a839c5ae52258b4acf207d61.gif
     

Share This Page

Loading...