-
Posts
1664 -
Joined
-
Last visited
-
Days Won
4 -
Feedback
100%
Everything posted by Bobrocket
-
[BUYING] US Amazon Gift Card (BTC Only)
Bobrocket replied to Asiirr's topic in Other & Membership Codes
OP is asking for illegal cards (cards gotten via refunding and replacing on Amazon) which is fraud. Just a friendly reminder -
can you make my parents love me
-
hi guys can someone tell me why osbot is down i was trying to watch a really really good gay porno but then my bot stopped working?? Cheerio, Mr. Rental
-
Do the scripter(s) a favour and tell them. You can either have broken premium scripts or fixed premium scripts.
-
my fave
-
looks perfect for someone with twc
-
maldesto is a good admin
-
The concept is indeed good, I cover something similar in a thread back eons ago. The execution is a bit off, however, as you can still perfectly model to a sine curve. If you add some randomness, noise etc (as well as distributional statistics!) it will look a lot more realistic as you can have a "curve of best fit" as it were just like a human.
-
Yeah, but I can still model your reaction times perfectly to a sine graph. Get some noise up in this biatch
-
public LinkedList<String> getDepositExceptions() { LinkedList<String> neededItems = new LinkedList<String>(); if (Config.enableAttPot){ neededItems.add("Attack potion(4)"); } if (Config.enableStrPot){ neededItems.add("Strength potion(4)"); } if (Config.enableSupAttPot){ neededItems.add("Super attack(4)"); } if (Config.enableSupStrPot){ neededItems.add("Super strength(4)"); } if (Config.enableCombatPot){ neededItems.add("Combat potion(4)"); } neededItems.add("Lobster"); return neededItems; } This can be optimised in many ways. Running this is going to be more expensive than something like this: public enum Supplies { LOBSTER("Lobster", 15), ATTACK_POT("Attack potion(4)", 1), ; private String name; private int amt; Supplies(String name, int amt) { this.name = name; this.amt = amt; } public int getAmount() { return amt; } public String getName() { return name; } } //on start private List<Supplies> supplyList = new ArrayList<>(); if (Config.isAttackEnabled) supplyList.add(Supplies.ATTACK_POT); //... Then you can do something like: //bank for (Item item : getInventory().getItems()) { for (Supplies supply : supplyList) if (!supply.getName().equalsIgnoreCase(item.getName())) item.interact("Deposit-All"); } You could have a functional interface in your enum and have a static populate(Script) method, kinda looking like: public interface Functional<T> { public boolean perform(T param); } //enum LOBSTER("Lobster", 15, (script) -> true), ATTACK_POT("Attack potion(4)", 1, (script) -> Config.isAttackEnabled), COINS("Coins", 10, (script) -> script.getInventory().getAmount("Coins") < 10), //al kharid gate? ; private String name; private int amt; private Functional<Script> condition; public Functional<Script> getCondition() { return condition; } public static List<Supplies> populate(Script instance) { List<Supplies> vals = new ArrayList<>(); for (Supplies supply : values()) if (supply.getCondition().perform(instance)) vals.add(supply); return vals; } List<Supplies> supplyList = Supplies.populate(this); Obviously, running these conditions at the start would mean that they wouldn't run again (unless you did populate(Script) again), but it's a nice little way to try and keep things a little organised.
-
im dying of laughter... credit to pain for linking
Bobrocket replied to The Hero of Time's topic in Spam/Off Topic
her voice reminds me of this youtuber chick i matched with on tinder i hate it -
muffins4twc
-
How to determine if interaction was successful
Bobrocket replied to iJodix's topic in Scripting Help
Another idea might simply be to check if the mouse is within a slightly shrunken bounding box. -
it'll actually run better because java was made for server/client applications and graphics in java are incredibly shitty c++ has a million native and external libs for graphics and utilising gfx card properly etc
-
Use getters where appropriate npcs //... getNpcs() //... Don't abuse public/static, only when necessary - variables should be private (with setters and getters if needed), to prevent any possible problems.
-
implying i had sales to begin with you orc faced shit slug
-
anne i matched w/ someone on tinder that looks like u but then she unmatched me was that u
-
super like material* mald scared of liking because his waifu will slam dunk him for it
-
ur the tinderbox to my log
-
Correct. This is the use of a heuristic. To know the actual lengths, you'd need to pathfind every node. However, a heuristic uses a lot less resources and is typically accurate. (In the case of OSRS, can be very very bad due to dungeon layout like you said)