Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. Looks like you possibly have a broken local script that it tries to load. I will update the code so that it doesn't break when trying to load a broken local script, but for now you should figure out which one it is (it won't load in OSBot either) and remove it from your scripts folder.
  2. Yes. In the bot settings tab Are you saying the manager doesn't even open?
  3. Are you sure the path to your OSBot.jar is correct? Try running the manager from the command line and see if it outputs any errors
  4. What operating system are you using? When you say nothing happens do you mean the client doesn't even open? Have you checked that you have set the path to the OSBot.jar in the Bot Settings tab?
  5. Explv

    Typing instantly

    You have to import it from this class https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html
  6. https://www.tutorialspoint.com/java/java_object_classes.htm
  7. For xp, like I show in my paint tutorial, you use the XP tracker. In onStart() call: getExperienceTracker().start(Skill.WOODCUTTING); Then in your paint: g.drawString("XP Gained: " + formatValue(getExperienceTracker().getGainedXP(Skill.WOODCUTTING)), x, y); Or for xp/hour you can use getExperienceTracker().getGainedXPPerHour(Skill.WOODCUTTING)
  8. Dark wizards by the willow trees? No it does not Yes the pathing is randomized Yes I will add more simple quests in the future (probably only to ~8qp), not sure when though
  9. I am currently working on fixing saving/loading, I hope to have a fix pushed by the end of today. I will take a look at the firemaking issue
  10. Just pushed a fix for that, it will no longer spam click after the SDN is updated. And yes, i'm working on combat soon
  11. import org.osbot.rs07.api.filter.Filter; import org.osbot.rs07.api.ui.RS2Widget; import org.osbot.rs07.api.ui.Tab; import org.osbot.rs07.event.Event; public final class ToggleShiftDropEvent extends Event { @Override public final int execute() throws InterruptedException { if (Tab.SETTINGS.isDisabled(getBot())) { setFailed(); } else if (getTabs().getOpen() != Tab.SETTINGS) { getTabs().open(Tab.SETTINGS); } else if(getShiftDropWidget() == null || !getShiftDropWidget().isVisible()) { getGameSettingsWidget().interact(); } else { boolean enabled = getSettings().isShiftDropActive(); if (getShiftDropWidget().interact()) { Sleep.sleepUntil(() -> getSettings().isShiftDropActive() != enabled, 3000); setFinished(); } } return random(100, 200); } private RS2Widget getShiftDropWidget() { return getWidgets().singleFilter(getWidgets().getAll(), new WidgetActionFilter("Toggle shift click to drop")); } private RS2Widget getGameSettingsWidget() { return getWidgets().singleFilter(getWidgets().getAll(), new WidgetActionFilter("Controls")); } } class WidgetActionFilter implements Filter<RS2Widget> { private final String action; WidgetActionFilter(final String action) { this.action = action; } @Override public boolean match(RS2Widget rs2Widget) { if (rs2Widget == null) { return false; } if (rs2Widget.getInteractActions() == null) { return false; } for (String action : rs2Widget.getInteractActions()) { if (this.action.equals(action)) { return true; } } return false; } }
  12. Yes, in your snippet you are sleeping for 0-100ms, not exactly long enough for the bank to open, especially if your player has to walk there first. If you use getBank().open() it will sleep until the bank is open, so something like this should work: if (!getBank().isOpen()) { getBank().open(); } else { getBank().depositAll(); } RS2Object is a subinterface of Entity, so what he wrote is fine:
  13. Yeah I know, I broke some stuff. I have already pushed a fix for it, the script should be working again now. However, enabling shift dropping does not work. I will try to get shift drop enabling working today, thanks
  14. The getMouse() methods make use of MouseEvent. If you need more customisation of the mouse movements then use a MouseEvent
  15. Done, it will be available when the SDN is next updated.
  16. Yep I will be adding 8qp I will add shift dropping now
  17. Edit: Nevermind @whipz What exactly are you trying to achieve here?
  18. I previously made a post in here ~7/8 months ago requesting user counts to be added for VIP scripts. We can currently see user counts for free scripts (in the script section) and premium scripts (on the sales page), but we cannot for VIP. I was hoping to get an update on whether this could be added? I believe @Alek previously said that this was planned for when the server side code was next touched. It could either be a public count or private on the sales page. Thanks
  19. Paths have to be in List format now iirc, you can change the output type on my map by clicking the cogwheel
  20. It would be helpful if you showed us the source code so we can tell you where you are going wrong. Also in the future please post in the Scripting Help section
  21. Yep, I removed the abyssal minigame code a while ago (can't remember why), but forgot to remove it from the quest options. So avoid this option for now.
  22. Why does it even matter? Just take the point you rightfully deserve and simmer down.
×
×
  • Create New...