Hi!
I am very new to scripting, and my Java skills are below average to say the least, but I find myself enjoying it and it lets me actually spend time learning the language so I can one day get a job in it.
Anyway, I have an issue where my world hop function only lets my player hop once, and then never again. It tries, as the log says it is generating a new world to hop, but just gets stuck while doing it.
Osbot logs "[ERROR][Bot #1][03/02 12:33:41 PM]: Failed to scroll to world 508"
I wrote it in 3 different ways now, thinking its the way I write the hopping function, but since it always ends up getting my char stuck after the first hop, I kinda don't know where to look now.
Please don't mind my chaotic code, and if anybody can get through it and possibly find a bug I would be eternally grateful!
Btw there must be an issue with tradeWithUglugNar() function, as when I tried the script without it the player would hop constantly no problem.
worldHop() is being called in tradeWithUglugNar() function after stock amount check