-
Posts
2314 -
Joined
-
Last visited
-
Days Won
6 -
Feedback
100%
Everything posted by Explv
-
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.
-
Yes. In the bot settings tab Are you saying the manager doesn't even open?
-
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
-
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?
-
You have to import it from this class https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html
-
How to implement a method from another class?
Explv replied to Jeune Padawan's topic in Scripting Help
https://www.tutorialspoint.com/java/java_object_classes.htm -
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)
-
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
-
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
-
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
-
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; } }
- 10 replies
-
- 11
-
-
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:
-
Use getBank().open()
-
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
-
The getMouse() methods make use of MouseEvent. If you need more customisation of the mouse movements then use a MouseEvent
-
Done, it will be available when the SDN is next updated.
-
Yep I will be adding 8qp I will add shift dropping now
-
What is the best way to find the center of a tile ? or area ?
Explv replied to whipz's topic in Scripting Help
Edit: Nevermind @whipz What exactly are you trying to achieve here? -
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
- 1 reply
-
- 7
-
-
Paths have to be in List format now iirc, you can change the output type on my map by clicking the cogwheel
-
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
-
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.
-
Why does it even matter? Just take the point you rightfully deserve and simmer down.
- 43 replies
-
- 1
-
-
- level 3 questers
- tutorial island
-
(and 3 more)
Tagged with: