L2JMobius

C6 Confirm Dialog

sebahomsi · 1 · 87

Offline sebahomsi

  • Vassal
  • *
    • Posts: 3
I guys I have a problem with the Confirm Dialog..
I made the next code:

player.sendPacket(new ConfirmDlg("Want to buy?"));
               
buySetPart(player, part, type, pageNumber);

My problem is that no matter if I press Ok or Cancel the buySetPart function is executed. Moreover, it never stops executing, it does not wait for the result of the dialog. Could someone help me? Is there something I am doing wrong?