Everything posted by Explv
-
Checking and toggling shift dropping
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; } }
-
Noob question... how to bank?
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:
-
Noob question... how to bank?
Use getBank().open()
-
Explv's AIO [13 skill AIO in 1 script]
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
-
MouseEvents vs getMouse() methods
The getMouse() methods make use of MouseEvent. If you need more customisation of the mouse movements then use a MouseEvent
-
Explv's AIO [13 skill AIO in 1 script]
Done, it will be available when the SDN is next updated.
-
Explv's AIO [13 skill AIO in 1 script]
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 ?
Edit: Nevermind @whipz What exactly are you trying to achieve here?
-
Add user count to VIP scripts
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
-
Script optimisations to reduce lag
Paths have to be in List format now iirc, you can change the output type on my map by clicking the cogwheel
- SuperAccountBooster
-
Script optimisations to reduce lag
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
-
Explv's AIO [13 skill AIO in 1 script]
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.
- [Updated Daily] Joey Byte's Account Shop
- @vitez
-
Obfuscating your local scripts
No, only Alek afaik, and you cannot submit obfuscated code to the SDN as he reviews it.
-
Obfuscating your local scripts
This is for local scripts. The source code of SDN scripts is not accessable to users.
-
Broke my own bot! PM handling
The principle is exactly the same is it not? Your original question was checking if the chatbox contained a trade message, and then acting upon it: https://osbot.org/forum/topic/116527-how-to-trade-other-players/ You then posted the same question again: https://osbot.org/forum/topic/116539-trading-players/ How is this question any different? You are checking the chatbox for a message "help me" instead of a trade message? Apply whatever logic you used for trading here as well. Also in the future post in the scripting help section: https://osbot.org/forum/forum/249-scripting-help/
-
Broke my own bot! PM handling
@olstan You have already posted this question twice in scripting help. If you want people to answer your question (which they already did), bump your original thread. Don't just keep posting again until someone spoon feeds you the solution.
-
Explv's Map
If you would like to assist me with identifying dungeons and other areas The first set of areas is around 2868, 4658, 0 (you can go there by typing the coordinates into the boxes at the top right). Move the map around and you will see a bunch of areas without names. The second set of areas is around 2875, 9452, 0 Thanks
-
Explv's Map
NEW UPDATE - Added map labels with the ability to toggle them on or off - Added search box for locations, the map will pan to them when selected - I have also added labels for some dungeons, I will add more when I figure out what they are
-
Explv's Map
NEW UPDATE - Updated map to latest revision - Map now also contains upper floors (press the +/- buttons in the navbar to go up or down) - Map also now contains dungeons, located very far North on the map, I will be adding a search bar so that these areas can be accessed easily Note: there are no location labels on the map currently, I will be adding those back shortly
-
Explv's Map
Coming soon: And also upper floors: http://i.imgur.com/jLX6NUk.mp4
- Let's play a game
-
Explv's AIO [13 skill AIO in 1 script]
Thanks, i'll investigate further