Okay I see, I think this will actually make it easier to solve a bug in the R&J script I found yesterday.
Thanks for the example!
Out of interest, any idea how to order a stream with multiple values, based on a set of conditions?
I was writing a fishing script and I noticed that all bots all move at the same time to the same next spot when one vanishes (probably due to using the . closest API command).
I tried to better with a stream it but now it seems to go to the Object with the lowest x+y (coords).
Both seem to be easily detectable with some basic pattern recognition on Jagex's side.
I wanted to order the stream, and then remove the top n elements of the stream based on a distribution, such that it picks the closes spot with probability p(1), the second with p(2), etc
My issue is that I couldn't find a way to do this trivially, either ordering or discarding. I could put the stream (after filtering) into an array, then order, remove, check, etc... but these seem like things that you should be able to do with the inbuilt functionality of Java.
Yessir, I did a placement year last year (might be called a year in industry in the USA) where I basically ended up scripting in VBA 40 hours a week, and I have done a load of C, Maple, R and Matlab over the first half of my degree, although I'm nowhere near as good as I am with VBA.