Everything posted by Botre
-
Listener
package _test; import java.util.Arrays; import org.osbot.rs07.api.model.Item; import org.osbot.rs07.api.util.ItemContainer; public class ContainerListener implements Runnable { private final ItemContainer container; private Item[] cache; private boolean changed; public ContainerListener(ItemContainer container) { this.container = container; } public void setCache() { cache = container.getItems(); changed = false; } @Override public void run() { changed = Arrays.equals(cache, container.getItems()); try { Thread.sleep(1200); } catch (InterruptedException e) { e.printStackTrace(); } } public boolean getChanged() { return changed; } } ContainerListener inventoryListener = new ContainerListener(getInventory()); This most likely won't work as it is, but might inspire you or something ^^
-
Simple Interval class
Both notations are accepted by the ISO 80000-2
-
Simple Interval class
I see what you mean, I could but I prefer the boolean specification because it mimics the mathematical notation for intervals. [ 1, 40 [ =
-
Simple Interval class
public class Interval { private final long firstEntry; private final long lastEntry; private final boolean includeFirstEntry; private final boolean includeLastEntry; public Interval(final boolean includeFirstEntry, final long firstEntry, final long lastEntry, final boolean includeLastEntry) { this.firstEntry = firstEntry; this.lastEntry = lastEntry; this.includeFirstEntry = includeFirstEntry; this.includeLastEntry = includeLastEntry; } public boolean contains(long n) { return (n == firstEntry && includeFirstEntry) || (n == lastEntry && includeLastEntry) || (n > firstEntry && n < lastEntry); } }
-
Listener
If you are going to compare inventories for equality, couldn't you just use these lines (at appropriate places of course,not stacked like this )? Item[] compareThis = getInventory().getItems(); Item[] withThis = getInventory().getItems(); boolean equaliThis = compareThis != null && withThis != null && Arrays.equals(compareThis , withThis);
-
HELLO :D this is jmh44
- HELLO :D this is jmh44
http://osbot.org/forum/topic/59949-a-poem-for-the-homeless-users-begging-for-vet/- HELLO :D this is jmh44
- Listener
Just curious, what exactly would it be listening for ? :|- Free Script
If you are asking if you can release a script for free on the SDN if there's already a paid alternative then the answer is yes ^^- Free Script
Could you reformulate that phrase? It's very hard to understand- This man can Drink.
3 2 1 Coma- npcs.closest lag
Depends on the amount of NPCs it has to iterate through.- A poem for the homeless users begging for vet
The missing o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o- A poem for the homeless users begging for vet
O Val I've seen all your curves Where it gets narrow Where it widens out O Val- Free script / snippet consulting service
Done !- A poem for the homeless users begging for vet
A nus My nus looks like a plus in a zero A sign-holding cipher Slowly getting wider Taking a dump Smiling at your post Grateful for the bump- A poem for the homeless users begging for vet
Plus rhymes with minus But you are still no hero For that expression to be sound You need a rhyme for zero + - 0 Plus Minus Zero That's Robert De Niro- A poem for the homeless users begging for vet
Crime is pest Plus and zero don't rhyme To not rhyme is crime Annoying at best- A poem for the homeless users begging for vet
No rhyme, no hero Plus doesn't rhyme with zero G T F O.- A poem for the homeless users begging for vet
Chum rhymes with cum And so does your mum Who thought I was cool Enough to be blue Da ba dee da ba drool Peace out little bee- A poem for the homeless users begging for vet
Wow hijack my thread Once more and you'll die Yes that was a threat I hope you shall cry.- A poem for the homeless users begging for vet
Sentende Pls The ende Pls- A poem for the homeless users begging for vet
The urine's from Alek That's how you got blue The piss of a black man Is how you passed through But it's fine, sorry about the tit.- A poem for the homeless users begging for vet
Yes blue for me You smell like pee And have one boob And suck at rhyming Whatever noob - HELLO :D this is jmh44