Closed Oreoezi closed 2 years ago
await bot.clickWindow hangs. Possibly hypixel sends incorrect packets.
await bot.clickWindow
await bot.clickWindow(33, 0, 0); await bot.clickWindow(31, 0, 0);
Slots 33 and 31 getting clicked and the script continuing as normal.
Without awaiting you are clicking too fast allowing only the first one to register so I had to make a promise
await new Promise((res,rej) => setTimeout(res, 500));
which would be inconsistent on a laggy connection.
This is perhaps because a server plugin does not send the chest-confirmation. Take a look at this example.
Thank you
Versions
Detailed description of a problem
await bot.clickWindow
hangs. Possibly hypixel sends incorrect packets.Your current code
Expected behavior
Slots 33 and 31 getting clicked and the script continuing as normal.
Additional context
Without awaiting you are clicking too fast allowing only the first one to register so I had to make a promise
which would be inconsistent on a laggy connection.