Jump to content

FrostBug

Scripter III
  • Posts

    3967
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    100%

Everything posted by FrostBug

  1. Interesting idea. I could indeed see this being useful (particularly for new members). It might be worth noting that these numbers should be considered to have an error margin of up to 0.02%. This of course is due to the rotational velocidensity of the client and its resources.
  2. Since they're both bankstanding skills, their ban rates are quite similar. Their ban rates this morning were: Herblore: 6.981 m3/s Fletching: 7.210 m3/s
  3. Is that "Get's here" being logged to the console? Have you been able to debug the problem at hand? (eg. is the problem related to the Rock instances still, or is the canMine boolean inconsistent?) EDIT: Also be aware that if "interacted" is false (eg. the interaction misclicked or whatever, and you ended up not mining the rock) you still set "canMine" to false. Since you're not mining, this variable will now be permanently false.
  4. A new boolean value; not a new RS2Object representing the rock. You have to use the filter again
  5. You could clean it up a bit by using the ExperienceTracker class already implemented for you It contains methods such as getElapsed, getGainedXP, getGainedXPPerHour, getTimeToLevel, getGainedLevels etc.
  6. It does recharge it. I listed my preference/recommended items in the FAQ; check it out
  7. The problem is that when you mine a rock, The game object changes to an entirely different object; so next time you try to interact with the old instance of the game object, it no longer exists, and nothing happens.
  8. If doing short runs I'll often use dharok/torag/guthan armor for the def bonus However, more often so I'll be using bandos or dragon armor to avoid the repair hassle
  9. You must have a hotkey set for the following tabs: Quest, Inventory, Equipment, Combat, Prayer, Magic You can get a 24 hour trial; let me know when you want it started (PM preferable)
  10. import org.osbot.rs07.api.filter.Filter; import org.osbot.rs07.api.model.InteractableObject; import org.osbot.rs07.api.model.RS2Object; /** * Get InteractableObjects * @author FrostBug */ public class InteractableFilter implements Filter<RS2Object> { @Override public boolean match(RS2Object v) { return v instanceof InteractableObject; } } List<RS2Object> interactableObjs = getObjects().filter(new InteractableFilter());
  11. +1 Flamezzz' solution. Simple and effective You could probably make use of LocalWalker#walkPath instead; or maintain a global value to keep track of progress in your path walking. The first is probably the better way (tho I haven't actually tried it myself)
  12. This is a nice and efficient approach, since it avoids filtering the NPCs redundantly in every cycle. But be sure to not rely on an interaction completing successfully like it does in this particular example (failing to attack = stuck forever) private NPC npc; public int onLoop() throws InterruptedException { if (npc == null || !npc.exists() || npc.getHealth() == 0) { //find new npc NPC minotaur = getNpcs().closest("Minotaur"); //minotaur checks npc = minotaur; } else if(myPlayer().getInteracting() != npc) { npc.interact("Attack"); } }
  13. Let a class extend JFrame in order to let this class be used as a GUI window. Either manually or using a designer, add visual components to an instance of this JFrame class. To add a dropdown box, you would typically use the class called JComboBox. Create one of these and add it to your JFrame (Note that JFrame has a method 'add'). In order to add and retrieve items from this combobox, you should set its backing Model. A common way to do this is creating a new instance of DefaultComboBoxModel, adding elements of your desired type into this model, and then setting this as the model on your combobox instance. Later, you can get the selected item from this model by invoking JComboBox#getSelectedItem.
  14. Open the client console (or look in the script log) to see what the problem is.
  15. It is possible, but given the choice between 75 magic and maxed melee, I would still pick magic.
  16. You probably have a potion somewhere outside of that tab (dose 1 or dose 2 maybe) that it cannot withdraw due to broken bank scrolling in mirror mode. Noes; all supported travel routes can be found in the OP
  17. FrostBug

    FrostPuzzler

    Thanks. I committed a fix, it should be live in 3-4 hours
  18. FrostBug

    FrostPuzzler

    Could I get you to join the chatbox, or add me on skype?
  19. hint: if (!myPlayer().isAnimating() && !myPlayer().isMoving() && tree == null) return State.attrees; If the tree is null, there are no trees nearby. And if there are no trees nearby when in the "attrees" state, you'll get an error (NullPointerException) here: case attrees: Entity tree = objects.closest("Willow Tree"); tree.interact("Chop"); <---- NullPointerException because tree is null break;
  20. toArray doesn't make use of generics, and will always return Object[], so he'd have to convert it regardless to use it with the EntityAPI
×
×
  • Create New...