Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mysteryy

Members
  • Joined

  • Last visited

Everything posted by Mysteryy

  1. That is just using java gui basics. You just need an image of the map and your web data to draw on top of the map. I used a scroll pane to fit the map in a smaller gui. Dont worry about drawing it yet, i would suggest that you learn one thing at a time. Once you understand it and think you have it how you want it, then move on to the next task. Drawing the map wasnt a priority for me, I didnt do it for a long time. :p I am not sure, like I said it has been a long time since I really messed with it. I made that thing over a year ago. Once the client comes back up I will see if I can find my old project that painted the flags.
  2. It will be if you are making a web. Consider a tile that contains a door. When that door is closed, the tile is not walkable. That means that using clipping flags, you will see that tile as non walkable. You could argue that you can check objects on the tile, see if they are something that can be overcome, and yes you could do that. But objects such as doors, gates, etc. are not the only things that behave in that way. Flags are a bit wonky. I suggest just using clipping flags to paint the different tiles values/type and you can see for yourself how clipping behaves.
  3. You can do this but it wont be totally accurate. Some tiles will say they are not walkable when they actually are, because some of the flags are shared on walkable tiles and non walkable tiles. (If I remember correctly) It will almost work, but you will end up missing some tiles ultimately.
  4. Suicide bot and your asking why you were banned?
  5. I pressed f
  6. Linux or get the fuk out
  7. Use Skills to get the correct value. (Skills.getDynamic I think, although its been a while and im not looking in the api.) I believe that what you are trying to do will only return the correct value if your in combat or something like that.
  8. You just need a virtual environment such as virtual box. Once you have that, you can run the program and install a virtual machine. Afterwards you can run the machine.
  9. You could install a virtual machine that runs windows and then use that to run the mirror client.
  10. @Divinity because we would go jack some lambos and see who can kill the most zombies in a lambo while throwing money out the window. wat
  11. Only reason mald is here is because he thought he was gonna get to ban someone.
  12. hi welcome to osbot
  13. Mysteryy replied to Acerd's topic in Spam/Off Topic
    Postcount++
  14. I call bs but feel free to pm me and convince me otherwise. I could make the script.
  15. Get all players and check if the list is null and the size is > 0. That means there is at least 1 player in the list.
  16. You will need to track this yourself. Just keep track of the times when you move, and keep it updated. Then you can check how long it has been since you moved.
  17. where do i sign up?
  18. I have been in scripting for a long time now, I am just going to tell you that 1) Using a while loop in this manner is a bad idea. 2) Do not ever depend on one of the methods to return a correct boolean. 3) You dont have a single null check on the ladder What if the interaction was successful, but the interaction still returned false? Then that while loop would likely get stuck trying to interact with an object that doesnt exist, and your script would do nothing. Dont use the return values in this manner, and dont use a while loop in this manner. This type of logic is shakey and be easily broken. Make your script stable by having a strong baseline of logic that can handle any situation.
  19. 1) Yes, the loop will take care of this. The way I had it before, I was allocating the int inside of that if statement, so it actually would save the allocation of the int if the length was 0. After I decided to give a proper snippet I just decided to make it a method and forgot to change it after I moved things around. 2) You are correct, but I always feel it is good to do my own null checks. I have learned that you can never be too careful. Where I work, we are constantly writing safety critical applications, and you cant assume anything, and can never be too safe. The null check could be considered redundant, but it is good practice to use defensive programming, especially when scripting. Defensive programming is in my blood. Edit: Also, in your example, I dont think you will ever need a long to store the number of buckets on the ground. :p
  20. Mysteryy replied to Mysteryy's topic in Spam/Off Topic
    Oh damn and I didnt even notice!
  21. Mysteryy posted a topic in Spam/Off Topic
    My first warning points. *Wipes tear from eye*
  22. Going with the second method, here is a simplistic easy to follow way (completely untested and just for demonstration, but it should work): public int getAmountOf(String groundItemName){ int numberOfItems = 0; java.util.List<GroundItem> allGroundItems = script.getGroundItems().getAll(); if(allGroundItems != null && allGroundItems.size() > 0){ for(GroundItem groundItem : allGroundItems){ if(groundItem != null && groundItem.getName() != null && groundItem.getName().equals(groundItemName)){ numberOfItems++; } } } return numberOfItems; }
  23. If the player dropped 10 buckets, or if there are 10 buckets on the ground and you dont care where they came from?

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.