-
Posts
1664 -
Joined
-
Last visited
-
Days Won
4 -
Feedback
100%
Posts posted by Bobrocket
-
-
i do service on dmm you tell me what you need and i do i am doing 2 Dt orders right now with prequesting
can you make my parents love me
-
2
-
-
i died
-
8
-
-
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
-
2
-
-
Do the scripter(s) a favour and tell them. You can either have broken premium scripts or fixed premium scripts.
-
1
-
-
-
hmu
-
looks perfect for someone with twc
-
1
-
-
maldesto is a good admin
-
1
-
-
Im still not 100% sure if it would impact ban rates in any way
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.
-
1
-
-
Yeah, but I can still model your reaction times perfectly to a sine graph.
Get some noise up in this biatch
-
1
-
-
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.
-
1
-
-
her voice reminds me of this youtuber chick i matched with on tinder
i hate it
-
muffins4twc
-
5
-
-
Back where you belong, scripter I
-
Never mind guys, i used CrossHairColor.NONE and it seems to be do it job well, so i guess NONE is meant to be used for situations like this.
Another idea might simply be to check if the mouse is within a slightly shrunken bounding box.
-
wish you didnt exist
-
Yeah my laptop will crash when I press login
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.
-
4
-
-
RIP SALES
implying i had sales to begin with you orc faced shit slug
-
2
-
-
8/8
anne i matched w/ someone on tinder that looks like u but then she unmatched me was that u
-
Sexy af.
super like material*
mald scared of liking because his waifu will slam dunk him for it
-
(this actually me irl)
-
4
-
-
ur the tinderbox to my log
-
5
-
-
This is not correct though, as the distance between two positions is not the same as walking distance.
Therefore it can easily return a bank that is further away, as it is closer, but the route is longer.
Also if you are in a dungeon it will return an incorrect bank due to the way the map is laid out.
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)
-
1
-
[BUYING] US Amazon Gift Card (BTC Only)
in Other & Membership Codes
Posted
OP is asking for illegal cards (cards gotten via refunding and replacing on Amazon) which is fraud. Just a friendly reminder![<3](https://osbot.org/forum/uploads/emoticons/new_QwPha8E.png)