-
Posts
2314 -
Joined
-
Last visited
-
Days Won
6 -
Feedback
100%
Everything posted by Explv
-
Nope, not currently possible
-
Incredible contribution Interesting...
-
So like the second one, but just the outline?
-
Wait, let's clarify this, you want the top image (green boxes), or the bottom one (red boxes) ?
-
There's a method in that class I linked named "boundingBoxtoScreen". Isn't that exactly what you need? Or at least a very slightly modified version of it..?
-
If all you need is the world to screen function / other similar functions, there are plenty of open source clients that you can just look at, or check RSPS forums. For example: https://github.com/Acuity/AcuityCore/blob/6cf2ebddfeccf04521b2599063bec266d930ec23/acuity-api/src/main/java/com/acuity/api/rs/utils/Projection.java
-
What exactly do you need? Just the world to screen function? I believe he is working on his own client
-
This is the post I was referring to: Can't be bothered to check if it meets your requirements. If you need complete sauce without hidden OSBot methods, you're better off going to an RSPS forum or something like that.
-
Pretty sure someone posted a snippet in the snippets section for drawing the models in the way that you want. It was OSBot dependent, not sure why you wouldn't want that, especially because you're on the OSBot forums??
-
I don't believe it runs on a separate thread, so while your script is doing other things, including sleeping, it won't be executed.
-
Note: I am no expert on trading, or crypto currencies, so take my opinions with a grain of salt, but... The current massive price increases of crypto currencies is not due to their actual intrinsic value, but because there is a bubble, everyone wants to buy to get fast, easy money. It's very similar to the dot com bubble. The odds of ETH going up 100x are probably far less than the odds of ETH crashing to 0. It's all well and good if you're trading in the short term, just looking to make some money, and get out. But "hodl" is pretty damn risky in my opinion. If ETH, or BTC or whatever currency were to suddenly, seriously crash, people will start to panic sell... When that happens you are going to find it very difficult to sell any of your stock before the price hits 0, and there goes all of your investment. All it really takes is some major regulations, a major security flaw, or a significant amount of stock dumping for it to happen. And personally i'd rather just put $5k into a safe investment, or just buy some nice shit, than put it into a super volatile crypto currency where I (might) make $1k (who cares) or might lose it all. Your thread "You could have DOUBLED your money if you trusted me." could easily have been called "You would have lost your money if you trusted me." right now. Correct me if I'm wrong on any of the above points.
-
I don't know why people care about this crypto hype. Unless you have a sizeable amount of cash to invest, or you got in very early, you're making chump change at the end of the day.
-
This might be the dumbest person on this forum
Explv replied to The Undefeated's topic in Spam/Off Topic
Loooooooool $75 for a fucking woodcutting script. That dude just got scammed for real. Superior WC scripts already exist for free / fuck all $. I hope he was trolling. Edit: holy shit I just read it again, all he wants is draynor and seers village lmaoooo, I'm fucking dead, time to open up a private script shop I guess -
The scripting help section is for help with writing scripts, please move this thread Edit: thread has been moved.
-
I didn't realise you wanted to wait for the animation to finish. This is probably how I would approach such a problem (note I wrote this fucking quickly, so it probably doesn't even work, but it should at least give you an idea) NPC currentMonster; @Override public int onLoop() throws InterruptedException { // If we need to attack a monster if (currentMonster == null) { // Get the closest monster that is attackable NPC monster = getNpcs().closest(npc -> npc.getName().equals("Monster") && npc.isAttackable()); // If the attack interaction was successful if (monster != null && monster.interact("Attack")) { // Sleep until we're fighting the monster, or someone else is fighting it new ConditionalSleep(5000) { @Override public boolean condition() { return !monster.isAttackable() || myPlayer().getInteracting() == monster; } }.sleep(); // If we're fighting the monster, set it as our currentMonster if (myPlayer().getInteracting() == monster) { currentMonster = monster; } } } // If we are fighting, do nothing else if (myPlayer().getInteracting() == currentMonster) { return 600; } // If we're not fighting, and the current monster is dying, wait until the animation has finished so we can pick up items else if (currentMonster.isAnimating() && currentMonster.getHealthPercent() == 0) { new ConditionalSleep(3000) { @Override public boolean condition() { return !currentMonster.isAnimating(); // Could change to exists(), not sure } }.sleep(); sleep(200); // Not sure if there is a delay between death and items appearing } else { GroundItem bones = getGroundItems().closest("Bones"); // If loot exists, then we take it if (bones != null) { if (bones.interact("Take")) { new CondtionalSleep(5000) { @Override public boolean condition() { return !bones.exists(); } }.sleep(); } } else { // Otherwise set current monster to null so we can attack a new one. currentMonster = null; } } return 200; }
-
This is why you shouldn't store any crypto, especially a significant amount like $3k on web services, or any external place where it is out of your control. March 2014 - Mt. Gox exchange hack with $473 million stolen February 2015 - Bter (exchange) $1,750,000 stolen January 2015 - Bitstamp exchange hack with $5.1 million stolen March 2016 - ShapeShift (exchange) $230,000 stolen March 2016 - Cointrader $33,600 stolen June 2016 - Decentralized Autonomous Organization (DAO) hack with $50 million stolen July 2016 - Steemit.com hack with $85,000 stolen August 2016 - Bitfinex hack with $66 million stolen July 2017 - CoinDash ICO hack with $7 million stolen July 2017 - Parity multisig wallet hack with $32 million stolen July 2017 - Veritaseum’s Ether wallet hacked with $8 million stolen August 2017 - Enigma ICO hack with $500,000 stolen Honestly there are many more than these, I just got bored copy / pasting. With crypto being so hot right now, it is a big target for hackers and scammers. And also, because it is so new, a lot of these services and software are not as bulletproof as they should be, and due to the anonymity factor I wouldn't trust the creators either. Do yourself a favor, purchase a hardware wallet, or use a paper wallet, and don't keep chunks of money on shitty services. You wouldn't trust a significant amount of $/£/whatever on some random ass website, so why do it with crypto?
-
Would recommend sticking to Java, I don't think Scala scripts would be accepted to the SDN, and a lot of people here don't know Scala so it would be a *little* trickier to assist you with any issues. I personally don't know Scala, but in general your script looks pretty good. There are a few small issues with your script that I can see: You throw an exception if you fail to open the bank, surely you want to just try again rather than kill the script completely? Your random sleeps for example after depositing items, before cleaning herbs, at the end of banking are very unnecessary. They add nothing to the script but XP waste. You try to close the bank at the end of the stockUp method, but you don't check if the bank was actually successfully closed. If it fails to close, your script is going to mess up. You have a lot of loops in your script, if something were to majorly fuck up it would get stuck and the user would have to force close the client. I can't be bothered to read your "ZigZag" code, but i'm pretty sure whatever you're doing could be achieved in a much simpler fashion without extra classes and recursion. Why are you using the mouse hover & click functions when you can just use interact() is this another form of "antiban"? Or is it to try and speed up mouse interactions? XP gained, XP per hour, etc. can be all be obtained using the ExperienceTracker class, no need to do this yourself.
-
sleep() is not discouraged, the sleep method and the ConditionalSleep class serve two different purposes. The first allows you to sleep for a fixed amount of time, and the second allows you to sleep until a condition is satisfied or a timeout exceeded. As for your question about picking up an item after combat, isAnimating() is a shitty way to determine if you are in combat, you could do something like this instead (note, not tested at all) : if (!myPlayer().isUnderAttack() && myPlayer().getInteracting() == null) { GroundItem bones = getGroundItems().closest("Bones"); if (bones != null) { if (bones.interact("Take")) { new CondtionalSleep(5000) { @Override public boolean condition() { return !bones.exists(); } }.sleep(); } } else { NPC monster = getNpcs().closest(npc -> npc.getName().equals("Monster") && npc.isAttackable()); if (monster != null && monster.interact("Attack")) { new ConditionalSleep(5000) { @Override public boolean condition() { return !monster.isAttackable() || myPlayer().getInteracting() == monster; } } } } }
-
This just looks like an over complicated, and less efficient way of writing: if (myPlayer().isAnimating()) { sleep(2000); } else { // do action }
-
You can just create a local script with nothing in it, except for stop(false) in onStart(). I have created it for you here: https://uppit.eu/f/xy2TSOWyUgp Rename that file to "login.jar" and then put it in C:\Users\YourUsername\OSBot\Scripts Then in the manager just select the local script with the name "Login". I will see if I can add this feature to my manager without having to download a local script.
-
This is what you should be doing: if (getObjects().closest("Furnace").interact("Smelt")) { new ConditionalSleep(5000) { @Override public boolean condition() { return getWidgets().getWidgetContainingText("What would you like to smelt?") != null; } }.sleep(); }
-
HustlethAlt2 reported for: Botting Scamming Offensive Language
-
Updated and re-uploaded 2017/12/04 - v 7.5: Fixed proxy editing Code refactoring Skip broken local scripts Escape OSBot parameters