Jump to content

Hayase

Members
  • Posts

    159
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Hayase

  1. good luck I believe in u
  2. They stopped developing for archeage too which kinda sucks. I used to sell gold on that game and now that a new server was added I couldn't take advantage of all the whales buying gold. RIP.
  3. Who needs loops wen u can just switch it up int k= getWCExp(); //get ur wc exp cuz u need it switch (k) { case 1: checkWCexp();break; case 2: checkWCexp();break; case 3: checkWCexp();break; case 4: checkWCexp();break; case 5: checkWCexp();break; case 6: checkWCexp();break; case 7: checkWCexp();break; case 8: checkWCexp();break; case 9: checkWCexp();break; case 10: checkWCexp();break; default: checkWCexp();break; } np
  4. while (tree.exists()) { sleep(random(500, 700)); } This is very bad. If you are chopping and under attack the while loop will never exit. Look into a conditional sleep instead, and also add a condition if you suddenly get under attack. new ConditionalSleep(5_000) { @[member='Override'] public boolean condition() throws InterruptedException { return !tree.exists() || myPlayer().isUnderAttack(); } }.sleep();
  5. Hayase

    botting

    No one has been banned for using osbuddy which is just like osbot. Both are using injection. However you do get banned for botting
  6. sick cannon bro which 1 is urs?
  7. You can set your onloop() to handle things like this and other issues. You know for sure that the onloop() is going to be looping until script stop. You can define the cooldown then the conditional sleep after like another poster said. Alching is like a 2s delay? do your sleep(2000,2500) and put your conditionalsleep after.
  8. Untested but it seems like it could work /** * * @param position to check if it is within the region * @param player the current position of the player (myPosition()) * @return true if the position is within the region with respect to our players position */ public boolean isReachable(Position position, Position player) { int HOW_BIG_IS_REGION = 20;//idk how big a region is Position insidePos = new Position(position); int distance = insidePos.distance(player); //If the distance from the region is less than our current position, it is reachable return distance < HOW_BIG_IS_REGION; } Just noticed there's already a function for this: map.canReach(position);
  9. Change the sleep to return when the player is animating. This way after you interact, it will sleep until you are animating. if(script.inventory.interact("CAST", "Maple Bow") && !script.myPlayer().isAnimating()){ new ConditionalSleep(1200) { public boolean condition() throws InterruptedException return script.myPlayer().isAnimating(); } }.sleep();
  10. Let's make america great again!!
  11. Hayase

    Lul

    WRONG my name is connor
  12. Since you are using a combobox and your options are stored in an array of strings why not just handle them based on the index of the string? We know that at index 0 in your box, answer is "Yes" setShouldBank = cmbBank.getSelectedIndex() == 0;If the selected index is 0, setShouldBank will be true. If you absolutely need the name of the value use this: String selectedIndex = cmbBank.getItemAt(cmbBank.getSelectedIndex());
  13. Strange if it worked before and suddenly stops working. Also not too important in this situation but I think using .contains() could be bad practice if you were dealing with strings that used other words with the sequence "axe" but were not axes. Again there's no case in this situation but if you were dealing with axel logs, .endsWith() would be better in this case since we know our axes always ends with "axe"
  14. Maybe this will help? http://stackoverflow.com/questions/22619262/upgrade-eclipse-to-java-8?noredirect=1&lq=1 If you don't have Java 8, get it here http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  15. You are using Java 8 right? The one liner is just using Java 8 streams. Are you using an IDE?
  16. Something to note about your mule bit is that you are using Entity and grabbing the player as if it were an NPC. If you want to follow the standards you can just use the Player class like so: //The replaceAll method will let you use names with spaces in them. Jagex does not use normal spaces. Player mule = getPlayers().closest(o -> o.getName().replaceAll("\\u00a0", " ").equalsIgnoreCase(/*Mule Username*/)); //do null checks on mule and other things to see if the mule is in range to trade //Change "Trade" to "Trade with" if (mule.interact("Trade with")) { log("Waiting for other player to accept trade"); new ConditionalSleep(5000) { @[member=Override] public boolean condition() throws InterruptedException { return trade.isFirstInterfaceOpen(); } }.sleep(); }
  17. I don't have 100 posts yet but if you are interested I've got this acc All f2p nothing special
×
×
  • Create New...