Everything posted by dreameo
-
Dream GE Firemaker
Only thing that could be considered slow is finding a path to FM. Everything else should be fair game.
-
Any way to "speed-up" my script?
Based off your script, it seems like the spell is selected while waiting which is good. What you can do next is make the cursor hover over the area where the wine gets spawned. On top of that, you could save the time when the wine was last available and then take that time + spawn rate time + 50 ms and just click in that area. (Try it, not sure how well it works) Edit: Look at my post for an explanation on conditional sleep https://osbot.org/forum/topic/142349-how-do-i-stopprevent-an-action/?tab=comments#comment-1659505
-
How do I stop/prevent an action?
You need to realize that most interactions are booleans. You need to take advantage of that. getInventory().interact("Use", "Green dragon leather") This should be an if statement where the code inside the block would be a conditional sleep. A conditional sleep looks like this: new ConditionalSleep(5000) { @Override public boolean condition() throws InterruptedException { return !getInventory().contains("Coins"); } }.sleep(); 5000 <-- Timeout threshold in ms If the condition: getInventory().contains("Coins") is not met, then after 5 seconds, your program continues executing. However if the condition is met, then the program continues to execute. You would want to use, 'return my player is animating'. There's a lot of random stuff that you're doing. If you want to continue writing gibberish go ahead, else read up on some beginner java or just programming in general. Basics overlap in all languages.
-
Get item id for item not in inventory
?
-
Get item id for item not in inventory
Meh, at least you got the decency to say that your gonna use it. It's meant to be public anyhow.
-
Get item id for item not in inventory
Here you can use this: https://pastebin.com/5TWTBqNh Usage would be: ItemData.get("Cannonball","ID") You can include another level of cache via map if you want but, the way it's now is fine. Other properties can also be retrieved, check inside the code.
-
How would i go about grabbing the value of items in my inventory?
Only problem with that is it will constantly' open and close the site' to read from. Most likely would notice some slowness.
-
Best way to test scripts
Testing each part is a great way to go. Good habit too.
-
Dream GE Firemaker
Hmm no. If anything, I could do an AIO FM that lets you FM anywhere (nothing anytime soon).
-
Why does it still open the bank anywhere? (Beginner)
Haha what's with all the newbies lately. Learn some basic Java first and then try to script. Not the other way around, it doesn't work to well regardless of the outcome.
-
Anyone tried inefficent extremely randomized scripts for long periods of botting?
"Anti-bans" are meant to mimic human interactions. Problem is, a lot of anti-ban is similar. However, human interactions vary greatly across different people. Perhaps the idea of "anti-ban" is fine however, how it's being implemented is poor. The idea is to create anti-ban that could resemble an instance of a person, instead of a few generic actions. Alek mentions not to play more then x amount of hours daily and y hours weekly but, many real players exceed those hours and aren't falsely banned. Their actions/interactions are being identified as a human. Jagex looks at a large number of factors and uses these (I believe) in neural networks. The NN decide if all the actions you've done is bot like or not. The longer you play, the more data it has and easier it's to make a decision.
-
How do I declare an NPC and interact with it?
you don't need the filter, just "Bank booth" is fine.
-
Dream GE Firemaker
https://imgur.com/a/R4nUFP7 Grats man!
-
Walk path not applicable argument?
Bruh you should look into some java tutorials. Then you would know that walkPath accepts a list of positions and not an array.
-
Exchanging Context null pointers
haha i only tried it once before and someone said extending it wont work.
-
Exchanging Context null pointers
He's getting a null pointer exception xD You can't extend MP. You need to keep an active reference of MP across all classes and then do exchangeContext. I believe this is the only way. extending MP would be great but don't think it can be done.
-
Pick up items above X gp
You should have 2 levels of cache. First one pulls all the prices and you store it in some data structure. The second one would be this ^. You don't want to make an x number of GET requests while botting.
-
Memory not being cleared correctly
Have you tried it outside of onStart? I read before the gc methods should be avoided? null referencing should be fine
-
canReach from position other than player.
hmm you can try this: create a webwalkevent and use setsourcepos(Position p) <-- I believe this sets the starting pos? then do prefretchreq on event and true/false should let you know if it's reachable.
-
Dream GE Firemaker
yes guys be careful, as soon as you hit start, you will get banned.
-
A Discussion on Anti-Pattern Techniques
whose mans this
-
A Discussion on Anti-Pattern Techniques
neural networks have been trained to decide a bot vs a person, this is why they've only been getting better - said from someone can't recall. ^ Makes sense though and is very realistic
-
Get Slayer Task
List<java.lang.String> getMessages(Chatbox.MessageType messageType) try that (chatbox class)
-
Coding speed - lines/hour
dis nonsense
-
Keeping track of a global variable
it's still the same idea.... void thisIsDumb(){ if(Main.badDesign){ ... } } If u wanna share, just use get/set(multiple class). If u wanna make something public static, make sure it's immutable. If it's just within the same class.. public anything will do l0l btw-- I c what u mean, i don messed up. But uh yea, no point having static if it's within the same class and if not then^