Hi!
I am new to this forum and new to scripting. I am in scripting progress and I came with an issue where I am stuck. Usually I just google for answers but now even google can't help me.
I am trying to make my bot to talk with NPC but it just gets stuck after it presses space when it just starts talking. And it looks like that script is going through all lines as it returns all log
here is my part of script I am having issues with.
if (widgets.get(231, 2) != null) {
log("vin1");
if (!widgets.get(231, 2).isHidden()) {
log("vin2");
keyboard.pressKey(KeyEvent.VK_SPACE);
sleep(random(1000, 2000));
log("vin3");
keyboard.pressKey(KeyEvent.VK_NUMPAD2);
sleep(random(50, 150));
log("vin4");
keyboard.pressKey(KeyEvent.VK_SPACE);
sleep(random(50, 150));
log("vin5");
keyboard.pressKey(KeyEvent.VK_SPACE);
sleep(random(50, 150));
log("vin6");
keyboard.pressKey(KeyEvent.VK_NUMPAD1);
sleep(random(50, 150));
log("vin7");
keyboard.pressKey(KeyEvent.VK_SPACE);
sleep(random(50, 150));
log("vin8");
Col = 0;
log("vin9");
sleep (random(200, 400));
}
}
Thanks in advance!