Everything posted by Polymorphism
-
Store#sell() hanging when selling items x1
Im thinking its the api itself. Got stuck buying item3 with 1 left to sell http://i.imgur.com/eIXQ9mC.png [INFO][Bot #1][03/17 12:33:22 PM]: Selling 5x item1 [INFO][Bot #1][03/17 12:33:23 PM]: Done sleeping.. [INFO][Bot #1][03/17 12:33:23 PM]: Out of contains [INFO][Bot #1][03/17 12:33:23 PM]: Selling 3x item2 [INFO][Bot #1][03/17 12:33:26 PM]: Done sleeping.. [INFO][Bot #1][03/17 12:33:26 PM]: Out of contains [INFO][Bot #1][03/17 12:33:26 PM]: Selling 3x item3
-
Store#sell() hanging when selling items x1
Thats the thing, no errors, no visible issues in the code. It just stops in the middle of the selling process. Which should be on the api side since store.sell("item", 4) is whats hanging.
-
Make it easier to find the forum rules..
I support the hell out of this!
-
Store#sell() hanging when selling items x1
In my script I sell a variety of items to a store, sometimes its 5 exactly, but if not then the script will sell until store stock is 5. It does fine usually until it hits a random bump in the road. It seems that sometimes (usually when having to sell x4 items) it'll hang after selling 2-3 and just sit there. I don't think there is anything crazy about the code, but if anyone has suggestions, please lmk. I need this help http://i.imgur.com/w4hHj9c.png Edit: Image link since embed didn't work.
-
item.getName().startsWith("Stamina potion") - Find in order of dose
Dang gonna confuse the man with all that Java 8 lol.
-
item.getName().startsWith("Stamina potion") - Find in order of dose
Try using a comparator to re-order an array of the possible potion names. String[] staminaPots= { "stamina (4)", "stamina (3)", etc }; Arrays.asList(staminaPots).stream().sorted((s1, s2) -> s1.compareTo(s2)) //sorts the potions using natural order i believe Then withdraw the first element of the list if it's not null and bank contains, etc.
-
Why is this causing my onLoop to return?
nvfm,i didnt initialize it apparently. sp it was null but not throwing npe
-
Why is this causing my onLoop to return?
My statements and debug messages are just fine. Also those ghetto debug messages are not nested inside logic statements, just onLoop() -> try-catch
-
Why is this causing my onLoop to return?
Not really sure whats going on, but after I added this snippet the onLoop kept returning and never running my Tasks. It never makes it to 3 in the logger but also never logs "inside" Note: Don't mention the shitty code in this snippet, it's not live, just a hackjob feature I needed for a spot I was at and didn't matter if the interactiong actually succeeded as the player would idle out anyways. Note 2: I'm not even using that feature and have ensured that stopLootName is empty.
-
Lost my virginity today
The clickbait title is so real and I love it. I wish there was a sequel to desert treasure, not gonna lie. Like maybe something where you are sided with Azzandra and have to fight off the gods Zamorak and Saradomin because they've come to destroy the world since Azzandra has been freed. Idk, a master quest where you fight the gods with a god by your side would be pretty cool.
-
Lost my virginity today
I could imagine those accs are difficult to do it on. @trek, thank you
-
Lost my virginity today
My Desert Treasure virginity. Nearly 13 years playing RS and never had done it until today (even on rs3). I thought it was pretty easy, just long as hell.
-
What are some simple tips you would give to a beginner, but eager scripter to help improve their scripting quality?
No, you almost never have to use loops. It's easy to get stuck in a loop and your script hang (or even hang the whole client for that matter). This was the dumbest post possible.
-
What are some simple tips you would give to a beginner, but eager scripter to help improve their scripting quality?
For scripting definitely, don't nest too many if-statements so that you're having redundant code. and package properly.
-
Molly's Thiever
Hey Molly, may i have a trial please. Looking to buy a thieving script but not sure which one yet.
-
Perfect Thiever AIO
May i get a trial please. I am contemplating buying a thieving script, just not sure which one yet.
-
How to pickup an item in bank when I hit a certain level?
Start by utilizing the boolean return on those method calls, this will make your script run smoother. if(!bankArea.contains(myPlayer()) webwalk(bankArea) if(!bank.isOpen())bank.open(); Even using dynamic sleeps is useful too if(bank.isOpen()){ if(inventory.contains("logs")){ if(bank.depositAll(item -> item.getName().contains("logs"))){ new ConditionalSleep(4500, 500){ //timeout, recheck so 4500ms is max sleep, check condition every 500ms //condition method goes here. Returns boolean, if return true the sleeping will stop, if false it will continue to sleep until timeout }.sleep(); } } Line 64, Item-> Item.getName()... Change the lambda variable to something like depositAll(it->i.getName().toLowerCase().contains("logs"). You're using a type as a variable name, but shouldn't be the issue. Read this http://stackoverflow.com/questions/1445233/is-it-possible-to-solve-the-a-generic-array-of-t-is-created-for-a-varargs-param
-
AIO Construction
Here is a 1hr prog, it killed almost 2k planks pretty quick.
-
AIO Construction
Thank you Can you add that to the OP for other people who may not know
-
AIO Construction
On progressive mode how does the script decide what to do next? Does it just do the highest thing it can?
-
Post your favourite RSMV (:
- Genie interaction snippet
- Genie interaction snippet
Pseudocode ftw.- walking event help
Try some debugging such as log the EventStatus. But still, why not webwalker?- walking event help
How long does it click underneath the player? Does it continue on the path eventually? How often does it do it? Also, why not just use the built in webWalker walking.webWalk(Area area) - Genie interaction snippet