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.

Zappster

Suspended
  • Joined

  • Last visited

Everything posted by Zappster

  1. If anyone else has this problem, a solution is to check if the gate is open already, and if it's not open, that's when you run your open command. Credit to Explv for giving me this in the chat box public boolean doorIsClosed(RS2Object door) { return Arrays.asList(door.getDefinition().getActions()).contains("Open"); }
  2. I'm getting the rotation of an NPC and .getRoration() returns an int, which is fine. My problem is that in the API it's not documented what the return is for north,east,south and west. I kinda need those and don't have the ability to test for a few days - so, if any of you guys have int value for North,south,east and west can you please post them?
  3. Hey, I managed to resolve the problem thanks to FrostBug. Dumbass me had the wrong type. Here's my line of code: Entity npc1 = npcs.closest(id); The .getRotation belongs to the Character type and needs casting from NPC. So if you have this problem and need to get the N/E/S/W position of an NPC, you need to change the type to NPC like so: NPC npc1 = npcs.closest(id); int rot = npc1.getRotation(); I'm still stuck on what .getRotation returns. Is this correct? 1-North 2- East 3- South 4- West or is it.. 0-North 1-East 2-South 3-West or something I've missed completly?
  4. This has been partially solved, please scroll down to my next reply for the solution So for my script I need to find out which way my NPC is walking. I've checked the API and did some googling to find that: npcs.closest(id).getRotation would work, however it looks like it has been depricated in the API. I can't see anything in the NPCS that would help me find the solution to this. I know I could grab 2 positions of the NPC and work out the direction myself, but my script is heavily reliant on timing and leaves me with not much room to do this calculation. I could make it work for my script so it's not the end of the world, it's just that I'd like to aviod rewriting functions. So, any clean way to get the rotation of an NPC without having to take 2 positions? Thanks.

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.