Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. Explv

    Win7 or Win10

    Someone's a bit paranoid. Any company with any piece of software can easily be spying on you. At least it is made public that Microsoft is actively doing it for research purposes, and to fight piracy. I doubt Microsoft gives 2 fucks about "liverare" some kid using OSBot and masturbating a lot. :xdoge: If you're that scared about surveillance, turn your computer off, wrap yourself in some tin foil and hide behind your sofa.
  2. Explv

    Win7 or Win10

    10. Better usability, and most likely performance.
  3. I don't think getDialogues().isPendingContinuation() Works too well on Tutorial Island iirc. Use widgets
  4. API method: getWorlds().hop(world); And if you're talking about hopping when another player is nearby, you could do something like: List<Player> players = getPlayers().filter(player -> player != myPlayer()); if(players != null && players.size() > 0) getWorlds().hop(random(1, 94));
  5. You do know you don't need to log out to world hop right?
  6. Change if (target != null && target.exists() && target.interact("Attack")) To if (target != null && target.exists() && target.getHealth() > 0){ target.interact("Attack") You are interacting with the NPC in your if statement... which makes no sense
  7. .................................................
  8. You're welcome. It's not an OSBot issue, it's just a Java configuration issue on your pc.
  9. - Here is an example image where I have turned widgets on in settings: As you can see, the emote widget is highlighted in green. It has the value (216, 1, 1) Its parent can be seen highlighted in red, it is the widget containing all emotes, with the value (216, 1)
  10. Try enabling widgets in settings, and hovering your mouse over different parts of the screen. The screen is separated into widgets. Each widget has an identifier that is either 2 or 3 values: Parent, Child, Child of Child or Parent, Child In this case we have the values 216, 1, 1 216 is the parent widget, 1 is the widget that contains all of the emotes, and finally 1 is the emote So each of the emotes will have widget values 216, 1, ( 0 -> Some number)
  11. What Extreme posted is correct, here is the proper syntax: Grounditem item = getGroundItems().closest("Wine"); if(item != null){ getMagic().castSpellOnEntity(Spells.NormalSpells.TELEKINETIC_GRAB, item); }
  12. I think its 216, 1, 0 -> some number getWidgets().get(216, 1, 1).hover(); getMouse().click(false);
  13. Problem has been fixed. OSBot seemed to be using an old version of the script (that didn't contain the sleep). Deleting OSBot folder and rebuilding script solved it.
  14. No one learns by using a builder :xdoge:
  15. THIS TUTORIAL WILL BE REWRITTEN AS PART OF: https://osbot.org/forum/topic/115124-explvs-scripting-101/
  16. Are you sure its not the rest of your code? :xdoge:
  17. You said So I did :xdoge:
  18. Your code can be simplified / improved to: import org.osbot.rs07.api.model.GroundItem; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; @ScriptManifest(author = "FFTL", info = "First", name = "main", version = 1.0, logo = "") public class FFTLFeathers extends Script { @Override public int onLoop() throws InterruptedException { long featherCount = getInventory().getAmount("Feather"); GroundItem feather = getGroundItems().closest("Feather"); if(feather != null){ feather.interact("Take"); new ConditionalSleep(5000) { @Override public boolean condition() throws InterruptedException { return getInventory().getAmount("Feather") > featherCount; } }.sleep(); } return 750; } } But that is besides the point. He needs to learn Java xD
  19. See my post. http://osbot.org/forum/topic/87717-fixing-osbot-not-starting/
  20. Please format your code properly if you are going to post it in the Scripting help section. Otherwise it is a pain to read.. I strongly suggest you learn the basics of Java first. You haven't even declared your "class" as a class. There are a lot of issues in this script not due to your lack of understanding of the API, but due to your lack of Java / programming knowledge.
  21. How to fix OSBot when it won't start 1. Confirm you have Java 8 installed: 2. Confirm java will open OSBot: Windows: Linux / Mac OS: 3. If OSBot opens using the above commands, try running this software, it will attempt to fix your .jar file, allowing you to open it by double clicking.
×
×
  • Create New...