Hi all,
I’ve spent the last month getting familiar with the osbot api. Over the time I have collected some questions and it would be great to get some insight from the scripters over here ;d.
Often when I build the jar I am unable to do so because the current jar is in memory, even when no script is running. Clicking refresh doesn’t help either. The only solution is to restart the client. This is costing me a lot of time and I cannot figure out why it is happening. Does anyone have a solution to this problem?
Sometimes the .closest method doesn’t return the actually closest object because of some obstacle in the way. I remember someone posted a presumably better .closest method. I am however unable to find it. Is there someone that knows what im talking about / someone that implemented it themselves?
I want to be able to execute actions (eg alching/fletching/logging out) whilst webwalking. Initially I tried doing this by setting a breakcondition, which works okay sometimes, but often it takes a very large amount of time (5 sec +) before the webwalking stops after my breakcond is true, also, even it the breakcond were to behave as expected it wouldn’t be optimal because i’d be spamcreating webwalkevents which isn’t very efficient. The current solution I have in mind is seeing if there is some sort of webwalking thread that I could pause/stop and then resume after completing my own action. Another solution could be looking at the eventqueue and perhaps manipulating that to add my own events between the webwalk click events. Since i’m not so familiar with the api yet, it would be great to get some suggestions on this matter.
I noticed that some teleports are not being used yet by the webwalker, is there a way I could manually add eg Necklace of Passage to the list.
Cheers