Skip 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.

The Hero of Time

Members
  • Joined

  • Last visited

Everything posted by The Hero of Time

  1. yeah definitely dont buy more than 1 bond at a time on accounts you bot on hehe
  2. i basically got like 2.8 free bonds so thats nice, but its not fun to see -20m from your bank even though i can easily take it
  3. wtf man. did you take that photo?
  4. are you some kind of dude that gets triggered by everything ? i dont celebrate christmas either because im dutch, and im not whining either am i? it's actually really selfish of you to say that, merry christmas applies to the people that do celebrate it, and the people that don't just ignore it since they dont celebrate it "I dont celebrate christmas. so it should not include 'merry christmas'. fuck all of you" ?
  5. The Hero of Time replied to Arjen's topic in Spam/Off Topic
    beautiful
  6. The Hero of Time replied to Arjen's topic in Spam/Off Topic
    go ahead
  7. Thank you, this is exactly what i was asking. i dont care about the solution i just want to know/understand what was wrong. cheers man
  8. with raids lol... which is january they will
  9. No, that's not the problem. the list will be filled correctly. The reason why it looks like shit is because i've tried cleaner methods with less code, but none of them work. in every scenario the list will be filled correctly, but when i try to remove fighters from the barracks from the contents of toRemoveFightersFromBarracks, it will never work with duplicates the reason why i posted this topic is to understand what the problem is exactly. also with your code the toremove list contains 2 'W' 's and mine contains warw which is correct ( barracks.callFighters("warw", Combat.RANGED); )
  10. so you posted your rsn on sparmac
  11. this one is better https://youtu.be/qDEsh2z7yKo?t=147 this is by far the best noot tho
  12. Dylan is back? what? what did i miss? edit: lmao those paints
  13. yeah i reformatted it, ipb editor is annoying as fk Because i'm trying to learn from this and understand what's causing this weird problem
  14. So, to give you a quick run through, i have created a class Fighter, which represents a fighter with a combat style ENUM: COMBAT CLASS: FIGHTER Now we have a class barracks, the barracks is full of fighters. The ArrayList inside barracks that represents the barracks is: private ArrayList<Fighter> fighters = new ArrayList<>(); now the class Barracks has a few methods. CLASS: BARRACKS now if you have a basic understanding of the classes, the problem i have is with this method. The problem is that the fighters will not be removed from the barracks. They will all be called by a phrase, and the list with calledfighters will be correctly filled, but they just wont be removed from the barracks if there are 2 fighters with the same initial /** * Calls all fighters that have initials that are in the name. Example: name = war. All fighters with initials 'w','a', or 'r' will be called and removed from the barracks. * @param phrase The phrase with initials * @param combatStyle The combat style the fighter is specialized in */ public ArrayList<Fighter> callFighters(String phrase, Combat combatStyle) { //make the phrase fully uppercase phrase = phrase.toUpperCase(); //Used to check if we have enough fighters in our army ArrayList<Fighter> tempBarracks = new ArrayList<>(); //fighters to remove from the barracks after they have been called ArrayList<Fighter> toRemoveFightersFromBarracks = new ArrayList<>(); //list of fighters that are called from the barracks ArrayList<Fighter> calledFighters = new ArrayList<>(); //fill the temporary barracks with the contents real barracks, so that we dont have to modify the real barracks if we call fighters and dont have enough fighters tempBarracks.addAll(fighters); //Fill the arraylist with chars of the parameter name //war will be 'W','A','R' ArrayList<Character> nameInChars = new ArrayList<>(); for(char chr: phrase.toCharArray()) nameInChars.add(chr); //Call all fighters int i = 0; int removedFighters = 0; for(Fighter fgt: tempBarracks) { if (nameInChars.contains(fgt.getInitial()) && fgt.getCombatStyle().equals(combatStyle) && i < nameInChars.size()) { Fighter r = new Fighter(nameInChars.get(i), combatStyle); calledFighters.add(r); for (Fighter fghtr : tempBarracks) { if (fghtr.getInitial() == nameInChars.get(i) && fghtr.getCombatStyle().equals(combatStyle) && removedFighters == 0) { toRemoveFightersFromBarracks.add(fghtr); removedFighters++; } } removedFighters = 0; i++; } } //toRemoveFightersFromBarracks will now be Correctly filled with all the fighters from the given phrase for(Fighter fgt: toRemoveFightersFromBarracks) //HERE LIES THE PROBLEM I'M HAVING. { if(tempBarracks.contains(fgt)) { //Will also be FALSE if indexOfRm = -1 as described below. } int indexOfRm = tempBarracks.indexOf(fgt); //Will be -1 if we call 2 fighters with the same initials and combat style tempBarracks.remove(fgt); //Wont remove object fgt from tempBarracks, probably has something to do with the fact that the index of fgt in tempBarracks is -1 } So basically if there is a second fighter with the same initial, the object fgt from toRemoveFightersFromBarracks will not be removable from tempBarracks, the index of that fighter in tempbarracks is -1, and contains returns false, but it does contain a fighter with that exact initial and that exact combat style I've made a .gif to show it if(calledFighters.size() == phrase.length()) { //Finally: remove the fighters from the barracks! this.fighters.clear(); this.fighters.addAll(tempBarracks); return calledFighters; } else { System.out.println("We dont have enough fighters for this phrase"); return null; } } gif: EDIT: Images instead since this editor is annoying callFighters
  15. did u fap too often
  16. it does matter a lot
  17. but.. can we do better?

Account

Navigation

Search

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.