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.

Franimal

Members
  • Joined

  • Last visited

  1. Ah, that's ok then.
  2. Some problems may arise with that though; there are cases where they will be facing and not dying to you
  3. Is there a method on the NPC class like npc.getInteractingEntity() or something? If there is you could use if(npc.getInteractingEntity().equals(getMyPlayer()) && npc.getAnimation() == deathAnim) count++; That kind of thing could work.
  4. I assume NPC animations are in the API, as well as entity interactions, in which case you can check for death animation while you are interacting and add to kill count. I'm just assuming though, I've never actually written a script for osbot.
  5. You'd have to clarify that question.. BotState is an enum, a group of definitions/types. I could give botState parameters; integers, strings, whatever. I can then create an instance of BotState and set it equal to one of the types of BotState, and later check which it is. An easier example of an enum would be something like: private enum Planet { MARS(), JUPITER(), EARTH(), NEPTUNE(); } I could then assign values to them like distance from earth or mass and add getter methods to it private enum Planet { MARS(500, 20000), JUPITER(10000, 200000), EARTH(700, 100), NEPTUNE(100000, -500); private final double distance; private final double mass; public Planet(double distance, double mass){ this.distance = distance; this.mass = mass; } public double mass(){ return mass; } public double distance(){ return distance; } } This would allow me to make a variable currentPlanet, which I could set to any Planet that exists, earth, mars, whatever, and it would then contain that planets distance and mass, which I could check and use. I assume that's what you were asking. :p

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.