Resolved ChatboxDialog.getOption(x).select() does not return true upon selection

Discussion in 'Developer Support' started by Party, May 29, 2016.

  1. Code (Javascript):
    1. if(comp.getText().equals("Yes") &&{
    2.             System.out.println("Selected");
    3.             nmz.needToSetDream(false);
    4. }
    Successfully selects the option but does not print Selected nor set needToSetDream to false. In all other cases, I've seen boolean interact() return true after it completes successfully, so why is this not the case for Chat interaction?
    --- Double Post Merged, May 29, 2016, Original Post Date: May 29, 2016 ---
    @Vaped @Arbiter @SlashnHax

  2. Best Answer:
    Post #7 by Cloud, Jun 1, 2016
  3. rs3 or osrs
  4. nmz(Nightmare zone) is only on OSRS. Purely speculation though
  5. OSRS
  6. Let me guess, the component doesn't change visibility and instead simply changes its text? Can you verify that? If it's the case, easy patch.
  7. Yeah the rest of the code snippet essentially just iterates through different chat options as they appear, if that's what you mean - idea is I want to change the value of a boolean only after the above option is selected.
  8. Should be fixed now, please confirm.

Share This Page